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
3
Runtime/HiddenFields.meta
Normal file
3
Runtime/HiddenFields.meta
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 5da89eb276ee4f529122d85ca855054e
|
||||
timeCreated: 1658598477
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c287a3fb88c74b888ac05e1c3b34238b
|
||||
timeCreated: 1658598444
|
||||
10
Runtime/HiddenFields/ShowHiddenFieldAttribute.cs
Normal file
10
Runtime/HiddenFields/ShowHiddenFieldAttribute.cs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Module.Inspector
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
|
||||
public sealed class ShowHiddenFieldAttribute : PropertyAttribute
|
||||
{
|
||||
}
|
||||
}
|
||||
3
Runtime/HiddenFields/ShowHiddenFieldAttribute.cs.meta
Normal file
3
Runtime/HiddenFields/ShowHiddenFieldAttribute.cs.meta
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: ddf507506d4745f6904b2801b85e95bd
|
||||
timeCreated: 1658598416
|
||||
Loading…
Add table
Add a link
Reference in a new issue