UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MeshDescriptionCommitter.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
7#include "MeshDescription.h"
8#include "UObject/Interface.h"
10
11#include "MeshDescriptionCommitter.generated.h"
12
13UINTERFACE(MinimalAPI)
18
20{
22
23public:
24
29 {
30 // It seems reasonable to have this function, but we'll go ahead and give a default implementation
31 // if users want to just implement the other one.
32 bool bSuccess = false;
34 {
35 if (CommitParams.MeshDescriptionOut)
36 {
37 *CommitParams.MeshDescriptionOut = Mesh;
38 bSuccess = true;
39 }
40 }, CommitParams);
41 return bSuccess;
42 }
43
44
49 {
50 // It seems reasonable to have this function, but we'll go ahead and give a default implementation
51 // if users want to just implement the other one.
52 bool bSuccess = false;
54 {
55 if (CommitParams.MeshDescriptionOut)
56 {
57 *CommitParams.MeshDescriptionOut = MoveTemp(Mesh);
58 bSuccess = true;
59 }
60 }, CommitParams);
61 return bSuccess;
62 }
63
68 {
69 return TArray<int32>();
70 }
71
72protected:
73
83
92
93};
OODEFFUNC typedef void(OODLE_CALLBACK t_fp_OodleCore_Plugin_Free)(void *ptr)
bool bSuccess
Definition ConvexDecomposition3.cpp:819
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UINTERFACE(...)
Definition ObjectMacros.h:780
Definition MeshDescriptionCommitter.h:20
virtual TArray< int32 > GetPolygonGroupToMaterialIndexMap() const
Definition MeshDescriptionCommitter.h:67
virtual bool CommitMeshDescription(const FMeshDescription &Mesh, const FCommitMeshParameters &CommitParams=FCommitMeshParameters())
Definition MeshDescriptionCommitter.h:28
virtual void CommitMeshDescription(const FCommitter &Committer, const FCommitMeshParameters &CommitParams=FCommitMeshParameters())=0
virtual bool CommitMeshDescription(FMeshDescription &&Mesh, const FCommitMeshParameters &CommitParams=FCommitMeshParameters())
Definition MeshDescriptionCommitter.h:48
Definition Array.h:670
Definition AndroidPlatformMisc.h:14
Definition Interface.h:19
Definition MeshDescriptionCommitter.h:15
Definition MeshTargetInterfaceTypes.h:57
Definition MeshDescription.h:94
Definition MeshDescriptionCommitter.h:75
FMeshDescription * MeshDescriptionOut
Definition MeshDescriptionCommitter.h:80