AssetGenerationUtil::GenerateStaticMeshActor

Creates a new StaticMesh actor/component, with a new mesh asset stored at the given PackagePath created via the AssetAPI

Windows
MacOS
Linux

References

Module

ModelingComponents

Header

/Engine/Plugins/Experimental/MeshModelingToolset/Source/ModelingComponents/Public/AssetGenerationUtil.h

Include

#include "AssetGenerationUtil.h"

Source

/Engine/Plugins/Experimental/MeshModelingToolset/Source/ModelingComponents/Private/AssetGenerationUtil.cpp

Syntax

namespace AssetGenerationUtil
{
    AActor * AssetGenerationUtil::GenerateStaticMeshActor
    (
        IToolsContextAssetAPI * AssetAPI,
        UWorld * TargetWorld,
        const FDynamicMesh3 * Mesh,
        const FTransform3d & Transform,
        FString ObjectName,
        const TArrayView< UMaterialInterface * > & Materials
    )
}

Remarks

Creates a new StaticMesh actor/component, with a new mesh asset stored at the given PackagePath created via the AssetAPI

Returns

new mesh actor

Parameters

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss