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 🙂