unreal.K2Node

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

Bases: EdGraphNode

Abstract base class of all blueprint graph nodes.

C++ Source:

  • Module: BlueprintGraph

  • File: K2Node.h

Editor Properties: (see get_editor_property/set_editor_property)

  • error_msg (str): [Read-Write] Error/Warning description

find_data_input_pin() BlueprintGraphPin

Returns the single data input pin associated with this node, returning default pin if there are multiple or no input(s)

Return type:

BlueprintGraphPin

find_execute_pin() BlueprintGraphPin

Returns the ‘execute’ or ‘do’ pin associated with this node, if any

Return type:

BlueprintGraphPin

find_input_pin(pin_name, type=[]) BlueprintGraphPin

Returns an input pin specified by name and, optionally, type

Parameters:
Return type:

BlueprintGraphPin

find_input_pin_by_index(index, type=[]) BlueprintGraphPin

Returns an input pin specified by index and, optionally, type

Parameters:
Return type:

BlueprintGraphPin

find_output_pin(pin_name, type=[]) BlueprintGraphPin

Returns an output pin specified by name and, optionally, type

Parameters:
Return type:

BlueprintGraphPin

find_output_pin_by_index(index, type=[]) BlueprintGraphPin

Returns an output pin specified by index and, optionally, type

Parameters:
Return type:

BlueprintGraphPin

find_result_pin() BlueprintGraphPin

Returns the single data output pin associated with this node, returning default pin if there are multiple or no output(s)

Return type:

BlueprintGraphPin

find_self_pin() BlueprintGraphPin

Returns the self pin associated with this node, if any

Return type:

BlueprintGraphPin

find_then_pin() BlueprintGraphPin

Returns the ‘then’ pin associated with this node, if any

Return type:

BlueprintGraphPin

get_node_category() str

Returns this node’s menu category

Return type:

str

get_node_pos() IntPoint

Returns this node’s visual position in the graph

Return type:

IntPoint

get_node_title() str

Returns this node’s title, as used when the node is displayed in a list

Return type:

str

list_all_pins(direction=EdGraphPinDirection.EGPD_MAX) Array[BlueprintGraphPin]

Returns all visible pins on this node, optionally discriminated by direction

Parameters:

direction (EdGraphPinDirection)

Return type:

Array[BlueprintGraphPin]

list_input_pins() Array[BlueprintGraphPin]

Returns all visible input pins on this node

Return type:

Array[BlueprintGraphPin]

list_output_pins() Array[BlueprintGraphPin]

Returns all visible output pins on this node

Return type:

Array[BlueprintGraphPin]

set_node_pos(pos) None

Sets this node’s visual position in the graph

Parameters:

pos (IntPoint)