How to call engine singleton using Expression instance?
docs.godotengine.org·5h·
Discuss: r/godot
Flag this post

Godot provides an Expression class you can use to evaluate expressions.

An expression can be:

A mathematical expression such as (2 + 4) * 16/4.0.

A boolean expression such as true && false.

A built-in method call like deg_to_rad(90).

A method call on a user-provided script like update_health(), if base_instance is set to a value other than null when calling Expression.execute().

Note

The Expression class is independent from GDScript. It’s available even if you compile Godot with the GDScript module disabled.

Basic usage

Similar Posts

Loading similar posts...