Custom objects as parameters not working? #97
Closed
hmrrrrr
started this conversation in
Is this a bug?
Replies: 1 comment 1 reply
-
Hmm, by design that should just work as you've expected it to. I'll have a look at this and let you know when it's working. Thank you for providing a complete example! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Calling an exported function that uses a custom object as a parameter (like in this example) doesn't seem to work:
The following GDScript then causes a panic at runtime:
panic: cannot convert [1]gd.Object to struct main.CustomObject
Not sure if this is missing functionality or if there's an intended way of doing this - maybe the function could accept an
Object.Instance
and cast it some other way??Beta Was this translation helpful? Give feedback.
All reactions