Godot Version
4.3-mono
Question
I want to return a null
of GDScript
in C#
, and I can only use Variant
as the return value.
So how to return a Variant
contains a null
.
public override Variant _PropertyGetRevert(StringName property)
{
return null; // this throws a compilation error, how to fix it?
// In fact, it will only return null when it's in some specified conditions.
}
I have read the C# Variant
Documentation but I have found nothing related that.
Thanks very much.