I have an enum called : Actions and it looks like :
public enum Actions { sleep = 1, food = 2, lookForFood = 3, lookForSleep = 4, wander = 5 };
My question is if there is a way to get the enum member from their int. Example:
Actions(1); // Return sleep
So value will hold sleep? Correct.
– landon912Correct. You can test that by
– Dave-CarlileDebug.Log(value.ToString());Ok thanks for the help.
– landon912