コード例 #1
0
    public override void OnInspectorGUI()
    {
        RealObject obj = target as RealObject;

        base.OnInspectorGUI();
        if (GUILayout.Button("Create Ghost Object"))
        {
            obj.CreateGhost();
        }
    }