You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a Rust method is exported to Godot, the type information of the parameters is used to convert the incoming Variants from Godot into the correct data type.
We could allow a new type, Option<T>, to be used as a parameter type as well. When trying to construct the value upon a method call it can be checked if the Variant is NULL or not, and construct the Option<T> accordingly.
The text was updated successfully, but these errors were encountered:
When a Rust method is exported to Godot, the type information of the parameters is used to convert the incoming
Variant
s from Godot into the correct data type.We could allow a new type,
Option<T>
, to be used as a parameter type as well. When trying to construct the value upon a method call it can be checked if theVariant
isNULL
or not, and construct theOption<T>
accordingly.The text was updated successfully, but these errors were encountered: