custom function set value in parameter

Forums 💬 FlowCanvas ⚙️ Support custom function set value in parameter

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #21940
    xavioromi
    Participant

      Hi!
      I’m testing FlowCanvas but i dont know how can i set a value of a parameter in a custom function with flow canvas nodes?

      https://i.gyazo.com/851b350c696089fa52df2c90d46539d9.png

      thanks!

      #21944
      xavioromi
      Participant

        More info: i want to replicate this code:
        private Vector3 MouseInWorldCoords()
        {
        var screenMousePos = Input.mousePosition;
        screenMousePos.z = zDisplacement;
        return Camera.main.ScreenToWorldPoint(screenMousePos);
        }

        #21943
        Gavalakis
        Keymaster

          Hello and sorry for the late reply (I was ill).

          You don’t really need to use the “Internal Var” node. This node is simply to “relay” distant connections. Here is how you can make the function you asked for. Is that what you were after?

          [attachment file=”ScreenToWorldPos.png”]

          Thanks.

          #21942
          xavioromi
          Participant

            Thanks for the reply! I see what i was doing wrong now. Cool, its very useful too see an exact recreation of the code With nodes. Its helps a lot for someone like me who don’t know much about coding. I’m still very new to flowcanvas and i’m figuring out many things and also it is helping me to understand many things regarding to code.

            Thank you very much!

            #21941
            Gavalakis
            Keymaster

              Hey,

              You are very welcome. I am glad I could be of help! 🙂
              I am also glad to hear that FlowCanvas is helping you in understanding code as well 🙂

              Thanks!

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