Last active
September 9, 2016 18:17
-
-
Save kinifi/ac0526eee85cfe5915e9d9111b5c182a to your computer and use it in GitHub Desktop.
How to override an inspector and change how it looks in the Editor along with opening a Editor Extension
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 1. Must be located in a "Editor" Folder in your Assets folder | |
* 2. Must have a script that is in the "typeof(SCRIPT HERE)" line that exists | |
*/ | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
[CustomEditor(typeof(CLASSNAME))] | |
//uncomment if needed | |
//[CanEditMultipleObjects] | |
public class NewInspector : Editor | |
{ | |
public override void OnInspectorGUI() | |
{ | |
GUILayout.Label("I'm an awesome label", EditorStyles.helpBox); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment