Using a Transform for BBParameter no longer sets Transform.position

NodeCanvas Forums Support Using a Transform for BBParameter no longer sets Transform.position

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #13575
    timv
    Participant

    I’m in the process of upgrading to NodeCanvas 2.82, but I have found an issue.
    It seems, when using a Transform as a value for a BBParameter<Vector3>, NodeCanvas no longer sets Transform.position when writing to this blackboard parameter. The action task shows “AutoConvert: (Transform ➲ Vector3) [GET ONLY]”.
    Was this functionality removed by accident, or on purpose? Will it be restored, or can I restore it myself?

    EDIT:
    I have added this code to Variable.GetSetConverter:

    I rarely write this type of code, so it’s probably not the best, but it seems to do the trick for now. At least I have a workaround.

    #13584
    Gavalakis
    Keymaster

    Hey!

    Indeed, ‘Vector3 -> Transform’ auto conversion was actually removed on purpose, because it was a bit too “vague” on what it does if you don’t know about it, but I could probably add it back if it is something that is being used, which looks like it does 🙂

    Thanks!

    Join us on Discord: https://discord.gg/97q2Rjh

    #13616
    timv
    Participant

    I think it is a very convenient way of setting the position of objects. It´s quite a common operation and using this feature you can easily set the position of one object to be identical to some other object using a single GetProperty. Thanks for considering to put it back.

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