6

Allow enum type properties to be visible as a script setting

If enum types could be used as a visible script setting, it would let the user of the script select from a predefined set of values. The enum values could be presented with a dropdown box. This would make scripts easier to configure.

Example:
 
public enum Direction
{
 Up,
 Down
}
 
public class EnumTest : SceneObjectScript
{
    public Directon StartDirection;
 
    public override void Init()
    {
    }
}

The StartDirection property would then be presented with a dropdown box with the values from the Direction enum.

3 comments

Please sign in to leave a comment.