unreal.PCGMatchAndSetBase
¶
- class unreal.PCGMatchAndSetBase(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
Object
Base class for Match & Set objects. Note that while it currently deals with points, it might be extended in the future. This class is extensible and can be implemented in different ways, but its role should be simple: For a given point, if it matches some criteria (“Match”), apply it some value (“Set”). It can be a lookup, a random process or something more involved.
C++ Source:
Plugin: PCG
Module: PCG
File: PCGMatchAndSetBase.h
- match_and_set(context, settings, point_data, out_point_data) PCGContext ¶
Main function to process points, and pass them through the Match & Set logic.
- Parameters:
context (PCGContext) –
settings (PCGPointMatchAndSetSettings) –
point_data (PCGPointData) –
out_point_data (PCGPointData) –
- Returns:
context (PCGContext):
- Return type:
- validate_preconditions(point_data) bool ¶
Early check to prevent issues when the data does not contain the required information to perform the operation
- Parameters:
point_data (PCGPointData) –
- Return type: