Tri-Inspector/Runtime/Attributes/PropertySpaceAttribute.cs
2022-01-05 14:59:05 +03:00

20 lines
618 B
C#

using System;
using System.Diagnostics;
namespace TriInspector
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method |
AttributeTargets.Class | AttributeTargets.Struct)]
[Conditional("UNITY_EDITOR")]
public sealed class PropertySpaceAttribute : Attribute
{
public float SpaceBefore { get; set; }
public float SpaceAfter { get; set; }
public PropertySpaceAttribute(float spaceBefore = 0, float spaceAfter = 0)
{
SpaceBefore = spaceBefore;
SpaceAfter = spaceAfter;
}
}
}