1.9.0: Added support for attributes for drawing handles in the scene

This commit is contained in:
Anders Ejlersen 2024-02-11 22:02:10 +01:00
parent 81906d49dd
commit 5ce34bde70
48 changed files with 1354 additions and 8 deletions

View file

@ -0,0 +1,22 @@
using System;
using UnityEngine;
namespace Module.Inspector
{
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public sealed class SphereHandleAttribute : HandleDrawerPropertyAttribute
{
public readonly string fieldPosition;
public readonly string fieldRotation;
public readonly Space space;
public SphereHandleAttribute(string fieldPosition = null,
string fieldRotation = null,
Space space = Space.World)
{
this.fieldPosition = fieldPosition;
this.fieldRotation = fieldRotation;
this.space = space;
}
}
}