Files
FlaxEngine/Source/Engine/Scripting/Attributes/Editor/HeaderAttribute.cs
2020-12-07 23:40:54 +01:00

34 lines
849 B
C#

// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
using System;
namespace FlaxEngine
{
/// <summary>
/// Inserts a header control with a custom text into the editor layout.
/// </summary>
/// <seealso cref="System.Attribute" />
[Serializable]
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
public sealed class HeaderAttribute : Attribute
{
/// <summary>
/// The header text.
/// </summary>
public string Text;
private HeaderAttribute()
{
}
/// <summary>
/// Initializes a new instance of the <see cref="HeaderAttribute"/> class.
/// </summary>
/// <param name="text">The header text.</param>
public HeaderAttribute(string text)
{
Text = text;
}
}
}