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

Drag and Drop interaction with Grid #133

Open
tianyu2 opened this issue Nov 5, 2021 · 2 comments
Open

Drag and Drop interaction with Grid #133

tianyu2 opened this issue Nov 5, 2021 · 2 comments

Comments

@tianyu2
Copy link

tianyu2 commented Nov 5, 2021

Hi i have a question if i want to drag and a texture into the node editor and create an node for it (like unreal engine's material editor) where should I put my imgui drag and drop func ? because when I try to put inside the Imgui::begin its not working .

@Green-Sky
Copy link

Make sure you understand ImGui drag n drop, before applying it to ImNodes

@tianyu2
Copy link
Author

tianyu2 commented Nov 5, 2021

Make sure you understand ImGui drag n drop, before applying it to ImNodes

Thank you for your reply am sorry because I am skill kinda newbie, from all these imgui stuff from what I understand now imgui drag and drop takes in the id of whatever the source is for the target and i have been doing my drag and drop base on that logic,but when i try to put it inside
ImNodes::EditorContextSet(editor.context);
ImNodes::BeginNodeEditor();
(DRAG AND DROP CODE)

it did not trigger so I am really confused, if you do not mind can I waste a bit of your time can you explain to me?
Thank you!

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