Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Engine
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Engine/StaticMeshSourceData.h |
Include | #include "Engine/StaticMeshSourceData.h" |
Syntax
struct FStaticMeshSourceModel
Remarks
Source model from which a renderable static mesh is built.
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
bool | bImportWithBaseMesh | Whether this LOD was imported in the same file as the base mesh. |
![]() |
FMeshBuildSettings | BuildSettings | Settings applied when building the mesh. |
![]() |
uint32 | CacheMeshDescriptionTrianglesCount | |
![]() |
uint32 | CacheMeshDescriptionVerticesCount | |
![]() |
FRawMeshBulkData * | RawMeshBulkData | Imported raw mesh data. |
![]() |
FMeshReductionSettings | ReductionSettings | Reduction settings to apply when building render data. |
![]() |
FPerPlatformFloat | ScreenSize | ScreenSize to display this LOD. |
![]() |
FString | SourceImportFilename | The file path that was used to import this LOD. |
![]() |
TObjectPtr< UStaticMeshDescriptionBulkData > | StaticMeshDescriptionBulkData | Bulk data containing mesh description. |
![]() |
FCriticalSection | StaticMeshDescriptionBulkDataCS | Only allow safe read of the mesh description from the game thread while a build is running (not sure about the rest. the UStaticMeshDescription stuff look particularly dangerous) |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
Default constructor. | ||
![]() |
FStaticMeshSourceModel
(
const FStaticMeshSourceModel& |
Copying not allowed | |
![]() |
FStaticMeshSourceModel
(
FStaticMeshSourceModel&& Other |
Handle moving gracefully |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() |
Destructor. |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | Clears the cached mesh description | |
![]() ![]() |
bool | CloneMeshDescription
(
FMeshDescription& OutMeshDescription |
If there's a valid cached MeshDescription, return a copy of it. |
![]() |
void | CommitMeshDescription
(
bool bUseHashAsGuid |
Commits the cached mesh description to bulk data |
![]() |
void | ConvertRawMesh
(
int32 LodIndex |
|
![]() |
FMeshDescription * | Create a new MeshDescription object | |
![]() |
void | CreateSubObjects
(
UStaticMesh* Owner |
Initialize |
![]() ![]() |
void | FillMaterialName
(
TMap< int32, FName >& OutMaterialMap |
|
![]() ![]() |
FMeshDescription * | Gets the cached mesh description, or nullptr if there wasn't one | |
![]() ![]() |
UStaticMeshDescription * | Gets the cached StaticMeshDescription if there is one, or nullptr if not. | |
![]() ![]() |
FMeshDescriptionBulkData * | Gets the mesh description bulk data, or nullptr if not valid | |
![]() |
FMeshDescription * | Gets the cached mesh description if there was one, otherwise loads, caches and returns it. | |
![]() ![]() |
UStaticMesh * | Returns the static mesh which owns this source model. | |
![]() ![]() |
bool | Returns whether the cached mesh description is valid or not | |
![]() ![]() |
bool | Accessor to Load and save the raw mesh or the mesh description depending on the editor settings. | |
![]() ![]() |
bool | Verify that this SourceModel has been fully initialized. | |
![]() ![]() |
bool | LoadMeshDescription
(
FMeshDescription& OutMeshDescription |
Tries to initialize a MeshDescription into the given FMeshDescription object, returning whether it was successful. |
![]() ![]() |
void | LoadRawMesh
(
FRawMesh& OutRawMesh |
|
![]() |
void | ||
![]() |
void | SaveRawMesh
(
FRawMesh& InRawMesh, |
|
![]() |
void | SerializeBulkData
(
FArchive& Ar, |
Serializes bulk data. |
Operators
Type | Name | Description | |
---|---|---|---|
![]() |
FStaticMeshSourceModel & | operator=
(
const FStaticMeshSourceModel& |
|
![]() |
FStaticMeshSourceModel & | operator=
(
FStaticMeshSourceModel&& Other |
Deprecated Variables
Type | Name | Description | |
---|---|---|---|
![]() |
float | LODDistance_DEPRECATED | |
![]() |
UStaticMesh * | StaticMeshOwner | StaticMeshOwner is now deprecated. |