Navigation
API > API/Plugins > API/Plugins/MeshLODToolset
| Name | UGenerateStaticMeshLODProcess |
| Type | class |
| Header File | /Engine/Plugins/Editor/MeshLODToolset/Source/MeshLODToolset/Public/Graphs/GenerateStaticMeshLODProcess.h |
| Include Path | #include "Graphs/GenerateStaticMeshLODProcess.h" |
Syntax
UCLASS (Transient)
class UGenerateStaticMeshLODProcess : public UObject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UGenerateStaticMeshLODProcess
Structs
| Name | Remarks |
|---|---|
| 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
Public
| Name | Remarks |
|---|---|
| EMaterialBakingConstraint | |
| ETextureBakingConstraint |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| GraphEvalCriticalSection | FCriticalSection | This FCriticalSection is used to co-ordinate evaluation of the internal compute graph by external classes. | Graphs/GenerateStaticMeshLODProcess.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool ComputeDerivedSourceData
(
FProgressCancel* Progress |
Given the above configuration, run the Generator to compute the derived Meshes and Textures | Graphs/GenerateStaticMeshLODProcess.h | |
const FGenerateStaticMeshLODProcess_CollisionSettings & GetCurrentCollisionSettings() |
Graphs/GenerateStaticMeshLODProcess.h | ||
const FGenerateStaticMeshLODProcess_NormalsSettings & GetCurrentNormalsSettings() |
Graphs/GenerateStaticMeshLODProcess.h | ||
const FGenerateStaticMeshLODProcess_PreprocessSettings & GetCurrentPreprocessSettings() |
Settings Objects for various stages of the Generator Process | Graphs/GenerateStaticMeshLODProcess.h | |
const FGenerateStaticMeshLODProcessSettings & GetCurrentSettings() |
Graphs/GenerateStaticMeshLODProcess.h | ||
const FGenerateStaticMeshLODProcess_SimplifySettings & GetCurrentSimplifySettings() |
Graphs/GenerateStaticMeshLODProcess.h | ||
const FGenerateStaticMeshLODProcess_TextureSettings & GetCurrentTextureSettings() |
Graphs/GenerateStaticMeshLODProcess.h | ||
const FGenerateStaticMeshLODProcess_UVSettings & GetCurrentUVSettings() |
Graphs/GenerateStaticMeshLODProcess.h | ||
const FString & GetDerivedAssetName() |
Graphs/GenerateStaticMeshLODProcess.h | ||
const UE::Geometry::FSimpleShapeSet3d & GetDerivedCollision() |
Collision geometry for the Generated Mesh | Graphs/GenerateStaticMeshLODProcess.h | |
const FDynamicMesh3 & GetDerivedLOD0Mesh() |
The Generated Mesh | Graphs/GenerateStaticMeshLODProcess.h | |
const UE::Geometry::FMeshTangentsd & GetDerivedLOD0MeshTangents() |
Tangents for the Generated Mesh | Graphs/GenerateStaticMeshLODProcess.h | |
void GetDerivedMaterialsPreview
(
FPreviewMaterials& MaterialSetOut |
Set of Materials and Textures to be applied to the Generated Mesh | Graphs/GenerateStaticMeshLODProcess.h | |
const FString & GetSourceAssetFolder() |
Graphs/GenerateStaticMeshLODProcess.h | ||
const FString & GetSourceAssetName() |
Graphs/GenerateStaticMeshLODProcess.h | ||
const FString & GetSourceAssetPath() |
Graphs/GenerateStaticMeshLODProcess.h | ||
TArray< UMaterialInterface * > GetSourceBakeMaterials() |
Material Queries and Constraints | Graphs/GenerateStaticMeshLODProcess.h | |
TArray< UTexture2D * > GetSourceBakeTextures() |
Texture Queries and Constraints | Graphs/GenerateStaticMeshLODProcess.h | |
const FDynamicMesh3 & GetSourceMesh() |
Graphs/GenerateStaticMeshLODProcess.h | ||
UStaticMesh * GetSourceStaticMesh() |
Graphs/GenerateStaticMeshLODProcess.h | ||
bool Initialize
(
UStaticMesh* SourceMesh, |
Initialize the Process, this will: | Graphs/GenerateStaticMeshLODProcess.h | |
void UpdateCollisionSettings
(
const FGenerateStaticMeshLODProcess_CollisionSettings& NewSettings |
Graphs/GenerateStaticMeshLODProcess.h | ||
void UpdateDerivedPathName
(
const FString& NewAssetBaseName, |
Output Path / Naming / etc Configuration Configure the output Name and Suffix for the Mesh Asset. | Graphs/GenerateStaticMeshLODProcess.h | |
void UpdateNormalsSettings
(
const FGenerateStaticMeshLODProcess_NormalsSettings& NewSettings |
Graphs/GenerateStaticMeshLODProcess.h | ||
void UpdatePreprocessSettings
(
const FGenerateStaticMeshLODProcess_PreprocessSettings& NewSettings |
Graphs/GenerateStaticMeshLODProcess.h | ||
void UpdateSettings
(
const FGenerateStaticMeshLODProcessSettings& NewSettings |
Graphs/GenerateStaticMeshLODProcess.h | ||
void UpdateSimplifySettings
(
const FGenerateStaticMeshLODProcess_SimplifySettings& NewSettings |
Graphs/GenerateStaticMeshLODProcess.h | ||
virtual void UpdateSourceAsset
(
bool bSetNewHDSourceAsset |
Update the input UStaticMesh Asset (ie the asset passed to Initialize) | Graphs/GenerateStaticMeshLODProcess.h | |
void UpdateSourceBakeMaterialConstraint
(
UMaterialInterface* Material, |
Configure the constraint on the specified Source Material | Graphs/GenerateStaticMeshLODProcess.h | |
void UpdateSourceBakeTextureConstraint
(
UTexture2D* Texture, |
Configure the constraint on the specified Source Texture | Graphs/GenerateStaticMeshLODProcess.h | |
void UpdateTextureSettings
(
const FGenerateStaticMeshLODProcess_TextureSettings& NewSettings |
Graphs/GenerateStaticMeshLODProcess.h | ||
void UpdateUVSettings
(
const FGenerateStaticMeshLODProcess_UVSettings& NewSettings |
Graphs/GenerateStaticMeshLODProcess.h | ||
virtual bool WriteDerivedAssetData() |
Final Output Options Creates new UStaticMesh Asset, Material Instances, and Textures | Graphs/GenerateStaticMeshLODProcess.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool InitializeGenerator() |
Graphs/GenerateStaticMeshLODProcess.h | ||
bool IsSourceAsset
(
const FString& AssetPath |
Return true if the given path corresponds to a material or texture in SourceMaterials. | Graphs/GenerateStaticMeshLODProcess.h | |
int SelectTextureToBake
(
const TArray< FTextureInfo >& TextureInfos |
Graphs/GenerateStaticMeshLODProcess.h | ||
void UpdateMaterialTextureParameters
(
UMaterialInstanceDynamic* Material, |
Graphs/GenerateStaticMeshLODProcess.h | ||
void UpdateMaterialTextureParameters
(
UMaterialInstanceConstant* Material, |
Graphs/GenerateStaticMeshLODProcess.h | ||
void UpdateSourceStaticMeshAsset
(
bool bSetNewHDSourceAsset |
Graphs/GenerateStaticMeshLODProcess.h | ||
void WriteDerivedMaterials
(
bool bCreatingNewStaticMeshAsset |
Graphs/GenerateStaticMeshLODProcess.h | ||
void WriteDerivedStaticMeshAsset() |
Graphs/GenerateStaticMeshLODProcess.h | ||
bool WriteDerivedTexture
(
UTexture2D* SourceTexture, |
Graphs/GenerateStaticMeshLODProcess.h | ||
bool WriteDerivedTexture
(
UTexture2D* DerivedTexture, |
Graphs/GenerateStaticMeshLODProcess.h | ||
void WriteDerivedTextures
(
bool bCreatingNewStaticMeshAsset |
Graphs/GenerateStaticMeshLODProcess.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FString GetDefaultDerivedAssetSuffix() |
Graphs/GenerateStaticMeshLODProcess.h |