MythicalWar/Assets/Invector-3rdPersonController/Basic Locomotion/Scripts/Generic/Attributes/vHideInInspectorAttribute.cs

19 lines
558 B
C#

using UnityEngine;
using System;
namespace Invector
{
[AttributeUsage(AttributeTargets.Field, Inherited = true, AllowMultiple = true)]
public class vHideInInspectorAttribute : PropertyAttribute
{
public bool hideProperty { get; set; }
public string refbooleanProperty;
public bool invertValue;
public vHideInInspectorAttribute(string refbooleanProperty, bool invertValue = false)
{
this.refbooleanProperty = refbooleanProperty;
this.invertValue = invertValue;
}
}
}