custom function set value in parameter

FlowCanvas Forums Support custom function set value in parameter

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1797
    Lolitowww
    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!

    #1798
    Lolitowww
    Participant

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

    #1800
    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?

    ScreenToWorldPos

    Thanks.

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

    Attachments:
    You must be logged in to view attached files.
    #1803
    Lolitowww
    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!

    #1805
    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!

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

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