How can I convert a StaticMesh to a custom class?

Posted by Almo on Game Development See other posts from Game Development or by Almo
Published on 2012-10-23T20:31:45Z Indexed on 2012/10/23 23:20 UTC
Read the original article Hit count: 164

Filed under:

In the editor, we can place a StaticMesh, right-click it, select "Convert" and do "Convert to KActor".

I have a subclass of KActor:

class SubclassedKActor extends KActor
    placeable;

var(PowerEnablers) bool m_bEnableChaos;
var(PowerEnablers) bool m_bEnableCreate;
var(PowerEnablers) bool m_bEnableForcePush;
var(PowerEnablers) bool m_bEnableVortex;

DefaultProperties
{
    m_bEnableCreate=true;
    m_bEnableChaos=true;
    m_bEnableForcePush=true;
    m_bEnableVortex=true;
}

I want to be able to place a StaticMesh, right-click Convert and be able to select "Convert to SubclassedKActor". I have not been able to find out what populates the Convert menu.

© Game Development or respective owner

Related posts about udk