private void Awake() { componentEditorid = CountComponentEditorid++; ContentLabel = new Rect((componentEditorid * 150) + 30, 0, 150, 60); ContentColapse = new Rect(0, 0, 30, 60); ContentGroup = new Rect(0, 60, Screen.width, Screen.height); setting = ComponentLiveEditorSettings.Load(); setting.testGUIskin.box.fixedWidth = Screen.width - 15; }
override public void OnInspectorGUI() { serializedObject.Update(); new_SelectedMonoBehaviorIndex = EditorGUILayout.Popup("MonoBehavior", selectedMonoBehaviorIndex, MonoBehaviorListLabel); if (new_SelectedMonoBehaviorIndex != selectedMonoBehaviorIndex) { onMonoBehaviorChanged(MonoBehaviorsList[new_SelectedMonoBehaviorIndex]); selectedMonoBehaviorIndex = new_SelectedMonoBehaviorIndex; } if (GUILayout.Button(SettingsLabel)) { Selection.activeObject = ComponentLiveEditorSettings.Load(); } ; serializedObject.ApplyModifiedProperties(); }