unreal.PCGDataViewData

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

Bases: PCGData

Acts as a type-erasing abstraction wrapper around other PCG Data types, as well as allowing for a limited selection of attributes or properties to be defined for performing an operation on later. I.e. Specified attributes or properties can be selectively serialized into another format, supported by implemented interfaces.

Ex. A PCG Data View Data could point to a PCG Point Data, where only the $Position property is selected. Because the point data implements the IPCGDataViewJson interface, the selection of Positions for each point in the data may be serialized to/from a Json object/string form.

Implementation Note: UPCGDataViewData should implement all available Data View interfaces to enforce and maintain parity with consumer types. Calling an interface method on the Data View Data should essentially forward the call to the underlying data, if the interface is supported.

C++ Source:

  • Plugin: PCG

  • Module: PCG

  • File: PCGDataViewData.h