unreal.PCGDataView

class unreal.PCGDataView

Bases: StructBase

This wrapper class maintains a reference to unowned “viewed” data and also contains a “selection” of metadata. This can be used with a variety of operations–usually exporting data–where a PCG Data type needs to be abstracted and/or serialized into a more generic type or refined to an explicit selection of properties or attributes on the data, to make it more accessible for processing.

Ex. Convert the $Position property of each point in a PCG Point data into Json key:value objects.

C++ Source:

  • Plugin: PCG

  • Module: PCG

  • File: PCGDataView.h

Editor Properties: (see get_editor_property/set_editor_property)

  • selection (PCGDataViewSelection): [Read-Only] An optionally filtered collection of attributes and properties to perform an operation on, such as data export.

  • viewed_data (PCGData): [Read-Only] The PCG Data this will provide a ‘view’ onto.