Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request. Double sided input nodes. #339

Open
Hitomilras opened this issue Mar 23, 2022 · 2 comments
Open

Feature request. Double sided input nodes. #339

Hitomilras opened this issue Mar 23, 2022 · 2 comments

Comments

@Hitomilras
Copy link

Hitomilras commented Mar 23, 2022

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

@Siccity
Copy link
Owner

Siccity commented Mar 25, 2022

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

@Hitomilras
Copy link
Author

Hitomilras commented Mar 31, 2022

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)].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants