xNode icon indicating copy to clipboard operation
xNode copied to clipboard

Feature request. Double sided input nodes.

Open Hitomilras opened this issue 2 years ago • 2 comments

Sometimes it's needed to have input / output ports on both sides. I mean 1 field with [Input] attribute, but 2 ports (on left and right sides simultaneously)

Example: Doozy UI with their state machines.

I understand that this is hard to implement in existing architecture, but may be you'll figure how to do it without reorganizing entire system :D

Hitomilras avatar Mar 23 '22 19:03 Hitomilras

You mean you want an input and an output on the same line? You can so this with NodeEditorGUILayout.PortPair

Siccity avatar Mar 25 '22 06:03 Siccity

No :)

For example in unity Mecanim system you can set transition A->B and second transition B->A. In xNode it's impossible as I see, because node Input always have only one Entry Point. On the left side.

But it's important in some situations that single INPUT can have two entry points (one on the left, one on the right).

The great example of this is the Doozy UI system. They have Nody. This is node based states editor with this exact functionality that described above.

It can be implemented like bool in Input / Output attribute. Something like [Input(doubleSided = true)] or [Output(doubleSided = true)].

Hitomilras avatar Mar 31 '22 09:03 Hitomilras