Navigation
API > API/Plugins > API/Plugins/PCG
| Name | UPCGDynamicMeshData |
| Type | class |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Data/PCGDynamicMeshData.h |
| Include Path | #include "Data/PCGDynamicMeshData.h" |
Syntax
UCLASS (MinimalAPI, BlueprintType, ClassGroup=(Procedural))
class UPCGDynamicMeshData : public UPCGSpatialData
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UPCGData → UPCGSpatialData → UPCGDynamicMeshData
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UPCGDynamicMeshData
(
const FObjectInitializer& ObjectInitializer |
Data/PCGDynamicMeshData.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| TypeInfo | FPCGDataTypeInfoDynamicMesh | Data/PCGDynamicMeshData.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const UDynamicMesh * GetDynamicMesh() |
Data/PCGDynamicMeshData.h | ||
const UE::Geometry::FDynamicMeshOctree3 & GetDynamicMeshOctree() |
TODO needs an implementation to support projection virtual bool ProjectPoint(const FTransform& InTransform, const FBox& InBounds, const FPCGProjectionParams& InParams, FPCGPoint& OutPoint, UPCGMetadata* OutMetadata) const; | Data/PCGDynamicMeshData.h | |
const TArray< TObjectPtr< UMaterialInterface > > & GetMaterials() |
Data/PCGDynamicMeshData.h | ||
UDynamicMesh * GetMutableDynamicMesh() |
Data/PCGDynamicMeshData.h | ||
TArray< TObjectPtr< UMaterialInterface > > & GetMutableMaterials() |
Data/PCGDynamicMeshData.h | ||
void Initialize
(
UDynamicMesh* InMesh, |
Data/PCGDynamicMeshData.h | ||
void Initialize
(
UE::Geometry::FDynamicMesh3&& InMesh, |
Data/PCGDynamicMeshData.h | ||
void InitializeDynamicMeshComponentFromData
(
UDynamicMeshComponent* InComponent |
Copy the mesh of the data into the component and set the materials. | Data/PCGDynamicMeshData.h | |
void K2_Initialize
(
UDynamicMesh* InMesh, |
Initialize the dynamic mesh data from an input dynamic mesh object. | Data/PCGDynamicMeshData.h |
|
void SetMaterials
(
const TArray< UMaterialInterface* >& InMaterials |
Data/PCGDynamicMeshData.h |
|
Overridden from UPCGSpatialData
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FBox GetBounds() |
Returns the full bounds (including density fall-off) of the data | Data/PCGDynamicMeshData.h | |
virtual int GetDimension() |
Returns the dimension of the data type, which has nothing to do with the dimension of its points | Data/PCGDynamicMeshData.h | |
virtual bool SamplePoint
(
const FTransform& Transform, |
Sample rotation, scale and other attributes from this data at the query position. | Data/PCGDynamicMeshData.h | |
virtual const UPCGPointArrayData * ToPointArrayData
(
FPCGContext* Context, |
Data/PCGDynamicMeshData.h | ||
virtual const UPCGPointData * ToPointData
(
FPCGContext* Context, |
Data/PCGDynamicMeshData.h |
Overridden from UPCGData
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void AddToCrc
(
FArchiveCrc32& Ar, |
Adds this data to Crc. | Data/PCGDynamicMeshData.h | |
virtual PRAGMA_DISABLE_DEPRECATION_WARNINGSEPCGDataType GetDataType() |
@todo_pcg To be deprecated when we switch to the new type | Data/PCGDynamicMeshData.h | |
virtual const FPCGDataTypeBaseId & GetDataTypeId() |
Data/PCGDynamicMeshData.h |
Protected
Overridden from UPCGSpatialData
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual UPCGSpatialData * CopyInternal
(
FPCGContext* Context |
Data/PCGDynamicMeshData.h |
Overridden from UPCGData
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool SupportsFullDataCrc() |
Whether the data distinguishes between regular crc and full crc | Data/PCGDynamicMeshData.h |