[TASK] Content fixes
This commit is contained in:
20
Assets/EasyButtons/Editor/ButtonEditor.cs
Normal file
20
Assets/EasyButtons/Editor/ButtonEditor.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using UnityEditor;
|
||||
|
||||
namespace EasyButtons
|
||||
{
|
||||
/// <summary>
|
||||
/// Custom inspector for Object including derived classes.
|
||||
/// </summary>
|
||||
[CanEditMultipleObjects]
|
||||
[CustomEditor(typeof(UnityEngine.Object), true)]
|
||||
public class ObjectEditor : Editor
|
||||
{
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
this.DrawEasyButtons();
|
||||
|
||||
// Draw the rest of the inspector as usual
|
||||
DrawDefaultInspector();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user