Navigation
API > API/Plugins > API/Plugins/GeometryScriptingCore > API/Plugins/GeometryScriptingCore/GeometryScript
Inheritance Hierarchy
- UBlueprintFunctionLibrary
- UGeometryScriptLibrary_StaticMeshFunctions
References
| Module | GeometryScriptingCore |
| Header | /Engine/Plugins/Runtime/GeometryScripting/Source/GeometryScriptingCore/Public/GeometryScript/MeshAssetFunctions.h |
| Include | #include "GeometryScript/MeshAssetFunctions.h" |
Syntax
UCLASS (Meta=(ScriptName="GeometryScript_AssetUtils"))
class UGeometryScriptLibrary_StaticMeshFunctions : public UBlueprintFunctionLibrary
Remarks
Although the class name indicates StaticMeshFunctions, that was a naming mistake that is difficult to correct. This class is intended to serve as a generic asset utils function library. The naming issue is only visible at the C++ level. It is not visible in Python or BP.
Variables
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | CheckStaticMeshHasAvailableLOD
(
UStaticMesh* StaticMeshAsset, |
Check if a Static Mesh Asset has the RequestedLOD available, ie if CopyMeshFromStaticMesh will be able to succeed for the given LODType and LODIndex. | |
| UMaterialInterface * | ConvertMaterialListToMaterialMap
(
const TArray< UMaterialInterface* >& MaterialList, |
||
| void | Converts material map to a material list and a slot names list. | ||
| UDynamicMesh * | CopyMeshToStaticMesh
(
UDynamicMesh* FromDynamicMesh, |
||
| void | GetLODMaterialListFromSkeletalMesh
(
USkeletalMesh* FromSkeletalMeshAsset, |
Extracts the Material List and corresponding Material Indices from the specified LOD of the Skeletal Mesh Asset. | |
| void | GetMaterialListFromSkeletalMesh
(
const USkeletalMesh* FromSkeletalMeshAsset, |
Get the asset materials from the skeletal mesh asset. | |
| void | GetMaterialListFromStaticMesh
(
const UStaticMesh* FromStaticMeshAsset, |
Get the asset materials from the static mesh asset. | |
| int | GetNumStaticMeshLODsOfType
(
UStaticMesh* StaticMeshAsset, |
Determine the number of available LODs of the requested LODType in a Static Mesh Asset | |
| void | GetSectionMaterialListFromStaticMesh
(
UStaticMesh* FromStaticMeshAsset, |
Extracts the Material List and corresponding Material Indices from the specified LOD of the Static Mesh Asset. | |
| static | UPARAM
(
DisplayName |
Extracts a Dynamic Mesh from a Static Mesh Asset. | |
| static | UPARAM
(
DisplayName |
Extracts a Dynamic Mesh from a Static Mesh Asset, using section indices for the material IDs use GetSectionMaterialListFromStaticMesh to get the corresponding materials. | |
| static | UPARAM
(
DisplayName |
Converts material list and slot names list to material map, which is the format expected by CreateNewSkeletalMeshAssetFromMesh. | |
| static | UPARAM
(
DisplayName |
Extracts a Dynamic Mesh from a Skeletal Mesh Asset. | |
| static | UPARAM
(
DisplayName |
Updates a Skeletal Mesh Asset with new geometry and bone weights data from a Dynamic Mesh. | |
| static | UPARAM
(
DisplayName |
Add a Dynamic Mesh morph target to a Skeletal Mesh Asset. | |
| static | UPARAM
(
DisplayName |
Add a Dynamic Mesh skin weight profile to a Skeletal Mesh Asset. |