Godot 4 lambda functions

Опубликовано: 03 Февраль 2023
на канале: The Shaggy Dev
12,508
386

Lambda functions are small, anonymous functions that can be declared inline rather than via full function declaration. Let's take a quick look at how to write them in Godot 4.

Text version and code snippets: https://shaggydev.com/2023/02/02/godo...

Godot docs: https://docs.godotengine.org/en/lates...

Corrections:
01:09 This only applies to local variables where the lambda is declared, such as the variable and lambda inside of _ready() in this example. Changes to variables declared at a higher scope are not subject to this, such as moving the variable declaration outside of the _ready() function.


Смотрите видео Godot 4 lambda functions онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал The Shaggy Dev 03 Февраль 2023. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 12,508 раз и оно понравилось 386 посетителям.