UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
StaticMeshAttributes.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
6#include "Math/Vector2D.h"
7#include "Math/Vector4.h"
9#include "MeshAttributes.h"
10#include "MeshDescription.h"
11#include "UObject/NameTypes.h"
12
13
14namespace MeshAttribute
15{
16 namespace Vertex
17 {
18 }
19
20 namespace VertexInstance
21 {
27 }
28
29 namespace Edge
30 {
32 }
33
34 namespace Triangle
35 {
39 }
40
41 namespace Polygon
42 {
44 }
45
46 namespace PolygonGroup
47 {
49 }
50}
51
52
54{
55public:
56
60
61 STATICMESHDESCRIPTION_API virtual void Register(bool bKeepExistingAttribute = false) override;
62
79
81
87
90
93
96
99
102
105
108
111
114
118
121};
122
123
125{
126public:
127
131
143};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
@ Vertex
Definition MetalRHIPrivate.h:223
Definition MeshAttributes.h:59
static bool IsReservedAttributeName(const FName InAttributeName)
Definition MeshAttributes.h:69
FMeshDescription & MeshDescription
Definition MeshAttributes.h:196
Definition MeshAttributes.h:201
const FMeshDescription & MeshDescription
Definition MeshAttributes.h:266
Definition NameTypes.h:617
Definition StaticMeshAttributes.h:54
TEdgeAttributesRef< bool > GetEdgeHardnesses()
Definition StaticMeshAttributes.h:103
TTriangleAttributesConstRef< FVector3f > GetTriangleBinormals() const
Definition StaticMeshAttributes.h:113
TTriangleAttributesRef< FVector3f > GetTriangleNormals()
Definition StaticMeshAttributes.h:106
TVertexInstanceAttributesConstRef< float > GetVertexInstanceBinormalSigns() const
Definition StaticMeshAttributes.h:98
TTriangleAttributesConstRef< FVector3f > GetTriangleNormals() const
Definition StaticMeshAttributes.h:107
TVertexInstanceAttributesConstRef< FVector2f > GetVertexInstanceUVs() const
Definition StaticMeshAttributes.h:89
TTriangleAttributesConstRef< FVector3f > GetTriangleTangents() const
Definition StaticMeshAttributes.h:110
TVertexInstanceAttributesConstRef< FVector4f > GetVertexInstanceColors() const
Definition StaticMeshAttributes.h:101
FStaticMeshAttributes(FMeshDescription &InMeshDescription)
Definition StaticMeshAttributes.h:57
STATICMESHDESCRIPTION_API void RegisterPolygonObjectNameAttribute()
Definition StaticMeshAttributes.cpp:85
static bool IsReservedAttributeName(const FName InAttributeName)
Definition StaticMeshAttributes.h:63
TPolygonAttributesConstRef< FName > GetPolygonObjectNames() const
Definition StaticMeshAttributes.h:117
TVertexInstanceAttributesConstRef< FVector3f > GetVertexInstanceTangents() const
Definition StaticMeshAttributes.h:95
TPolygonGroupAttributesConstRef< FName > GetPolygonGroupMaterialSlotNames() const
Definition StaticMeshAttributes.h:120
TEdgeAttributesConstRef< bool > GetEdgeHardnesses() const
Definition StaticMeshAttributes.h:104
TVertexInstanceAttributesRef< FVector4f > GetVertexInstanceColors()
Definition StaticMeshAttributes.h:100
TTriangleAttributesRef< FVector3f > GetTriangleBinormals()
Definition StaticMeshAttributes.h:112
TTriangleAttributesRef< FVector3f > GetTriangleTangents()
Definition StaticMeshAttributes.h:109
TVertexInstanceAttributesRef< float > GetVertexInstanceBinormalSigns()
Definition StaticMeshAttributes.h:97
TVertexInstanceAttributesRef< FVector2f > GetVertexInstanceUVs()
Definition StaticMeshAttributes.h:88
TPolygonGroupAttributesRef< FName > GetPolygonGroupMaterialSlotNames()
Definition StaticMeshAttributes.h:119
TPolygonAttributesRef< FName > GetPolygonObjectNames()
Definition StaticMeshAttributes.h:116
TVertexInstanceAttributesRef< FVector3f > GetVertexInstanceTangents()
Definition StaticMeshAttributes.h:94
TVertexInstanceAttributesRef< FVector3f > GetVertexInstanceNormals()
Definition StaticMeshAttributes.h:91
STATICMESHDESCRIPTION_API void RegisterTriangleNormalAndTangentAttributes()
Definition StaticMeshAttributes.cpp:77
TVertexInstanceAttributesConstRef< FVector3f > GetVertexInstanceNormals() const
Definition StaticMeshAttributes.h:92
Definition StaticMeshAttributes.h:125
TVertexInstanceAttributesConstRef< float > GetVertexInstanceBinormalSigns() const
Definition StaticMeshAttributes.h:135
TTriangleAttributesConstRef< FVector3f > GetTriangleTangents() const
Definition StaticMeshAttributes.h:139
TVertexInstanceAttributesConstRef< FVector3f > GetVertexInstanceNormals() const
Definition StaticMeshAttributes.h:133
TVertexInstanceAttributesConstRef< FVector2f > GetVertexInstanceUVs() const
Definition StaticMeshAttributes.h:132
TVertexInstanceAttributesConstRef< FVector4f > GetVertexInstanceColors() const
Definition StaticMeshAttributes.h:136
TEdgeAttributesConstRef< bool > GetEdgeHardnesses() const
Definition StaticMeshAttributes.h:137
TTriangleAttributesConstRef< FVector3f > GetTriangleBinormals() const
Definition StaticMeshAttributes.h:140
TPolygonAttributesConstRef< FName > GetPolygonObjectNames() const
Definition StaticMeshAttributes.h:141
TPolygonGroupAttributesConstRef< FName > GetPolygonGroupMaterialSlotNames() const
Definition StaticMeshAttributes.h:142
FStaticMeshConstAttributes(const FMeshDescription &InMeshDescription)
Definition StaticMeshAttributes.h:128
TVertexInstanceAttributesConstRef< FVector3f > GetVertexInstanceTangents() const
Definition StaticMeshAttributes.h:134
TTriangleAttributesConstRef< FVector3f > GetTriangleNormals() const
Definition StaticMeshAttributes.h:138
Definition MeshAttributeArray.h:836
STATICMESHDESCRIPTION_API const FName IsHard
STATICMESHDESCRIPTION_API const FName ImportedMaterialSlotName
STATICMESHDESCRIPTION_API const FName ObjectName
STATICMESHDESCRIPTION_API const FName Normal
STATICMESHDESCRIPTION_API const FName Binormal
STATICMESHDESCRIPTION_API const FName Tangent
STATICMESHDESCRIPTION_API const FName Tangent
STATICMESHDESCRIPTION_API const FName BinormalSign
STATICMESHDESCRIPTION_API const FName Normal
STATICMESHDESCRIPTION_API const FName TextureCoordinate
STATICMESHDESCRIPTION_API const FName Color
Definition MeshAttributes.cpp:6
Definition MeshDescription.h:94
TAttributesSet< FTriangleID > & TriangleAttributes()
Definition MeshDescription.h:162
TAttributesSet< FVertexInstanceID > & VertexInstanceAttributes()
Definition MeshDescription.h:153
TAttributesSet< FPolygonGroupID > & PolygonGroupAttributes()
Definition MeshDescription.h:168
TAttributesSet< FEdgeID > & EdgeAttributes()
Definition MeshDescription.h:156
TAttributesSet< FPolygonID > & PolygonAttributes()
Definition MeshDescription.h:165