Reply To: How to Auto Position/Align/Layout Tree Nodes?

Forums 💬 NodeCanvas ⚙️ Support How to Auto Position/Align/Layout Tree Nodes? Reply To: How to Auto Position/Align/Layout Tree Nodes?

#23050
Gavalakis
Keymaster

    Hello there,

    There is no option to auto-arrange the nodes, but since you create the nodes in runtime from code, you can set the position of each node when you create it. The “graph.AddNode” method has an overload that accepts Vector2 parameter for the position of the node (you can also just set it afterwards with the “node.position” property of course.

    Let me know if that works for you.