Reply To: two-way binding properties node.

Forums 💬 FlowCanvas ⚙️ Support two-way binding properties node. Reply To: two-way binding properties node.

#21716
toto007
Participant

    Thanks, It’s works!

    I want that user can editing some variables of node through the tools of support.
    So, I have created a node custom “TweenPosition” for create an animation of an object in a determinate position (To). You can look my example here:

    If you can look at my code I would like to know if it is the correct way to achieve this goal.Basically what I do that when the node is selected I then transfer the reference of the “to” field of the node to an internal my class that serves to manage the waypoint on the scene.

    This class is my custom flownode
    Tweenposition.cs

    This class is useful to create the placeholder waypoint on the object on which the node works
    TweenPositionEditor.cs

    This class does the through to share the variable position of the node “Tweenposition.cs” with the class “TweenPositionEditor.cs “that manage the waypoint drawn the handles on the Scenaview
    TweenPositionMonoB.cs

    If I may I would ask you another advice. I would like to know when the Serializevalue changes value. I thought I’d extend the class Valueinput<T> and overwrite the serializedvalue set method to launch an event when its value changes from the previous.