+1 vote

I am not talking about Godot's Node tree Godot's Node system

https://vgy.me/1MM9s6

Instead I am referring to the graph node and Graph edit nodes. How to you attach them together in the game.

I know that in-editor there is something similar (CanvasItemShaderGraph) But that is for other purposes (Adjust shading). This is for a mini game in a game.

http://docs.godotengine.org/en/stable/classes/class_graphedit.html?highlight=Graph%20node

in Engine by (266 points)

Can take a look into theTreeItem class IIRC :D

NO! Did you read? I'm not talking TREE, I'm TALKING ABOUT Graphnode and GraphEdit NODES!

Sorry, misread your post

1 Answer

+2 votes
Best answer

Ah... Chalk this one up to Godot's Documentation. I thought the in-editor Search Help Was the same as the Website. It is not.

So I found out the following
1. the GraphNodes must be in a GraphEdit In order for them to be connected.
2. There is a signal and a function in order for GraphNodes to be edited.
3. _connection_request signal sends out data. (In GraphEdit)
4. connect_node () function takes the data from the signal and hooks up the two nodes (In GraphEdit).

From then on you can do with it as you please.

by (266 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.