A collection of wrappers for the Editor, EditorWindow and PropertyDrawer classes.
- Draw bold label easily calling DrawBoldLabel.
- Draw a button by calling DrawButton.
- Control indent level using IncreaseIndentLevel, DecreaseIndentLevel and ResetIndentLevel.
- Want to draw the script field like unity does? Call the DrawScriptField method.
- Draw properties as readly by calling StartGreyedOutArea before and then calling EndGreyedOutArea.
- No more getting lost between GUI, GUILayout, EditorGUI and EditorGUILayout searching for the method you need.
Unity 2018.3 and up
- Open the package manager and point to the repo URL
- Open the manifest
- Add the repo URL either via https or ssh
- Clone or download the project zip
- Open your project assets folder
- Copy the repo there
- Create your custom editor class
- Extend from BrightEditor instead of UnityEditor.Editor
- Check the API and use the available methods for easier custom inspector class writing
Notes:
- Similar approach when making custom EditorWindow, use BrightEditorWindow.
- Similar approach when making custom PropertyDrawer, use BrightPropertyDrawer.
- If you don't want to extend those for some reason, use BrightEditorUtility.