unreal.PCGInstanceDataPackerBase
¶
- class unreal.PCGInstanceDataPackerBase(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
Object
PCGInstance Data Packer Base
C++ Source:
Plugin: PCG
Module: PCG
File: PCGInstanceDataPackerBase.h
- add_type_to_packing(type_id) PCGPackedCustomData or None ¶
Interprets Metadata TypeId and increments OutPackedCustomData.NumCustomDataFloats appropriately. Returns false if the type could not be interpreted.
- Parameters:
type_id (int32) –
- Returns:
out_packed_custom_data (PCGPackedCustomData):
- Return type:
PCGPackedCustomData or None
- pack_custom_data_from_attributes(instance_list, metadata, attribute_names) PCGPackedCustomData ¶
Build a PackedCustomData by processing each attribute in order for each point in the InstanceList
- Parameters:
instance_list (PCGMeshInstanceList) –
metadata (PCGMetadata) –
- Returns:
out_packed_custom_data (PCGPackedCustomData):
- Return type:
- pack_instances(spatial_data, instance_list) -> (context=PCGContext, out_packed_custom_data=PCGPackedCustomData)¶
Defines the strategy for (H)ISM custom float data packing
- Parameters:
spatial_data (PCGSpatialData) –
instance_list (PCGMeshInstanceList) –
- Returns:
context (PCGContext):
out_packed_custom_data (PCGPackedCustomData):
- Return type:
tuple