How do you attach Graph nodes in-game

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By lavaduder
:warning: Old Version Published before Godot 3 was released.

I am not talking about Godot’s Node tree

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.

Can take a look into the TreeItem class IIRC :smiley:

wombatTurkey | 2017-12-19 19:45

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

lavaduder | 2017-12-20 08:15

Sorry, misread your post

wombatTurkey | 2017-12-20 14:04

:bust_in_silhouette: Reply From: lavaduder

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.