1.9.0: Added support for attributes for drawing handles in the scene
This commit is contained in:
parent
81906d49dd
commit
5ce34bde70
48 changed files with 1354 additions and 8 deletions
22
Runtime/HandleDrawers/LabelHandleAttribute.cs
Normal file
22
Runtime/HandleDrawers/LabelHandleAttribute.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Module.Inspector
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
|
||||
public sealed class LabelHandleAttribute : HandleDrawerPropertyAttribute
|
||||
{
|
||||
public readonly ELabelType type;
|
||||
public readonly string fieldPosition;
|
||||
public readonly Space space;
|
||||
|
||||
public LabelHandleAttribute(ELabelType type = ELabelType.Value,
|
||||
string fieldPosition = null,
|
||||
Space space = Space.World)
|
||||
{
|
||||
this.type = type;
|
||||
this.fieldPosition = fieldPosition;
|
||||
this.space = space;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue