Næste

Why you should use Getter functions in Godot!

0 Visninger· 24/08/25
lopescar
lopescar
Abonnenter
0
I

Setter functions usually get the spotlight in the Godot community, but today I wanted to share some of the reasons I choose to use getters more often than not!

Leave a like if this video taught you something new, and be sure to comment if you'd like to share a 'getter' pattern that you like using in Godot!
Thanks for watching, and I hope you have a great week! :)

Resources:
• Discord: https://discord.gg/kgWXhZjd69
• Twitch: https://www.twitch.tv/queble_game_dev (game dev streams)
• Godot Download: https://godotengine.org/
• Checkout my website: https://www.queblegames.com/ (1 on 1 Godot tutoring, blog posts, etc.)

Timestamps:
0:00 Intro
0:14 How to make a getter function
0:49 Using getters to operate/validate data
1:51 Using getters with cached values
3:33 Using getters to shorten property paths
5:46 Using getters to debug
6:09 Members shoutout, outro, thanks for watching! :)

This video was recorded in Godot v.4.4.1 stable

Vis mere

 0 Kommentarer sort   Sorter efter


Næste