1.7.0: Added option to display hidden fields for a class
This commit is contained in:
parent
9faacb6291
commit
070b82767f
12 changed files with 200 additions and 24 deletions
16
Runtime/HiddenFields/EnableShowHiddenFieldsAttribute.cs
Normal file
16
Runtime/HiddenFields/EnableShowHiddenFieldsAttribute.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Module.Inspector
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
|
||||
public sealed class EnableShowHiddenFieldsAttribute : PropertyAttribute
|
||||
{
|
||||
public bool UseFieldProperty { get; }
|
||||
|
||||
public EnableShowHiddenFieldsAttribute(bool useFieldProperty = false)
|
||||
{
|
||||
UseFieldProperty = useFieldProperty;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue