Setter and getter functions in Godot 3 with setget

Опубликовано: 04 Январь 2022
на канале: The Shaggy Dev
5,825
221

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 посетителям.