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
I have c++ function ClassDB::bind_method(D_METHOD("ReceivedDamage","damage"), &Person::ReceivedDamage); which is ReceivedDamage(float damage);
From gdscript I call it with ReceivedDamage(10) and in c++ 0 is received. Sending ReceivedDamage(10.0) works fine
The text was updated successfully, but these errors were encountered:
RonYanDaik
changed the title
Sending int to float function receives 0 (zero)
Sending int from GDScript to float c++ function receives 0 (zero)
May 2, 2023
I have c++ function
ClassDB::bind_method(D_METHOD("ReceivedDamage","damage"), &Person::ReceivedDamage);
which isReceivedDamage(float damage);
From
gdscript
I call it withReceivedDamage(10)
and in c++ 0 is received. SendingReceivedDamage(10.0)
works fineThe text was updated successfully, but these errors were encountered: