Simple Question: Using Set Field to set transform.position?

Forums 💬 NodeCanvas ⚙️ Support Simple Question: Using Set Field to set transform.position?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #15694
    notmateo
    Participant

      I’m totally new to this asset, and I’m just trying out some random things to get a feel for how this works and what I can do with it; right now my goal is simple, in the Sequencer, first step, make him move to (0, 0, 0). I was going to create a custom task for it, and I almost figured that out, when I learned about Set Field and Get Field. But when I try to select their transform.position, it doesn’t show up. Neither does Unit’s PlayerInput, or Unity’s Character Controller. Am I not able to access variables on Unity’s scripts?

      Sorry for the newb question.

      #15696
      Gavalakis
      Keymaster

        Hello and welcome.

        Please use Get Property and Set Property instead. Transform.position as well as most if not all Unity properties, are properties rather than fields 🙂

        Let me know if that works for you.

        Thanks!

        #15695
        notmateo
        Participant

          I’m almost embarrassed at how simple the solution was, yet I didn’t find it. Thanks for the help!

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