Module |
|
Header |
/Engine/Plugins/Experimental/MeshModelingToolset/Source/ModelingComponents/Public/AssetGenerationUtil.h |
Include |
#include "AssetGenerationUtil.h" |
Source |
/Engine/Plugins/Experimental/MeshModelingToolset/Source/ModelingComponents/Private/AssetGenerationUtil.cpp |
namespace AssetGenerationUtil
{
AActor * AssetGenerationUtil::GenerateStaticMeshActor
(
IToolsContextAssetAPI * AssetAPI,
UWorld * TargetWorld,
const FDynamicMesh3 * Mesh,
const FTransform3d & Transform,
FString ObjectName,
const TArrayView< UMaterialInterface * > & Materials
)
}
Creates a new StaticMesh actor/component, with a new mesh asset stored at the given PackagePath created via the AssetAPI
new mesh actor
Parameter |
Description |
---|---|
AssetAPI |
pointer to context asset API that will be used to create new asset |
TargetWorld |
world that Actor will be created in |
Mesh |
geometry for the mesh |
Transform |
transformation for the new actor |
ObjectName |
name of the new asset |
PackagePath |
path of the new asset |
Materials |
materials to set on generated actor |