- Drawer: Added IntToLayerMaskAttribute, if a raw int is wanted instead of LayerMask - Drawer: Added option to either use full or short type name, when using SerializeReferenceTo - Extension: Fixed issue, where GetValueType and GetValue for SerializedProperty would throw exceptions, if field is private
14 lines
329 B
C#
14 lines
329 B
C#
using System;
|
|
using UnityEngine.Scripting;
|
|
|
|
namespace Module.Inspector
|
|
{
|
|
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
|
|
public sealed class IntToLayerMaskAttribute : DrawerPropertyAttribute
|
|
{
|
|
[Preserve]
|
|
public IntToLayerMaskAttribute()
|
|
{
|
|
}
|
|
}
|
|
} |