unreal.UAFGraphNodeTemplate¶
- class unreal.UAFGraphNodeTemplate(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
ObjectA template defining the appearance and behavior of a node in an animation graph ~This class is not instanced, rather its functions are called on its default object
C++ Source:
Plugin: UAFAnimGraph
Module: UAFAnimGraphUncookedOnly
File: UAFGraphNodeTemplate.h
Editor Properties: (see get_editor_property/set_editor_property)
category(Text): [Read-Write] The default category of the nodecolor(LinearColor): [Read-Write] The default color of the nodedrag_drop_asset_types(Array[type(Class)]): [Read-Write] Asset types that we handle for drag-dropicon(SlateBrush): [Read-Write] The icon of the nodemenu_description(Text): [Read-Write] The default menu description of the nodenode_layout(RigVMNodeLayout): [Read-Write]sub_title(Text): [Read-Write] The default subtitle of the nodetitle(Text): [Read-Write] The default title of the nodetooltip_text(Text): [Read-Write] The default tooltip text of the nodetraits(Array[InstancedStruct]): [Read-Write] The traits that we will instantiate
- property color: LinearColor¶
[Read-Only] The default color of the node
- Type:
- configure_new_node(controller, node) bool¶
Called in editor when a node is first spawned
- Parameters:
controller (AnimNextController)
node (RigVMUnitNode)
- Return type:
- get_color() LinearColor¶
Get the title color of this node
- Return type:
- get_default_category_layout() RigVMNodeLayout¶
Get a layout that assigns all trait pins to the default category
- Return type:
- get_icon() SlateBrush¶
Get the icon of this node
- Return type:
Get the menu description of this node
- Return type:
- get_node_layout() RigVMNodeLayout¶
Get the node layout
- Return type:
- get_per_trait_categories_layout() RigVMNodeLayout¶
Get a layout that assigns all trait pins categories of their traits
- Return type:
- handle_asset_dropped(controller, node, asset) None¶
Called in editor when an asset is drag/dropped. Called after ConfigureNewNode.
- Parameters:
controller (AnimNextController)
node (RigVMUnitNode)
asset (Object)
- handle_pin_default_value_changed(controller, pin) None¶
Called in editor when a pin default value is changed, e.g. to be used to reconfigure the nodes appearance
- Parameters:
controller (AnimNextController)
pin (RigVMPin)
- property icon: SlateBrush¶
[Read-Only] The icon of the node
- Type:
[Read-Only] The default menu description of the node
- Type:
(Text)
- property node_layout: RigVMNodeLayout¶
[Read-Only]
- Type:
- classmethod set_category_for_pins_in_layout(pin_paths, category_path, expanded_by_default=True) RigVMNodeLayout¶
Sets the category of the supplied pins in a node layout
- Parameters:
- Returns:
layout (RigVMNodeLayout):
- Return type:
- classmethod set_display_name_for_pin_in_layout(pin_path, pin_display_name) RigVMNodeLayout¶
Sets the display name for a supplied pin in a node layout
- Parameters:
- Returns:
layout (RigVMNodeLayout):
- Return type: