I am using a Custom Editor Inspector for my MonoBehaviour class and I would like to know I it's possible to constrain a variable. Let me illustrate this with an example. Let's imagine I have an integer value but I would like to authorize only some values in the Inspector like 1, 5, 99, whatever. I would like to know if there is way to do that for any type of variables using editor features. I know that I can define an Enum or use a Dictionnary with some index but is there another way ? Thanks a lot.