Skip to content

YggdrasilNode API

Resource that stores node data, visuals, position, connections, and attributes.


Properties

Type Name Default
bool is_root false
String reference_id ""
int id 0
String name ""
String description ""
NodeType type SMALL
Texture2D icon null
Texture2D border_normal null
Texture2D border_intermediate null
Texture2D border_active null
Vector2 position Vector2(0, 0)
Dictionary[int, YggdrasilLineData] line_data {}
Array[int] out_nodes []
Array[int] in_nodes []
Dictionary[String, Array] attributes {}
bool locked false

Methods

Type Name
Array get_attribute_value(attribute_id: String)

Enumerations

enum NodeType:

  • NodeType SMALL = 0
    • TODO
  • NodeType MEDIUM = 1
    • TODO
  • NodeType LARGE = 2
    • TODO
  • NodeType DECORATION = 3
    • TODO

Property Descriptions

bool is_root = false

TODO

String reference_id = ""

TODO

int id = 0

TODO

String name = ""

TODO

String description = ""

TODO

NodeType type = SMALL

TODO

Texture2D icon = null

TODO

Texture2D border_normal = null

TODO

Texture2D border_intermediate = null

TODO

Texture2D border_active = null

TODO

Vector2 position = Vector2(0, 0)

TODO

Dictionary[int, YggdrasilLineData] line_data = {}

Each outgoing connection can have its own line data.

Array[int] out_nodes = []

Connection from this to other nodes.

Array[int] in_nodes = []

Connection from other nodes to this.

Dictionary[String, Array] attributes = {}

TODO

bool locked = false

Editor-only property.

Method Descriptions

Array get_attribute_value(attribute_id: String)

Returns the attribute value array for attribute_id, or an empty array if the attribute is not present.