BaseTool icon indicating copy to clipboard operation
BaseTool copied to clipboard

Add comparer for IfAttributes

Open Paul-1379 opened this issue 1 year 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

I've searched many informations about this and... I think this would be a really long and hard task to do that. I now understand why tools like OdinInspector aren't free. I would try maybe someday something, but it is a huge task...

DarkRewar avatar May 13 '24 10:05 DarkRewar