/// ---------------------------------------------
/// Ultimate Character Controller
/// Copyright (c) Opsive. All Rights Reserved.
/// https://www.opsive.com
/// ---------------------------------------------
namespace Opsive.UltimateCharacterController.Editor.Inspectors
{
using System;
///
/// InspectorDrawers allow non-Unity Objects to draw custom objects to the editor inspector.
///
public abstract class InspectorDrawer
{
///
/// Called when the object should be drawn to the inspector.
///
/// The object that is being drawn.
/// The Unity Object that the object belongs to.
public abstract void OnInspectorGUI(object target, UnityEngine.Object parent);
}
///
/// Specifies the type of object the Inspector Drawer should belong to.
///
[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = true)]
public class InspectorDrawerAttribute : Attribute
{
private Type m_Type;
public Type Type { get { return m_Type; } }
public InspectorDrawerAttribute(Type type)
{
m_Type = type;
}
}
}