// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
using System;
namespace FlaxEngine
{
///
/// Overrides the default editor provided for the target object/class/field/property. Allows to extend visuals and editing experience of the object.
///
///
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Enum | AttributeTargets.Struct | AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Delegate | AttributeTargets.Event | AttributeTargets.Method)]
public sealed class CustomEditorAttribute : Attribute
{
///
/// Custom editor class type.
/// Note: if attribute is used on CustomEditor class it specifies object type to edit.
///
public readonly Type Type;
///
/// Overrides default editor provided for the target object.
///
/// The custom editor class type.
public CustomEditorAttribute(Type type)
{
Type = type;
}
}
}