20 lines
551 B
C#
20 lines
551 B
C#
using UnityEngine;
|
|
using UnityEngine.Rendering;
|
|
|
|
namespace GraphicsCat
|
|
{
|
|
public class EnableIfAttribute : PropertyAttribute
|
|
{
|
|
public string PropertyName { get; private set; }
|
|
public CompareFunction Compare { get; private set; }
|
|
public object CompareValue { get; private set; }
|
|
|
|
public EnableIfAttribute(string propertyName, CompareFunction compare, object compareValue)
|
|
{
|
|
PropertyName = propertyName;
|
|
Compare = compare;
|
|
CompareValue = compareValue;
|
|
}
|
|
}
|
|
}
|