unreal.PCGGraph¶
- class unreal.PCGGraph(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
PCGGraphInterfaceC++ Source:
Plugin: PCG
Module: PCG
File: PCGGraph.h
Editor Properties: (see get_editor_property/set_editor_property)
category(Text): [Read-Write]color(LinearColor): [Read-Write] Override of the color for the subgraph node for this graph.debug_flag_applies_to_individual_components(bool): [Read-Write] When true the Debug flag in the graph editor will display debug information contextually for the selected debug object. Otherwise debug information is displayed for all components using a graph (requires regenerate).description(Text): [Read-Write]expose_to_library(bool): [Read-Write]generation_radii(PCGRuntimeGenerationRadii): [Read-Write]graph_customization(PCGGraphEditorCustomization): [Read-Write]has_default_constructed_inputs(bool): [Read-Write] Controls whether the default pins (In, …) are provided data on top-level graphs automatically. Note this will eventually change to be turned off by default.hi_gen_exponential(uint32): [Read-Write] Shifts the grid sizes upwards based on the value, which allows to use larger grids. A value of 1 will effectively use the graph’s Grid-400 values x 2 for the actual Grid-800 sizes and so on.hi_gen_grid_size(PCGHiGenGrid): [Read-Write]ignore_landscape_tracking(bool): [Read-Write] Marks the graph to be not refreshed automatically when the landscape changes, even if it is used.input_node(PCGNode): [Read-Write] Add input/output nodesis_editor_only(bool): [Read-Write] Sets whether this graph is marked as editor-only; note that the IsEditorOnly call depends on the local graph value and the value in all subgraphs, recursively.is_standalone_graph(bool): [Read-Write] When enabled, this graph can be executed outside of the world using an editor execution source.is_template(bool): [Read-Write]landscape_uses_metadata(bool): [Read-Write]nodes(Array[PCGNode]): [Read-Write]output_node(PCGNode): [Read-Write]override_color(bool): [Read-Write]override_title(bool): [Read-Write]title(Text): [Read-Write] Override of the title for the subgraph node for this graph.tool_data(PCGGraphToolData): [Read-Write] Contains the data relevant for PCG Editor Mode usage.use2d_grid(bool): [Read-Write]use_hierarchical_generation(bool): [Read-Write]user_parameters(InstancedPropertyBag): [Read-Write] Parameters
- add_edge(from_, from_pin_label, to, to_pin_label) PCGNode¶
Adds a directed edge in the graph. Returns the “To” node for easy chaining
- add_node_copy(settings) -> (PCGNode, default_node_settings=PCGSettings)¶
Creates a node and copies the input settings. Returns the created node.
- Parameters:
settings (PCGSettings)
- Returns:
default_node_settings (PCGSettings):
- Return type:
- add_node_instance(settings) PCGNode¶
Creates a node containing an instance to the given settings. Returns the created node.
- Parameters:
settings (PCGSettings)
- Return type:
- add_node_of_type(settings_class) -> (PCGNode, default_node_settings=PCGSettings)¶
Creates a default node based on the settings class wanted. Returns the newly created node.
- Parameters:
- Returns:
default_node_settings (PCGSettings):
- Return type:
- force_notification_for_editor(change_type=PCGChangeType.STRUCTURAL) None¶
Force Notification for Editor
- Parameters:
change_type (PCGChangeType)
- property generation_radii: PCGRuntimeGenerationRadii¶
[Read-Write]
- Type:
- property has_default_constructed_inputs: bool¶
[Read-Write] Controls whether the default pins (In, …) are provided data on top-level graphs automatically. Note this will eventually change to be turned off by default.
- Type:
(bool)
- property ignore_landscape_tracking: bool¶
[Read-Write] Marks the graph to be not refreshed automatically when the landscape changes, even if it is used.
- Type:
(bool)
- property is_editor_only: bool¶
[Read-Write] Sets whether this graph is marked as editor-only; note that the IsEditorOnly call depends on the local graph value and the value in all subgraphs, recursively.
- Type:
(bool)
- property is_standalone_graph: bool¶
[Read-Write] When enabled, this graph can be executed outside of the world using an editor execution source.
- Type:
(bool)
- remove_edge(from_, from_label, to, to_label) bool¶
Removes an edge in the graph. Returns true if an edge was removed.
- property tool_data: PCGGraphToolData¶
[Read-Write] Contains the data relevant for PCG Editor Mode usage.
- Type: