var pos = transform.position; (Vector3)
CreateObjectAt(pos);
With the following function:
CreateObjectAt(Vector2 pos)
Trying to do the same thing with a dynamic var in NodeCanvas however, results in pos being Vector2.zero. If I change the parameter to Vector3 pos, then it works properly, however both ways should work (similar to code).
Is that possible to support? There’s no error or anything for this, so it’s kind of a silent issue that can pop up leaving someone scratching their head.
I will try and add support for this kind of variables convertions in the next update. It should be easy to implement as far as I can forsee.
Thanks for the suggestion 🙂
Join us on Discord: https://discord.gg/97q2Rjh
Author
Posts
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
Login
Register
By registering on this website you agree to our Privacy Policy.