FMeshData

Struct that defines a mesh (Mesh + LOD + MaterialIndex)

References

Module

MaterialBaking

Header

/Engine/Source/Developer/MaterialBaking/Public/MaterialBakingStructures.h

Include

#include "MaterialBakingStructures.h"

Syntax

struct FMeshData

Remarks

Struct that defines a mesh (Mesh + LOD + MaterialIndex)

Variables

Name Description

Public variable

bool

 

bMirrored

Transform determinant used to detect mirroring

Public variable

TArray< FVector...

 

CustomTextureCoordinates

Set of custom texture coordinates which ensure that the material is baked out with unique/non-overlapping positions

Public variable

FLightMapRef

 

LightMap

Reference to the lightmap texture part of the level in the currently being baked out mesh instance data is resident

Public variable

int32

 

LightMapIndex

Light map index used to retrieve the light-map UVs from RawMesh

Public variable

const FLightmap...

 

LightmapResourceCluster

Pointer to the LightmapResourceCluster to be passed on the the LightCacheInterface when baking

Public variable

int

 

LOD

Specific LOD of the mesh.

Public variable

int

 

MaterialIndex

Specific index of the mesh material (MaterialIndex is an alias of Section).

Public variable

TArray< int32 >

 

MaterialIndices

Material indices to test the Raw Mesh data against, ensuring we only bake out triangles which use the currently baked out material

Public variable

const UStaticMe...

 

Mesh

Ptr to original static mesh this mesh data came from

Public variable

const UObject &...

 

Mesh

Mesh which it may contain multiple LODs and Materials.

Public variable

const FMeshDesc...

 

MeshDescription

Ptr to raw mesh data to use for baking out the material data, if nullptr a standard quad is used

Public variable

const UCustomiz...

 

Node

Node where the mesh is defined.

Public variable

const FPrimitiv...

 

PrimitiveData

Pointer to primitive data that is accessible through material expressions, if nullptr default values are used

Public variable

FBox2D

 

TextureCoordinateBox

Box which's space contains the UV coordinates used to bake out the material

Public variable

int32

 

TextureCoordinateIndex

Specific texture coordinate index to use as texture coordinates to bake out the material (is overruled if CustomTextureCoordinates contains any data)

Public variable

uint32

 

VertexColorHash

A hash of the vertex color buffer for the rawmesh

Operators

Name Description

Public function Const

bool

 

operator==

(
    const FMeshData& Other
)

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