I have proper functioning code to display a class in the Unity inspector and being able to change the values.
[System.Serializable]
public class Info
{
[Range(0,2)]
public int Type;
public int Amount;
[Range(0,2)]
public int Type2;
public int Amount2;
}
My problem is this, I want the both sliders to have different values at all times.
Let’s say “Type1” is initially on value 0.
Then I want “Type2” to only have the option to select the values 1 and 2.
So basicly Type1 != Type2.
Is this at all possible, in that case how?