Enum
[!Summary]
Enumprovides named groups of constants, such asEnum.KeyCodeandEnum.Material. In Vortex Studio 0.3.4, all 119 documented enum items were verified in both Script and LocalScript and convert to theirEnum.<group>.<item>string form.
EasingDirection
In, InOut, Out
EasingStyle
Back, Bounce, Circular, Cubic, Elastic, Exponential, Linear,
Quad, Quart, Quint, Sine
KeyCode
A, B, BackSlash, Backquote, Backspace, C, Comma, D, Delete,
Down, E, Eight, Equals, Escape, F, F1, F10, F11, F12,
F2, F3, F4, F5, F6, F7, F8, F9, Five, Four, G, H,
I, J, K, L, Left, LeftAlt, LeftBracket, LeftControl,
LeftShift, LeftSuper, M, Minus, N, Nine, O, One, P,
Period, Q, Quote, R, Return, Right, RightAlt, RightBracket,
RightControl, RightShift, RightSuper, S, Semicolon, Seven, Six,
Slash, Space, T, Tab, Three, Two, U, Unknown, Up, V, W,
X, Y, Z, Zero
Material
Grass, Ice, Metal, Plastic, Wood
NormalId
Back, Bottom, Front, Left, Right, Top
PlaybackState
Begin, Cancelled, Completed, Delayed, Paused, Playing
UserInputType
Focus, Gamepad1, Keyboard, MouseButton1, MouseButton2,
MouseButton3, MouseMovement, MouseWheel, None, Touch
EnumType Methods
Each enum group, such as Enum.KeyCode, exposes these lookup methods.
FromName()
EnumItem|nil
enumType:FromName(name: string)Returns the item with the given name, or
nilwhen the name is not part of the enum group.
FromValue()
enumType:FromValue(value: Number)Returns the item with the given integral value.
GetEnumItems()
{ EnumItem }
enumType:GetEnumItems()Returns a table containing the items in the enum group.