36 lines
906 B
C#
36 lines
906 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
|
|
namespace Golems
|
|
{
|
|
/// <summary>
|
|
/// Custom Editor for All Objects.
|
|
/// Checks for any custom RS Attributes.
|
|
/// *F Odin*
|
|
/// </summary>
|
|
[CustomEditor(typeof(Object), true)]
|
|
public partial class AttributesEditor : UnityEditor.Editor
|
|
{
|
|
public override void OnInspectorGUI()
|
|
{
|
|
//
|
|
// Button Attribute for automatic Inspector Buttons on
|
|
//
|
|
OnInspectorGUIButtonAttribute();
|
|
//
|
|
// OnValueChanged Attribute for callback on Field Value Changes
|
|
//
|
|
OnInspectorGUIOnValueChangedAttribute();
|
|
|
|
//
|
|
// ShowLevelAttribute
|
|
//
|
|
OnInspectorGUIShowLevelAttribute();
|
|
base.OnInspectorGUI();
|
|
}
|
|
}
|
|
}
|