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...
Смотрите видео Setter and getter functions in Godot 3 with setget онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь The Shaggy Dev 04 Январь 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 5,825 раз и оно понравилось 221 людям.