BaseTool icon indicating copy to clipboard operation
BaseTool copied to clipboard

Add comparer for IfAttributes

Open Paul-1379 opened this issue 9 months ago • 1 comments

Add the ability to make comparisons directly in the ifAttribute like:

using BaseTool;
using UnityEngine;

public class MonoScript : MonoBehaviour 
{
    public int Number;
    [If("Number == 0")] public int OtherNumber;
}

or:

using BaseTool;
using UnityEngine;

public class MonoScript : MonoBehaviour 
{
    public enum MyEnum
    {
        A,
        B
    }
    public MyEnum Enum;
    [If("Enumr == MyEnum.A")] public int Number;
}

Paul-1379 avatar May 10 '24 07:05 Paul-1379