コード例 #1
0
    public override void OnInspectorGUI()
    {
        EditorGUI.BeginChangeCheck();

        CustomEditorUtility.DrawTitle("Instantiate " + EntityNames[t.indexInPool]);


        t.indexInPool = EditorGUILayout.Popup(t.indexInPool, EntityNames.ToArray());

        CustomEditorUtility.QuickSerializeObject(EntityNames[t.indexInPool], serializedObject);

        serializedObject.ApplyModifiedProperties();
        if (EditorGUI.EndChangeCheck())
        {
            EditorUtility.SetDirty(t);
        }
    }