While functions are not first-class objects in Godot, FuncRefs can help replace some of that missing functionality. Using the built-in funcref() function, we can create objects that maintain a reference to and can call a selected function anywhere in our code.
Intro and first-class functions: 00:00
Funcref overview: 01:31
Sample project: 02:10
Source code: https://github.com/theshaggydev/the-s...
Text post: https://shaggydev.com/2021/11/28/func...
Godot documentation: https://docs.godotengine.org/en/stabl...
Смотрите видео Callbacks and function references in Godot 3 using FuncRefs онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал The Shaggy Dev 28 Ноябрь 2021. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 9,311 раз и оно понравилось 380 посетителям.