Graph snippets: Vector3 from GameObject

Forums 💬 FlowCanvas 🤩 Custom Nodes and Macros Graph snippets: Vector3 from GameObject

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #11888
    rixter757
    Participant

      Posted by Gav on Unity forums 🙂 This is an excellent example of the work that Flowcanvas saves you from having to do.

      So, the easiest way would be to directly connect a gameobject to the Vector3 port, which is possible due to automatic conversion feature.
      I have made it so that GameObject converts to Vector3 through its ‘.transform.position’ property

      [attachment file=”Trans1.png”]

      You could of course go the long way like this, since Transform, converts to Vector3 though .position:

      [attachment file=”Trans2.png”]

      Or even the longest way like this:

      [attachment file=”Trans3.png”]

    Viewing 1 post (of 1 total)
    • You must be logged in to reply to this topic.