FMeshBuildSettings

Settings applied when building a mesh.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/EngineTypes.h

Include

#include "Engine/EngineTypes.h"

Syntax

struct FMeshBuildSettings

Remarks

Settings applied when building a mesh.

Variables

Name Description

Public variable

uint8: 1

 

bBuildAdjacencyBuffer

Required for PNT tessellation but can be slow. Recommend disabling for larger meshes.

Public variable

uint8: 1

 

bBuildReversedIndexBuffer

Required to optimize mesh in mirrored transform. Double index buffer size.

Public variable

uint8: 1

 

bComputeWeightedNormals

If true, we will use the surface area and the corner angle of the triangle as a ratio when computing the normals.

Public variable

uint8: 1

 

bGenerateDistanceFieldAsIfTwoSided

Whether to generate the distance field treating every triangle hit as a front face.

Public variable

uint8: 1

 

bGenerateLightmapUVs

Public variable

uint8: 1

 

bRecomputeNormals

If true, normals in the raw mesh are ignored and recomputed.

Public variable

uint8: 1

 

bRecomputeTangents

If true, tangents in the raw mesh are ignored and recomputed.

Public variable

uint8: 1

 

bRemoveDegenerates

If true, degenerate triangles will be removed.

Public variable

uint8: 1

 

bSupportFaceRemap

Public variable

FVector

 

BuildScale3D

The local scale applied when building the mesh

Public variable

uint8: 1

 

bUseFullPrecisionUVs

If true, UVs will be stored at full floating point precision.

Public variable

uint8: 1

 

bUseHighPrecisionTangentBasis

If true, Tangents will be stored at 16 bit vs 8 bit precision.

Public variable

uint8: 1

 

bUseMikkTSpace

If true, degenerate triangles will be removed.

Public variable

UStaticMesh ...

 

DistanceFieldReplacementMesh

Public variable

float

 

DistanceFieldResolutionScale

Scale to apply to the mesh when allocating the distance field volume texture.

Public variable

int32

 

DstLightmapIndex

Public variable

int32

 

MinLightmapResolution

Public variable

int32

 

SrcLightmapIndex

Constructors

Name Description

Public function

FMeshBuildSettings()

Default settings.

Operators

Name Description

Public function Const

bool

 

operator!=

(
    const FMeshBuildSettings& Other
)

Inequality.

Public function Const

bool

 

operator==

(
    const FMeshBuildSettings& Other
)

Equality operator.

Deprecated Variables

Name Description

Public variable

float

 

BuildScale_DEPRECATED

Public variable

float

 

DistanceFieldBias_DEPRECATED

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss