Files
Ultimate-Fishing-Simulator-…/Assets/Scripts/Assembly-CSharp/RootMotion/ShowIfAttribute.cs
2026-03-04 09:37:33 +08:00

29 lines
777 B
C#

using System;
using UnityEngine;
namespace RootMotion
{
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = true)]
public class ShowIfAttribute : PropertyAttribute
{
public string propName { get; protected set; }
public object propValue { get; protected set; }
public object otherPropValue { get; protected set; }
public bool indent { get; private set; }
public ShowIfMode mode { get; protected set; }
public ShowIfAttribute(string propertyName, object propertyValue = null, object otherPropertyValue = null, bool indent = false, ShowIfMode mode = ShowIfMode.Hidden)
{
propName = propertyName;
propValue = propertyValue;
otherPropValue = otherPropertyValue;
this.indent = indent;
this.mode = mode;
}
}
}