Language:
Discover
By Skill Level
By Category

CreateModelFromStaticMesh

Choose your OS:

Syntax

[UNREALED_API](API\Editor\UnrealEd\Commandlets\UNREALED_API_2)void CreateModelFromStaticMesh
(
    UModel * Model,
    AStaticMeshActor * StaticMeshActor
)

Remarks

Converts a static mesh to a brush.

Creates a model from the triangles in a static mesh.

Parameters

Parameter

Description

Model

[out] The target brush. Must be non-NULL.

StaticMeshActor

The source static mesh. Must be non-NULL.

References

Module

UnrealEd

Header

Editor/UnrealEd/Public/Editor.h

Source

Editor/UnrealEd/Private/StaticMeshEdit.cpp