コード例 #1
0
 void OnEnable()
 {
     _Properties   = target as InspectorProperties;
     _Frame        = new Framework.UI.Frame("Frame");
     _PropertyGrid = new PropertyGrid(false);
     _Frame.Controls.Add(_PropertyGrid);
 }
コード例 #2
0
        public static void Select(IProperties p)
        {
            if (_Instance == null)
            {
                _Instance = UnityEngine.ScriptableObject.CreateInstance <InspectorProperties>();
            }

            if (_Instance._SelectedObject != p)
            {
                if (_Instance._SelectedObject != null)
                {
                    _Instance._SelectedObject.IsSelectedProperties = false;
                }
            }

            _Instance._SelectedObject = p;

            if (p != null)
            {
                UnityEditor.Selection.activeObject = _Instance;
            }
        }