I have an int which I want to be between 0 and an unknown number. This unknown number is max in the example below. I want this max number to change when another number changes in the editor. How can I accomplish this? This is my best attempt, but it won't let me use an unknown value for my range.
[Range(1, 10)]
public int multiplier;
[Range(0, max)]
public int x;
void OnValidate(){
max = 10 * multiplier;
}