Vector3 don't work with reflected function Vector2 parameters

NodeCanvas Forums Support Vector3 don't work with reflected function Vector2 parameters

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10452
    Async0x42
    Participant

    With code at least, we can call

    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.

    #10465
    Gavalakis
    Keymaster

    Hey,

    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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.