unreal.PCGMatchAndSetByAttribute

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

Bases: PCGMatchAndSetBase

This Match & Set object looks up an attribute on a given point, then looks up its entries to find a match; if there is one, then it sets it value.

C++ Source:

  • Plugin: PCG

  • Module: PCG

  • File: PCGMatchAndSetByAttribute.h

Editor Properties: (see get_editor_property/set_editor_property)

  • entries (Array[PCGMatchAndSetByAttributeEntry]): [Read-Write] Lookup entries (key-value pairs)

  • match_source_attribute (Name): [Read-Write] Attribute to match on the data

  • match_source_type (PCGMetadataTypes): [Read-Write] Type of the attribute to match against.

property entries: None

[Read-Write] Lookup entries (key-value pairs)

Type:

(Array[PCGMatchAndSetByAttributeEntry])

property match_source_attribute: Name

[Read-Write] Attribute to match on the data

Type:

(Name)

property match_source_type: PCGMetadataTypes

[Read-Write] Type of the attribute to match against.

Type:

(PCGMetadataTypes)