void OnEnable() { _Properties = target as InspectorProperties; _Frame = new Framework.UI.Frame("Frame"); _PropertyGrid = new PropertyGrid(false); _Frame.Controls.Add(_PropertyGrid); }
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; } }