Files
FlaxEngine/Source/Engine/Scripting/Attributes/Editor/SpaceAttribute.cs
2021-01-02 14:28:49 +01:00

35 lines
882 B
C#

// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
using System;
namespace FlaxEngine
{
/// <summary>
/// Inserts an empty space between controls in the editor.
/// </summary>
/// <seealso cref="System.Attribute" />
[Serializable]
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
public sealed class SpaceAttribute : Attribute
{
/// <summary>
/// The spacing in pixel (vertically).
/// </summary>
public float Height;
private SpaceAttribute()
{
Height = 10.0f;
}
/// <summary>
/// Initializes a new instance of the <see cref="SpaceAttribute"/> class.
/// </summary>
/// <param name="height">The spacing.</param>
public SpaceAttribute(float height)
{
Height = height;
}
}
}