Files
SampleRenderPasses/Assets/Attributes/Editor/AttributesEditor.cs
2025-05-18 22:39:39 +03:00

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();
}
}
}