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

#include <Model.h>

Public Member Functions

ENGINE_API FModelElement (UModelComponent *InComponent, UMaterialInterface *InMaterial)
 
ENGINE_API FModelElement ()
 
virtual ENGINE_API ~FModelElement ()
 
ENGINE_API const FMeshMapBuildDataGetMeshMapBuildData () const
 

Public Attributes

TObjectPtr< class UModelComponentComponent
 
TObjectPtr< class UMaterialInterfaceMaterial
 
TArray< uint16Nodes
 
FMeshMapBuildDataLegacyMapBuildData
 
FGuid MapBuildDataId
 
FRawIndexBuffer16or32IndexBuffer
 
uint32 FirstIndex
 
uint32 NumTriangles
 
uint32 MinVertexIndex
 
uint32 MaxVertexIndex
 
FBox BoundingBox
 

Friends

FArchiveoperator<< (FArchive &Ar, FModelElement &Element)
 

Detailed Description

A set of BSP nodes which have the same material and relevant lights.

Constructor & Destructor Documentation

◆ FModelElement() [1/2]

FModelElement::FModelElement ( UModelComponent InComponent,
UMaterialInterface InMaterial 
)

Minimal initialization constructor.

◆ FModelElement() [2/2]

FModelElement::FModelElement ( )

◆ ~FModelElement()

FModelElement::~FModelElement ( )
virtual

Member Function Documentation

◆ GetMeshMapBuildData()

const FMeshMapBuildData * FModelElement::GetMeshMapBuildData ( ) const

Friends And Related Symbol Documentation

◆ operator<<

FArchive & operator<< ( FArchive Ar,
FModelElement Element 
)
friend

Serializer.

Member Data Documentation

◆ BoundingBox

FBox FModelElement::BoundingBox

The bounding box of the vertices in the element.

◆ Component

TObjectPtr<class UModelComponent> FModelElement::Component

The model component containing this element.

◆ FirstIndex

uint32 FModelElement::FirstIndex

The first index in the component index buffer used by this element.

◆ IndexBuffer

FRawIndexBuffer16or32* FModelElement::IndexBuffer

A pointer to the index buffer holding this element's indices.

◆ LegacyMapBuildData

FMeshMapBuildData* FModelElement::LegacyMapBuildData

◆ MapBuildDataId

FGuid FModelElement::MapBuildDataId

Uniquely identifies this component's built map data.

◆ Material

TObjectPtr<class UMaterialInterface> FModelElement::Material

The material used by the nodes in this element.

◆ MaxVertexIndex

uint32 FModelElement::MaxVertexIndex

The highest vertex index used by this element.

◆ MinVertexIndex

uint32 FModelElement::MinVertexIndex

The lowest vertex index used by this element.

◆ Nodes

TArray<uint16> FModelElement::Nodes

The nodes in the element.

◆ NumTriangles

uint32 FModelElement::NumTriangles

The number of triangles contained by the component index buffer for this element.


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