1.7.0: Added option to display hidden fields for a class

This commit is contained in:
Anders Ejlersen 2022-07-23 22:56:43 +02:00
parent 9faacb6291
commit 070b82767f
12 changed files with 200 additions and 24 deletions

View file

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 5da89eb276ee4f529122d85ca855054e
timeCreated: 1658598477

View 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;
}
}
}

View file

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: c287a3fb88c74b888ac05e1c3b34238b
timeCreated: 1658598444

View file

@ -0,0 +1,10 @@
using System;
using UnityEngine;
namespace Module.Inspector
{
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public sealed class ShowHiddenFieldAttribute : PropertyAttribute
{
}
}

View file

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: ddf507506d4745f6904b2801b85e95bd
timeCreated: 1658598416