Unity 框架

ObjectPoolInspector.cs 679B

123456789101112131415161718192021222324252627
  1. using TFramework;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. using UnityEditor;
  6. namespace TFramework
  7. {
  8. [CustomEditor(typeof(ObjectPoolMananger))]
  9. public class ObjectPoolInspector : TEditor
  10. {
  11. SerializedProperty m_poolTransform;
  12. private void OnEnable()
  13. {
  14. m_poolTransform = serializedObject.FindProperty("m_poolTransform");
  15. }
  16. public override void OnInspectorGUI()
  17. {
  18. serializedObject.Update();
  19. EditorGUILayout.PropertyField(m_poolTransform, new GUIContent("¶ÔÏ󳨏ù½Úµã"));
  20. serializedObject.ApplyModifiedProperties();
  21. }
  22. }
  23. }