Setter and getter functions allow you to write custom logic to be ran when a variable to written to or read from. In Godot, we can define setter and getter functions using the setget keyword, followed by the names of the setter and getter functions, respectively. This video demonstrates the technique along with providing some useful tips for when you're using setget in a project.
Text version of this video: https://shaggydev.com/2022/01/04/setget
Official documentation: https://docs.godotengine.org/en/stabl...
Watch video Setter and getter functions in Godot 3 with setget online, duration hours minute second in high quality that is uploaded to the channel The Shaggy Dev 04 January 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 5,825 times and liked it 221 visitors.