-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C#: Populate Type
field on godot_variant
created in managed
#65061
C#: Populate Type
field on godot_variant
created in managed
#65061
Conversation
This comment was marked as off-topic.
This comment was marked as off-topic.
@markdibarry By design, Variant's only integer type is 64-bit (note: Vector2i/3i/4i use 32-bit ints only). |
@aaronfranke Ah. That's very weird, but good to know! I've been using |
This code looks like it's missing |
I can do that in a second PR if need be 😉 Although, looking at it, I think they are handled on the native side? Someone else can probably confirm/infirm. |
It's handled on the native side, but |
@markdibarry You can use |
This is a fix for #65055.
When created from
NativeFuncs.godotsharp_variant_new_copy
, variants always had their type property defaulted toNil
. I wondered if it'd be better to populate the type directly in the setters ofgodot_variant
but methods inVariantUtils
pass in the type like that.