UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FMeshSectionInfoMap Struct Reference

#include <StaticMesh.h>

Public Member Functions

void Serialize (FArchive &Ar)
 
ENGINE_API void Clear ()
 
ENGINE_API int32 GetSectionNumber (int32 LODIndex) const
 
ENGINE_API bool IsValidSection (int32 LODIndex, int32 SectionIndex) const
 
ENGINE_API FMeshSectionInfo Get (int32 LODIndex, int32 SectionIndex) const
 
ENGINE_API void Set (int32 LODIndex, int32 SectionIndex, FMeshSectionInfo Info)
 
ENGINE_API void Remove (int32 LODIndex, int32 SectionIndex)
 
ENGINE_API void CopyFrom (const FMeshSectionInfoMap &Other)
 
bool AnySectionHasCollision (int32 LodIndex) const
 

Public Attributes

TMap< uint32, FMeshSectionInfoMap
 

Detailed Description

Map containing per-section settings for each section of each LOD.

Member Function Documentation

◆ AnySectionHasCollision()

bool FMeshSectionInfoMap::AnySectionHasCollision ( int32  LodIndex) const

Returns true if any section of the specified LOD has collision enabled.

◆ Clear()

ENGINE_API void FMeshSectionInfoMap::Clear ( )

Clears all entries in the map resetting everything to default.

◆ CopyFrom()

ENGINE_API void FMeshSectionInfoMap::CopyFrom ( const FMeshSectionInfoMap Other)

Copies per-section settings from the specified section info map.

◆ Get()

ENGINE_API FMeshSectionInfo FMeshSectionInfoMap::Get ( int32  LODIndex,
int32  SectionIndex 
) const

Gets per-section settings for the specified LOD + section.

◆ GetSectionNumber()

ENGINE_API int32 FMeshSectionInfoMap::GetSectionNumber ( int32  LODIndex) const

Get the number of section for a LOD.

◆ IsValidSection()

ENGINE_API bool FMeshSectionInfoMap::IsValidSection ( int32  LODIndex,
int32  SectionIndex 
) const

Return true if the section exist, false otherwise.

◆ Remove()

ENGINE_API void FMeshSectionInfoMap::Remove ( int32  LODIndex,
int32  SectionIndex 
)

Resets per-section settings for the specified LOD + section to defaults.

◆ Serialize()

void FMeshSectionInfoMap::Serialize ( FArchive Ar)

Serialize.

◆ Set()

ENGINE_API void FMeshSectionInfoMap::Set ( int32  LODIndex,
int32  SectionIndex,
FMeshSectionInfo  Info 
)

Sets per-section settings for the specified LOD + section.

Member Data Documentation

◆ Map

TMap<uint32,FMeshSectionInfo> FMeshSectionInfoMap::Map

Maps an LOD+Section to the material it should render with.


The documentation for this struct was generated from the following file: