// Copyright (c) Wojciech Figat. All rights reserved.
using System;
namespace FlaxEngine
{
///
/// Allows to change enum type field or property display mode in the editor.
///
///
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
public sealed class EnumDisplayAttribute : Attribute
{
///
/// Enumeration items names formatting modes.
///
public enum FormatMode
{
///
/// The default formatting. Performs standard name processing to create more human-readable label for User Interface.
///
Default = 0,
///
/// The none formatting. The enum items names won't be modified.
///
None = 1,
}
///
/// The formatting mode.
///
public FormatMode Mode;
///
/// Initializes a new instance of the class.
///
/// The formatting mode.
public EnumDisplayAttribute(FormatMode mode)
{
Mode = mode;
}
}
}