unreal.PCGDataAsset

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

Bases: Object

Container for PCG data exported as standalone objects

C++ Source:

  • Plugin: PCG

  • Module: PCG

  • File: PCGDataAsset.h

Editor Properties: (see get_editor_property/set_editor_property)

  • category (Text): [Read-Write] Controls in what category the asset will appear in the palette & contextual menus.

  • color (LinearColor): [Read-Write] Custom node color to use for this specific asset

  • data (PCGDataCollection): [Read-Only] Contains direct data owned by this data asset

  • description (Text): [Read-Write] Additional description (tooltip) shown on the asset/loader node.

  • exporter_class (Class): [Read-Only] Custom exporter class that was used to create this PCG asset. Should derive from UPCGAssetExporter. Can be left empty.

  • expose_to_library (bool): [Read-Write] Controls whether the asset will be visible from the palette & contextual menus.

  • name (str): [Read-Write] Alternative name (instead of asset name), can be left empty

  • object_path (SoftObjectPath): [Read-Only] Reference to originating object (often will be a level)

  • settings_class (type(Class)): [Read-Only] Custom class to create settings/node in the graph when dragged in the editor. Can be left empty.

property category: Text

[Read-Write] Controls in what category the asset will appear in the palette & contextual menus.

Type:

(Text)

property color: LinearColor

[Read-Write] Custom node color to use for this specific asset

Type:

(LinearColor)

property data: PCGDataCollection

[Read-Only] Contains direct data owned by this data asset

Type:

(PCGDataCollection)

property description: Text

[Read-Write] Additional description (tooltip) shown on the asset/loader node.

Type:

(Text)

property exporter_class: Class

[Read-Only] Custom exporter class that was used to create this PCG asset. Should derive from UPCGAssetExporter. Can be left empty.

Type:

(Class)

property expose_to_library: bool

[Read-Write] Controls whether the asset will be visible from the palette & contextual menus.

Type:

(bool)

property name: str

[Read-Write] Alternative name (instead of asset name), can be left empty

Type:

(str)

property object_path: SoftObjectPath

[Read-Only] Reference to originating object (often will be a level)

Type:

(SoftObjectPath)

property settings_class: Class

[Read-Only] Custom class to create settings/node in the graph when dragged in the editor. Can be left empty.

Type:

(type(Class))