unreal.PCGNode

class unreal.PCGNode(outer: Object | None = None, name: Name | str = 'None')

Bases: Object

C++ Source:

  • Plugin: PCG

  • Module: PCG

  • File: PCGNode.h

Editor Properties: (see get_editor_property/set_editor_property)

  • input_pins (Array[PCGPin]): [Read-Only]

  • node_title (Name): [Read-Write]

  • node_title_color (LinearColor): [Read-Write]

  • output_pins (Array[PCGPin]): [Read-Only]

  • settings_interface (PCGSettingsInterface): [Read-Only] Note: do not set this property directly from code, use SetSettingsInterface instead

add_edge_to(from_pin_label, to, to_pin_label) PCGNode

Adds an edge in the owning graph to the given “To” node.

Parameters:
Return type:

PCGNode

get_graph() PCGGraph

Returns the owning graph

Return type:

PCGGraph

get_node_position() -> (out_position_x=int32, out_position_y=int32)

Get Node Position

Returns:

out_position_x (int32):

out_position_y (int32):

Return type:

tuple

get_settings() PCGSettings

Returns the settings this node holds (either directly or through an instance)

Return type:

PCGSettings

property input_pins: None

[Read-Only]

Type:

(Array[PCGPin])

property node_title: Name

[Read-Write]

Type:

(Name)

property node_title_color: LinearColor

[Read-Write]

Type:

(LinearColor)

property output_pins: None

[Read-Only]

Type:

(Array[PCGPin])

remove_edge_to(from_pin_lable, to, to_pin_label) bool

Removes an edge originating from this node

Parameters:
Return type:

bool

set_node_position(position_x, position_y) None

Set Node Position

Parameters:
  • position_x (int32) –

  • position_y (int32) –

property settings_interface: PCGSettingsInterface

do not set this property directly from code, use SetSettingsInterface instead

Type:

(PCGSettingsInterface)

Type:

[Read-Only] Note