Change Enumeration Via Start

Hello,

I want to be able to populate an enumeration with values from an array dynamically. For now, I’m just trying to add in my own variables via the Start function:

enum From {}
var connectsFrom : From;

function Start () {

	From : enum = {mode1, mode2};

}

I think that defeats the purpose of the enumeration. Why don’t you just keep the values in the array and have your code call the values from the array directly? Otherwise, anywhere in your code if you want to call a value in the enum you’re going to either A.) have to reference the array anyways to see what values will be available or B.) Runtime error for values that may or may not be there.