How to use setter and getter functions in Godot 4

Published: 28 September 2022
on channel: The Shaggy Dev
26,348
796

Setter and getter functions let you run custom logic when a variable to written to or read from. There have been some minor changes in how this works in Godot 4, so let's look at the new syntax and how it differs from Godot 3.

Text version of this content: https://shaggydev.com/2022/09/27/godo...

Sample project: https://github.com/theshaggydev/the-s...


Watch video How to use setter and getter functions in Godot 4 online, duration hours minute second in high quality that is uploaded to the channel The Shaggy Dev 28 September 2022. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 26,348 times and liked it 796 visitors.