Open Asterune
EnumItem

EnumItem

Represents one named item in an enumeration.

Behavior

EnumItem is a named enumeration value, such as Enum.Material.Neon. Access items through the Enum global. Use named items in scripts to keep the enumeration and value explicit.

Summary

Members4
Properties3
Methods1
  • IsA(enumName: string): boolean

    Returns whether the item belongs to the specified enumeration.

Properties

EnumType

EnumItem.EnumType: EnumType

The enumeration to which the item belongs.

Name

EnumItem.Name: string

The name of this enumeration member.

Value

EnumItem.Value: number

The numeric value assigned to the item.

Methods

IsA

EnumItem:IsA(enumName: string): boolean

Returns whether the item belongs to the specified enumeration.

Operators

__eq · __tostring · __type

Example

Luau
local material = Enum.Material.Neon
print(material.Value)

Used by

AssetService · BasePart · CharacterMesh · Chat · DataModel · Humanoid · InputService · LogService · Player · PlayerMouse · PointLight · ProximityPrompt · ProximityPromptService · ReflectionService · SoundService · SpecialMesh · StarterGui · Terrain · TextBox · TextButton · TextLabel · TextService · TweenService · VRService

Enum · Enum.Material · Enum.EasingStyle