// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
using System;
namespace FlaxEngine
{
///
/// Allows to change item display name or a group in the editor.
///
///
[Serializable]
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Delegate | AttributeTargets.Event | AttributeTargets.Method)]
public sealed class EditorDisplayAttribute : Attribute
{
///
/// Special text sequence used for property names to override the default layout style and inline property into the parent layout.
///
public const string InlineStyle = "__inline__";
///
/// The group name. Default is null.
///
public string Group;
///
/// The overriden item display name. Default is null.
///
public string Name;
private EditorDisplayAttribute()
{
}
///
/// Initializes a new instance of the class.
///
/// The group name.
/// The display name. Use special name `__inline__` (see ) to inline property into the parent container.
public EditorDisplayAttribute(string group = null, string name = null)
{
Group = group;
Name = name;
}
}
}