UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
DynamicMeshActor.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "UDynamicMesh.h"
8
9#include "DynamicMeshActor.generated.h"
10
11
15UCLASS(ConversionRoot, ComponentWrapperClass, ClassGroup=DynamicMesh, meta = (ChildCanTick), MinimalAPI)
17{
19
20protected:
21 UPROPERTY(Category = DynamicMeshActor, VisibleAnywhere, BlueprintReadOnly, meta = (ExposeFunctionCategories = "Mesh,Rendering,Physics,Components|StaticMesh", AllowPrivateAccess = "true"))
22 TObjectPtr<class UDynamicMeshComponent> DynamicMeshComponent;
23
24public:
25 UFUNCTION(BlueprintCallable, Category = DynamicMeshActor)
26 UDynamicMeshComponent* GetDynamicMeshComponent() const { return DynamicMeshComponent; }
27
28
29
30 //
31 // Mesh Pool support. Meshes can be locally allocated from the Mesh Pool
32 // in Blueprints, and then released back to the Pool and re-used. This
33 // avoids generating temporary UDynamicMesh instances that need to be
34 // garbage-collected. See UDynamicMeshPool for more details.
35 //
36
37public:
39 UPROPERTY(Category = "DynamicMeshActor|Advanced", EditAnywhere, BlueprintReadWrite)
40 bool bEnableComputeMeshPool = true;
44 TObjectPtr<UDynamicMeshPool> DynamicMeshPool;
45
46public:
48 UFUNCTION(BlueprintCallable, Category = DynamicMeshActor)
49 GEOMETRYFRAMEWORK_API UDynamicMeshPool* GetComputeMeshPool();
50
52 UFUNCTION(BlueprintCallable, Category = DynamicMeshActor)
53 GEOMETRYFRAMEWORK_API UDynamicMesh* AllocateComputeMesh();
54
56 UFUNCTION(BlueprintCallable, Category = DynamicMeshActor)
57 GEOMETRYFRAMEWORK_API bool ReleaseComputeMesh(UDynamicMesh* Mesh);
58
60 UFUNCTION(BlueprintCallable, Category = DynamicMeshActor)
61 GEOMETRYFRAMEWORK_API void ReleaseAllComputeMeshes();
62
64 UFUNCTION(BlueprintCallable, Category = DynamicMeshActor)
65 GEOMETRYFRAMEWORK_API void FreeAllComputeMeshes();
66};
67
68
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
return true
Definition ExternalRpcRegistry.cpp:601
const bool
Definition NetworkReplayStreaming.h:178
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define UFUNCTION(...)
Definition ObjectMacros.h:745
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition Actor.h:257
Definition DynamicMeshActor.h:17
Definition UDynamicMesh.h:388
Definition UDynamicMesh.h:123
Definition ObjectPtr.h:488