-
Notifications
You must be signed in to change notification settings - Fork 351
StaticMeshEdit
Nako Sung edited this page May 17, 2016
·
4 revisions
- Requires
WITH_EDITOR=1
let mesh = StaticMesh.Load('/Game/Assets/Meshes/SM_Arch.SM_Arch')
let raw = mesh.LoadRawMesh(0).OutMesh
let package = mesh.GetOuter()
let newMesh = new StaticMesh(package, 'TestMesh', 0x3) // RF_Public | RF_Standalone
newMesh.SourceModels = [{}] // add a model
newMesh.SaveRawMesh(0,raw)
newMesh.Materials = mesh.Materials
newMesh.Build()
newMesh.MarkPackageDirty()
newMesh.BroadcastAssetCreated()