Tri-Inspector/Runtime/Attributes/PropertySpaceAttribute.cs
2023-03-12 11:38:39 +04:00

25 lines
701 B
C#

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