mirror of
https://github.com/codewriter-packages/Tri-Inspector.git
synced 2025-01-22 08:18:49 -05:00
25 lines
701 B
C#
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;
|
|
}
|
|
}
|
|
} |