mirror of
https://github.com/codewriter-packages/Tri-Inspector.git
synced 2025-01-22 16:28:23 -05:00
20 lines
618 B
C#
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;
|
|
}
|
|
}
|
|
} |