Navigation
API > API/Plugins > API/Plugins/MeshLODToolset > API/Plugins/MeshLODToolset/Graphs
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UGenerateStaticMeshLODProcess
References
| Module | MeshLODToolset |
| Header | /Engine/Plugins/Editor/MeshLODToolset/Source/MeshLODToolset/Public/Graphs/GenerateStaticMeshLODProcess.h |
| Include | #include "Graphs/GenerateStaticMeshLODProcess.h" |
Syntax
UCLASS (Transient)
class UGenerateStaticMeshLODProcess : public UObject
Variables
| Type | Name | Description | |
|---|---|---|---|
| TSet< TObjectPtr< UTexture2D > > | AllDerivedTextures | This list is for accumulating derived UTexture2D's created during WriteDerivedTextures(). | |
| bool | bUsingHiResSource | If true, we are building new LOD0 from the StaticMesh HiRes SourceModel, instead of from the mesh in LOD0 | |
| FGenerateStaticMeshLODProcessSettings | CurrentSettings | ||
| FGenerateStaticMeshLODProcess_CollisionSettings | CurrentSettings_Collision | ||
| FGenerateStaticMeshLODProcess_NormalsSettings | CurrentSettings_Normals | ||
| FGenerateStaticMeshLODProcess_PreprocessSettings | CurrentSettings_Preprocess | ||
| FGenerateStaticMeshLODProcess_SimplifySettings | CurrentSettings_Simplify | ||
| FGenerateStaticMeshLODProcess_TextureSettings | CurrentSettings_Texture | ||
| FGenerateStaticMeshLODProcess_UVSettings | CurrentSettings_UV | ||
| FString | DerivedAssetFolder | ||
| FString | DerivedAssetGUIDKey | This value will be stored in Asset Metadata for each generated Asset Texture, Material/MIC, and StaticMesh, under the key StaticMeshLOD.GenerationGUID. | |
| FString | DerivedAssetName | ||
| FString | DerivedAssetNameNoSuffix | ||
| FString | DerivedAssetPath | ||
| UE::Geometry::FSimpleShapeSet3d | DerivedCollision | ||
| FDynamicMesh3 | DerivedLODMesh | ||
| UE::Geometry::FMeshTangentsd | DerivedLODMeshTangents | ||
| TArray< FDerivedMaterialInfo > | DerivedMaterials | List of generated/Derived Materials. Length is the same as SourceMaterials and indices correspond, however some Derived Materials may not be initialized (if Source is reusable or generated) | |
| UE::GeometryFlow::FTextureImage | DerivedMultiTextureBakeImage | ||
| TObjectPtr< UTexture2D > | DerivedMultiTextureBakeResult | ||
| UE::GeometryFlow::FNormalMapImage | DerivedNormalMapImage | Texture set potentially required by output Material set. | |
| TObjectPtr< UTexture2D > | DerivedNormalMapTex | Derived Normal Map. | |
| FString | DerivedSuffix | ||
| TArray< TUniquePtr< UE::GeometryFlow::FTextureImage > > | DerivedTextureImages | ||
| TUniquePtr< FGenerateMeshLODGraph > | Generator | ||
| FCriticalSection | GraphEvalCriticalSection | This FCriticalSection is used to co-ordinate evaluation of the internal compute graph by external classes. | |
| TMap< int32, FName > | MultiTextureParameterName | For each material participating in multi-texture baking, the parameter name of the texture. | |
| FString | SourceAssetFolder | ||
| FString | SourceAssetName | ||
| FString | SourceAssetPath | ||
| TArray< FSourceMaterialInfo > | SourceMaterials | List of initial Source Materials, length equivalent to StaticMesh.StaticMaterials | |
| FDynamicMesh3 | SourceMesh | SourceMeshDescription converted to FDynamicMesh3. | |
| TSharedPtr< FMeshDescription > | SourceMeshDescription | Copy of input MeshDescription with autogenerated attributes computed | |
| TObjectPtr< UStaticMesh > | SourceStaticMesh | ||
| TMap< UTexture2D *, int32 > | SourceTextureToDerivedTexIndex |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | ComputeDerivedSourceData
(
FProgressCancel* Progress |
Given the above configuration, run the Generator to compute the derived Meshes and Textures | |
| const FGenerateStaticMeshLODProcess_CollisionSettings & | |||
| const FGenerateStaticMeshLODProcess_NormalsSettings & | |||
| const FGenerateStaticMeshLODProcess_PreprocessSettings & | Settings Objects for various stages of the Generator Process | ||
| const FGenerateStaticMeshLODProcessSettings & | |||
| const FGenerateStaticMeshLODProcess_SimplifySettings & | |||
| const FGenerateStaticMeshLODProcess_TextureSettings & | |||
| const FGenerateStaticMeshLODProcess_UVSettings & | |||
| FString | |||
| const FString & | |||
| const UE::Geometry::FSimpleShapeSet3d & | Collision geometry for the Generated Mesh | ||
| const FDynamicMesh3 & | The Generated Mesh | ||
| const UE::Geometry::FMeshTangentsd & | Tangents for the Generated Mesh | ||
| void | GetDerivedMaterialsPreview
(
FPreviewMaterials& MaterialSetOut |
Set of Materials and Textures to be applied to the Generated Mesh | |
| const FString & | |||
| const FString & | |||
| const FString & | |||
| TArray< UMaterialInterface * > | Material Queries and Constraints | ||
| TArray< UTexture2D * > | Texture Queries and Constraints | ||
| const FDynamicMesh3 & | |||
| UStaticMesh * | |||
| bool | Initialize
(
UStaticMesh* SourceMesh, |
Initialize the Process, this will: | |
| bool | |||
| bool | IsSourceAsset
(
const FString& AssetPath |
Return true if the given path corresponds to a material or texture in SourceMaterials. | |
| int | SelectTextureToBake
(
const TArray< FTextureInfo >& TextureInfos |
||
| void | UpdateCollisionSettings
(
const FGenerateStaticMeshLODProcess_CollisionSettings& NewSettings |
||
| void | UpdateDerivedPathName
(
const FString& NewAssetBaseName, |
Output Path / Naming / etc Configuration Configure the output Name and Suffix for the Mesh Asset. | |
| void | UpdateMaterialTextureParameters
(
UMaterialInstanceDynamic* Material, |
||
| void | UpdateMaterialTextureParameters
(
UMaterialInstanceConstant* Material, |
||
| void | UpdateNormalsSettings
(
const FGenerateStaticMeshLODProcess_NormalsSettings& NewSettings |
||
| void | UpdatePreprocessSettings
(
const FGenerateStaticMeshLODProcess_PreprocessSettings& NewSettings |
||
| void | UpdateSettings
(
const FGenerateStaticMeshLODProcessSettings& NewSettings |
||
| void | UpdateSimplifySettings
(
const FGenerateStaticMeshLODProcess_SimplifySettings& NewSettings |
||
| void | UpdateSourceAsset
(
bool bSetNewHDSourceAsset |
Update the input UStaticMesh Asset (ie the asset passed to Initialize) | |
| void | UpdateSourceBakeMaterialConstraint
(
UMaterialInterface* Material, |
Configure the constraint on the specified Source Material | |
| void | UpdateSourceBakeTextureConstraint
(
UTexture2D* Texture, |
Configure the constraint on the specified Source Texture | |
| void | UpdateSourceStaticMeshAsset
(
bool bSetNewHDSourceAsset |
||
| void | UpdateTextureSettings
(
const FGenerateStaticMeshLODProcess_TextureSettings& NewSettings |
||
| void | UpdateUVSettings
(
const FGenerateStaticMeshLODProcess_UVSettings& NewSettings |
||
| bool | Final Output Options Creates new UStaticMesh Asset, Material Instances, and Textures | ||
| void | WriteDerivedMaterials
(
bool bCreatingNewStaticMeshAsset |
||
| void | |||
| bool | WriteDerivedTexture
(
UTexture2D* SourceTexture, |
||
| bool | WriteDerivedTexture
(
UTexture2D* DerivedTexture, |
||
| void | WriteDerivedTextures
(
bool bCreatingNewStaticMeshAsset |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FDerivedMaterialInfo | Information about an output Material. | ||
| FPreviewMaterials | |||
| FSourceMaterialInfo | Information about one of the input StaticMesh Materials. Computed in Initialize() and not modified afterwards. | ||
| FTextureInfo |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EMaterialBakingConstraint | |||
| ETextureBakingConstraint |