FMeshDescrip... |
AddAndRetrieveRawMesh ( int32 MeshIndex, int32 LODIndex, UStaticMesh* InMesh ) |
Adds or retrieves raw mesh data for the mesh and LOD index |
void |
AddBakedMaterialSection ( const FSectionInfo& SectionInfo ) |
Clears out unique section to be replaced with the baked material one |
void |
AddComponentToWedgeMapping ( int32 MeshIndex, int32 LODIndex, uint32 WedgeIndex ) |
|
void |
AddLightmapChannelRecord ( int32 MeshIndex, int32 LODIndex, int32 LightmapChannelIndex ) |
Adds a record of what channel lightmap data is stored at |
void |
AddLightMapPixels ( int32 Pixels ) |
Add number of lightmap pixels used for one of the Meshes |
void |
AddLODIndex ( int32 LODIndex ) |
Adds a LOD index which will be part of the final merged mesh |
void |
AddMaterialSlotName ( UMaterialInterface* MaterialIn..., FName MaterialSlotName ) |
Add a material slot name for a unique material instance. |
int32 |
AddSection ( const FSectionInfo& SectionInfo ) |
Adds (unique) section to stored data |
void |
AddSectionRemapping ( int32 MeshIndex, int32 LODIndex, int32 OriginalIndex, int32 UniqueIndex ) |
Adding a mapping between the index for an original mesh section index and the mesh section it will be indexed to in the final mesh |
bool |
DoesAnyLODContainVertexColors () |
Returns whether or not any raw mesh entry contains vertex colors for any LOD index |
bool |
DoesLODContainVertexColors ( int32 LODIndex ) |
Returns whether or not any raw mesh entry contains vertex colors for the specified LOD index |
bool |
DoesMeshLODRequireUniqueUVs ( FMeshLODKey Key ) |
Returns whether or not the raw mesh entry for the given MeshLOD key requires unique UVs for baking out its material(s) |
bool |
DoesUVChannelContainData ( int32 UVChannel, int32 LODIndex ) |
Returns whether or not any raw mesh entry contains texture coordinates for the specified UV channel and LOD index |
bool |
DoesUVChannelContainData ( int32 UVChannel ) |
Returns whether or not any raw mesh entry contains texture coordinates for the specified UV channel and any LOD index |
FMeshDescrip... |
FindRawMeshAndLODIndex ( int32 MeshIndex, int32& OutLODIndex ) |
Tries to retrieve a FMeshDescription and returns the LOD index it found an entry for |
int32 |
GetAvailableLightMapUVChannel () |
Returns the first available UV channel across all raw mesh entries, which will be a good fit for the lightmap UV index in the final mesh |
uint32 |
GetComponentToWedgeMappng ( int32 MeshIndex, int32 LODIndex ) |
|
TConstRawMes... |
GetConstRawMeshIterator () |
Returns a const key/value iterator for the FMeshDescription entries |
int32 |
GetLightMapDimension () |
Returns the texture dimension required to distribute all of the lightmap pixels |
TConstLODInd... |
GetLODIndexIterator () |
Iterates over LOD indices for mesh |
void |
GetMappingsForMeshLOD ( FMeshLODKey Key, TArray< SectionRemapPair >& InOutM... ) |
Retrieves all section mappings for the MeshLOD key |
UMaterialInt... |
GetMaterialForSectionIndex ( int32 SectionIndex ) |
Returns the material used by the unique section |
FName |
GetMaterialSlotName ( UMaterialInterface* MaterialIn... ) |
Get the material slot name from a unique material instance. |
void |
GetMeshLODsMappedToUniqueSection ( int32 UniqueIndex, TArray< FMeshLODKey >& InOutMeshLO... ) |
Retrieves the MeshLOD keys from which the original sections are mapped to the unique section index |
int32 |
GetNumLODsForMergedMesh () |
Retrieves number of LODs part of the final merged mesh |
TRawMeshIter... |
GetRawMeshIterator () |
Returns a non-const key/value iterator for the FMeshDescription entries |
FMeshDescrip... |
GetRawMeshPtr ( FMeshLODKey Key ) |
Retrieves Raw Mesh ptr for the given MeshLOD key |
FMeshDescrip... |
GetRawMeshPtr ( int32 MeshIndex, int32 LODIndex ) |
Retrieves Raw Mesh ptr for the given mesh and LOD index |
const FSecti... |
GetSection ( int32 SectionIndex ) |
Returns the unique section instance |
double |
GetTextureSizeFromTargetTexelDensity ( float InTargetTexelDensity ) |
|
int32 |
NumberOfUniqueSections () |
Returns the number of unique sections |
void |
ProcessRawMeshes () |
Looks at all available raw mesh data and processes it to populate some flags |
void |
RemoveRawMesh ( int32 MeshIndex, int32 LODIndex ) |
Removes raw mesh entry for the given mesh and LOD index |
FMeshDescrip... |
TryFindRawMeshForLOD ( int32 MeshIndex, int32& InOutDesiredLODIndex ) |
Tries to retrieve a FMeshDescription for the given mesh and LOD index, if it can't it will try to find an entry for each LOD levle below InOutDesiredLODIndex |