UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FStaticMeshAttributes Class Reference

#include <StaticMeshAttributes.h>

+ Inheritance diagram for FStaticMeshAttributes:

Public Member Functions

 FStaticMeshAttributes (FMeshDescription &InMeshDescription)
 
virtual STATICMESHDESCRIPTION_API void Register (bool bKeepExistingAttribute=false) override
 
STATICMESHDESCRIPTION_API void RegisterTriangleNormalAndTangentAttributes ()
 
STATICMESHDESCRIPTION_API void RegisterPolygonObjectNameAttribute ()
 
TVertexInstanceAttributesRef< FVector2fGetVertexInstanceUVs ()
 
TVertexInstanceAttributesConstRef< FVector2fGetVertexInstanceUVs () const
 
TVertexInstanceAttributesRef< FVector3fGetVertexInstanceNormals ()
 
TVertexInstanceAttributesConstRef< FVector3fGetVertexInstanceNormals () const
 
TVertexInstanceAttributesRef< FVector3fGetVertexInstanceTangents ()
 
TVertexInstanceAttributesConstRef< FVector3fGetVertexInstanceTangents () const
 
TVertexInstanceAttributesRef< floatGetVertexInstanceBinormalSigns ()
 
TVertexInstanceAttributesConstRef< floatGetVertexInstanceBinormalSigns () const
 
TVertexInstanceAttributesRef< FVector4fGetVertexInstanceColors ()
 
TVertexInstanceAttributesConstRef< FVector4fGetVertexInstanceColors () const
 
TEdgeAttributesRef< boolGetEdgeHardnesses ()
 
TEdgeAttributesConstRef< boolGetEdgeHardnesses () const
 
TTriangleAttributesRef< FVector3fGetTriangleNormals ()
 
TTriangleAttributesConstRef< FVector3fGetTriangleNormals () const
 
TTriangleAttributesRef< FVector3fGetTriangleTangents ()
 
TTriangleAttributesConstRef< FVector3fGetTriangleTangents () const
 
TTriangleAttributesRef< FVector3fGetTriangleBinormals ()
 
TTriangleAttributesConstRef< FVector3fGetTriangleBinormals () const
 
TPolygonAttributesRef< FNameGetPolygonObjectNames ()
 
TPolygonAttributesConstRef< FNameGetPolygonObjectNames () const
 
TPolygonGroupAttributesRef< FNameGetPolygonGroupMaterialSlotNames ()
 
TPolygonGroupAttributesConstRef< FNameGetPolygonGroupMaterialSlotNames () const
 
- Public Member Functions inherited from FMeshAttributes
 FMeshAttributes (FMeshDescription &InMeshDescription)
 
virtual ~FMeshAttributes ()=default
 
TVertexAttributesRef< FVector3fGetVertexPositions ()
 
TVertexAttributesConstRef< FVector3fGetVertexPositions () const
 
TVertexInstanceAttributesRef< FVertexIDGetVertexInstanceVertexIndices ()
 
TVertexInstanceAttributesConstRef< FVertexIDGetVertexInstanceVertexIndices () const
 
TEdgeAttributesRef< TArrayView< FVertexID > > GetEdgeVertexIndices ()
 
TEdgeAttributesConstRef< TArrayView< FVertexID > > GetEdgeVertexIndices () const
 
TTriangleAttributesRef< TArrayView< FVertexInstanceID > > GetTriangleVertexInstanceIndices ()
 
TTriangleAttributesConstRef< TArrayView< FVertexInstanceID > > GetTriangleVertexInstanceIndices () const
 
TTriangleAttributesRef< TArrayView< FEdgeID > > GetTriangleEdgeIndices ()
 
TTriangleAttributesConstRef< TArrayView< FEdgeID > > GetTriangleEdgeIndices () const
 
TTriangleAttributesRef< TArrayView< FVertexID > > GetTriangleVertexIndices ()
 
TTriangleAttributesConstRef< TArrayView< FVertexID > > GetTriangleVertexIndices () const
 
TTriangleAttributesRef< TArrayView< FUVID > > GetTriangleUVIndices ()
 
TTriangleAttributesConstRef< TArrayView< FUVID > > GetTriangleUVIndices () const
 
TUVAttributesRef< FVector2fGetUVCoordinates (int32 UVChannel)
 
TUVAttributesConstRef< FVector2fGetUVCoordinates (int32 UVChannel) const
 
TTriangleAttributesRef< FPolygonGroupIDGetTrianglePolygonGroupIndices ()
 
TTriangleAttributesConstRef< FPolygonGroupIDGetTrianglePolygonGroupIndices () const
 
TPolygonAttributesRef< FPolygonGroupIDGetPolygonPolygonGroupIndices ()
 
TPolygonAttributesConstRef< FPolygonGroupIDGetPolygonPolygonGroupIndices () const
 

Static Public Member Functions

static bool IsReservedAttributeName (const FName InAttributeName)
 
- Static Public Member Functions inherited from FMeshAttributes
static bool IsReservedAttributeName (const FName InAttributeName)
 

Additional Inherited Members

- Protected Attributes inherited from FMeshAttributes
FMeshDescriptionMeshDescription
 

Constructor & Destructor Documentation

◆ FStaticMeshAttributes()

FStaticMeshAttributes::FStaticMeshAttributes ( FMeshDescription InMeshDescription)
inlineexplicit

Member Function Documentation

◆ GetEdgeHardnesses() [1/2]

TEdgeAttributesRef< bool > FStaticMeshAttributes::GetEdgeHardnesses ( )
inline

◆ GetEdgeHardnesses() [2/2]

TEdgeAttributesConstRef< bool > FStaticMeshAttributes::GetEdgeHardnesses ( ) const
inline

◆ GetPolygonGroupMaterialSlotNames() [1/2]

TPolygonGroupAttributesRef< FName > FStaticMeshAttributes::GetPolygonGroupMaterialSlotNames ( )
inline

◆ GetPolygonGroupMaterialSlotNames() [2/2]

TPolygonGroupAttributesConstRef< FName > FStaticMeshAttributes::GetPolygonGroupMaterialSlotNames ( ) const
inline

◆ GetPolygonObjectNames() [1/2]

TPolygonAttributesRef< FName > FStaticMeshAttributes::GetPolygonObjectNames ( )
inline

This attribute stores the name of the object that this part of the mesh was generated from, e.g. from a sub-object during import or during mesh merging.

◆ GetPolygonObjectNames() [2/2]

TPolygonAttributesConstRef< FName > FStaticMeshAttributes::GetPolygonObjectNames ( ) const
inline

◆ GetTriangleBinormals() [1/2]

TTriangleAttributesRef< FVector3f > FStaticMeshAttributes::GetTriangleBinormals ( )
inline

◆ GetTriangleBinormals() [2/2]

TTriangleAttributesConstRef< FVector3f > FStaticMeshAttributes::GetTriangleBinormals ( ) const
inline

◆ GetTriangleNormals() [1/2]

TTriangleAttributesRef< FVector3f > FStaticMeshAttributes::GetTriangleNormals ( )
inline

◆ GetTriangleNormals() [2/2]

TTriangleAttributesConstRef< FVector3f > FStaticMeshAttributes::GetTriangleNormals ( ) const
inline

◆ GetTriangleTangents() [1/2]

TTriangleAttributesRef< FVector3f > FStaticMeshAttributes::GetTriangleTangents ( )
inline

◆ GetTriangleTangents() [2/2]

TTriangleAttributesConstRef< FVector3f > FStaticMeshAttributes::GetTriangleTangents ( ) const
inline

◆ GetVertexInstanceBinormalSigns() [1/2]

TVertexInstanceAttributesRef< float > FStaticMeshAttributes::GetVertexInstanceBinormalSigns ( )
inline

◆ GetVertexInstanceBinormalSigns() [2/2]

TVertexInstanceAttributesConstRef< float > FStaticMeshAttributes::GetVertexInstanceBinormalSigns ( ) const
inline

◆ GetVertexInstanceColors() [1/2]

TVertexInstanceAttributesRef< FVector4f > FStaticMeshAttributes::GetVertexInstanceColors ( )
inline

◆ GetVertexInstanceColors() [2/2]

TVertexInstanceAttributesConstRef< FVector4f > FStaticMeshAttributes::GetVertexInstanceColors ( ) const
inline

◆ GetVertexInstanceNormals() [1/2]

TVertexInstanceAttributesRef< FVector3f > FStaticMeshAttributes::GetVertexInstanceNormals ( )
inline

◆ GetVertexInstanceNormals() [2/2]

TVertexInstanceAttributesConstRef< FVector3f > FStaticMeshAttributes::GetVertexInstanceNormals ( ) const
inline

◆ GetVertexInstanceTangents() [1/2]

TVertexInstanceAttributesRef< FVector3f > FStaticMeshAttributes::GetVertexInstanceTangents ( )
inline

◆ GetVertexInstanceTangents() [2/2]

TVertexInstanceAttributesConstRef< FVector3f > FStaticMeshAttributes::GetVertexInstanceTangents ( ) const
inline

◆ GetVertexInstanceUVs() [1/2]

TVertexInstanceAttributesRef< FVector2f > FStaticMeshAttributes::GetVertexInstanceUVs ( )
inline

◆ GetVertexInstanceUVs() [2/2]

TVertexInstanceAttributesConstRef< FVector2f > FStaticMeshAttributes::GetVertexInstanceUVs ( ) const
inline

◆ IsReservedAttributeName()

static bool FStaticMeshAttributes::IsReservedAttributeName ( const FName  InAttributeName)
inlinestatic

◆ Register()

void FStaticMeshAttributes::Register ( bool  bKeepExistingAttribute = false)
overridevirtual

Reimplemented from FMeshAttributes.

Reimplemented in FSkeletalMeshAttributes.

◆ RegisterPolygonObjectNameAttribute()

void FStaticMeshAttributes::RegisterPolygonObjectNameAttribute ( )

Registers a mesh attribute that is used to store the name of the object that contributed to each polygon. Used to partition the mesh into sub-objects, if needed. See GetPolygonObjectNames.

◆ RegisterTriangleNormalAndTangentAttributes()

void FStaticMeshAttributes::RegisterTriangleNormalAndTangentAttributes ( )

The documentation for this class was generated from the following files: