#does anyone have any ideas on how to

1 messages · Page 1 of 1 (latest)

celest trail
#

Do you still want it as a component? Would making the CutsceneStep a normal C# class that lives in the list work?

ocean sierra
#

rn i have a line that gets the CutsceneStep in the Editor that needs it to be a GameObject or the type cast fails

    CutsceneStep m_CutsceneStep;
    SerializedProperty position;
    void OnEnable()
    {
        m_CutsceneStep = (CutsceneStep) target;
        position = serializedObject.FindProperty("m_Position");
    }
#

is there a way ard this?

celest trail
#

If you made it a normal C# class, you would make a custom PropertyDrawer instead of an Editor