UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
DataflowMesh.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "UObject/Object.h"
7#include "DataflowMesh.generated.h"
8
9#define UE_API DATAFLOWENGINE_API
10
12
16UCLASS(MinimalAPI)
18{
20
21public:
22
23 UE_API const UE::Geometry::FDynamicMesh3* GetDynamicMesh() const;
24 UE_API const UE::Geometry::FDynamicMesh3& GetDynamicMeshRef() const;
25
26 UE_API const TArray<TObjectPtr<UMaterialInterface>>& GetMaterials() const;
27
28 template<typename MeshType>
29 void SetDynamicMesh(MeshType&& InMesh)
30 {
31 if (!DynamicMesh)
32 {
34 }
35 else
36 {
37 *DynamicMesh = Forward<MeshType>(InMesh);
38 }
39 }
40
41 template<typename MaterialArrayType>
46
47 template<typename MaterialArrayType>
52
53protected:
54
56
57 UPROPERTY()
59
61};
62
63#undef UE_API
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UE_API
Definition DataflowMesh.h:9
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition Archive.h:1208
Definition Array.h:670
Definition UniquePtr.h:107
Definition DataflowMesh.h:18
void SetMaterials(MaterialArrayType &&InMaterials)
Definition DataflowMesh.h:42
void SetDynamicMesh(MeshType &&InMesh)
Definition DataflowMesh.h:29
void AddMaterials(MaterialArrayType &&InMaterials)
Definition DataflowMesh.h:48
TUniquePtr< UE::Geometry::FDynamicMesh3 > DynamicMesh
Definition DataflowMesh.h:55
Definition DynamicMesh3.h:108
Definition MaterialInterface.h:296
Definition Object.h:95
Definition ObjectPtr.h:488