Update Enum.AssetType

Enum.AssetType is missing 20 entries, not only that but the order isn’t even correct! look at entry 18!

This is the list from the Wiki

Name Value Summary
Image 1 The asset is an image.
TShirt 2
Audio 3 The asset is an audio clip.
Mesh 4 The asset is a mesh.
Lua 5 The asset is Lua code, for example a ModuleScript.
Hat 8 The asset is a hat.
Place 9 The asset is a place.
Model 10 The asset is a model.
Shirt 11 The asset is a shirt.
Pants 12 The asset is a pants item.
Decal 13 The asset is a decal (image).
Head 17 The asset is a head.
Face 18 The asset is a face.
Gear 19 The asset is a gear item.
Badge 21 The asset is a badge.
Animation 24 The asset is an animation; also see the more specific animation type enums below.
Torso 27 The asset is a torso.
RightArm 28 The asset is a right arm.
LeftArm 29 The asset is a left arm.
LeftLeg 30 The asset is a left leg.
RightLeg 31 The asset is a right leg.
Package 32 The asset is a pack, for example an animation package.
GamePass 34 The asset is a GamePass.
Plugin 38 The asset is a plugin.
MeshPart 40 The asset is a mesh part.
HairAccessory 41 The asset is a hair accessory.
FaceAccessory 42 The asset is a face accessory.
NeckAccessory 43 The asset is a neck accessory.
ShoulderAccessory 44 The asset is a shoulder accessory.
FrontAccessory 45 The asset is a front accessory.
BackAccessory 46 The asset is a back accessory.
WaistAccessory 47 The asset is a waist accessory.
ClimbAnimation 48 The asset is a climb animation.
DeathAnimation 49 The asset is a death animation.
FallAnimation 50 The asset is a fall animation.
IdleAnimation 51 The asset is an idle animation.
JumpAnimation 52 The asset is a jump animation.
RunAnimation 53 The asset is a run animation.
SwimAnimation 54 The asset is a swim animation.
WalkAnimation 55 The asset is a walk animation.
PoseAnimation 56 The asset is a pose animation.
EarAccessory 57
EyeAccessory 58
EmoteAnimation 61 The asset is an emote animation.
Video 62 The asset is a video.
TShirtAccessory 64
ShirtAccessory 65
PantsAccessory 66
JacketAccessory 67
SweaterAccessory 68
ShortsAccessory 69
LeftShoeAccessory 70
RightShoeAccessory 71
DressSkirtAccessory 72
FontFamily 73
EyebrowAccessory 76
EyelashAccessory 77
MoodAnimation 78
DynamicHead 79

And this is the list I get from Enum.AssetType:GetEnumItems()

{
                    [1] = Image,
                    [2] = TShirt,
                    [3] = Audio,
                    [4] = Mesh,
                    [5] = Lua,
                    [6] = Hat,
                    [7] = Place,
                    [8] = Model,
                    [9] = Shirt,
                    [10] = Pants,
                    [11] = Decal,
                    [12] = Head,
                    [13] = Face,
                    [14] = Gear,
                    [15] = Badge,
                    [16] = Animation,
                    [17] = Torso,
                    [18] = RightArm,
                    [19] = LeftArm,
                    [20] = LeftLeg,
                    [21] = RightLeg,
                    [22] = Package,
                    [23] = GamePass,
                    [24] = Plugin,
                    [25] = MeshPart,
                    [26] = HairAccessory,
                    [27] = FaceAccessory,
                    [28] = NeckAccessory,
                    [29] = ShoulderAccessory,
                    [30] = FrontAccessory,
                    [31] = BackAccessory,
                    [32] = WaistAccessory,
                    [33] = ClimbAnimation,
                    [34] = DeathAnimation,
                    [35] = FallAnimation,
                    [36] = IdleAnimation,
                    [37] = JumpAnimation,
                    [38] = RunAnimation,
                    [39] = SwimAnimation,
                    [40] = WalkAnimation,
                    [41] = PoseAnimation,
                    [42] = EarAccessory,
                    [43] = EyeAccessory,
                    [44] = EmoteAnimation,
                    [45] = Video,
                    [46] = TShirtAccessory,
                    [47] = ShirtAccessory,
                    [48] = PantsAccessory,
                    [49] = JacketAccessory,
                    [50] = SweaterAccessory,
                    [51] = ShortsAccessory,
                    [52] = LeftShoeAccessory,
                    [53] = RightShoeAccessory,
                    [54] = DressSkirtAccessory,
                    [55] = FontFamily,
                    [56] = EyebrowAccessory,
                    [57] = EyelashAccessory,
                    [58] = MoodAnimation,
                    [59] = DynamicHead
                 }

Wouldn’t this be more of a bug report? Title would be something like “Enum.AssetType:GetEnumItems() returns outdated data”.

image

GetEnumItems returns an array of EnumItems, the index of the item doesn’t corrolate in any way to the Value of the Enum and will always be sequential; the (most likely, not confirmed anywhere) reason for these gaps in the AssetType Enum is that the Enum actually represents the AssetTypeId field used on the web APIs in-which not all the asset types are useful for experiences (IE: not assets any normal user would need to use).

1 Like