Static typing in Godot using the class_name keyword

Опубликовано: 19 Октябрь 2021
на канале: The Shaggy Dev
7,802
358

In this video, we'll look at how you can use the class_name keyword to enable static typing for your custom classes. We'll also look at some other uses for it, such as subclassing, and the common pain points people run into when using it (cyclic dependency anyone?)

Source code: https://github.com/theshaggydev/the-s...

Text version of this tutorial: https://shaggydev.com/2021/10/19/godo...

Artwork provided by Kenney: kenney.nl


Intro: 00:00
Base usage: 00:29
Other uses: 01:18
Gotcha #1 - The global namespace 01:59
Gotcha #2 - Cyclic dependencies 02:52


Смотрите видео Static typing in Godot using the class_name keyword онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал The Shaggy Dev 19 Октябрь 2021. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 7,802 раз и оно понравилось 358 посетителям.