Godot's setget functions provide a way to intercept changes and requests of a variables value, allowing to change the data, or make additional changes which should happen in reaction, such as updating a UI field when a value changed.
The same concept is commonly used for data encapsulation in other languages.
In questa pagina del sito puoi guardare il video online GDScript — Reacting to changed variables using setget (Tutorial) della durata di ore minuti seconda in buona qualità , che l'utente ha caricato iaknihs 26 febbraio 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 6,877 volte e gli è piaciuto 161 spettatori. Buona visione!