Skip to main content
Version: latest - a1.19.x βš–οΈ

πŸ€ Assets

Retrieve Assets Data from Asset Packs.

πŸ’‚Authority
This static class can be accessed on both 🟧 Client and 🟦 Server.
πŸ—ΏStatic Class
This is a Static Class. You can access it's methods directly with .. It is not possible to initialize or create new instances.

πŸ—Ώ Static Functions​

ReturnsNameDescription
table of table GetAssetPacksGets a list containing information about all loaded Asset Packs
table of string GetAnimationsGets a list containing all Animation Assets Keys from an AssetPack
table of string GetBlueprintsGets a list containing all Blueprints Assets Keys from an AssetPack
table of string GetMapsGets a list containing all Map Asset Keys from an AssetPack
table of string GetMaterialsGets a list containing all Materials Asset Keys from an AssetPack
table of string GetParticlesGets a list containing all Particle Assets Keys from an AssetPack
table of string GetSoundsGets a list containing all Sound Assets Keys from an AssetPack
table of string GetSkeletalMeshesGets a list containing all Skeletal Mesh Asset Keys from an AssetPack
table of string GetStaticMeshesGets a list containing all Static Mesh Assets Keys from an AssetPack
table of string GetOthersGets a list containing all Other Assets Keys from an AssetPack
PrecacheManually adds an Asset to be loaded during the Player's loading screen

GetAssetPacks​

Gets a list containing information about all loaded Asset Packs

Returns table of table (in the format { Name: string, Path: string, Author: string, Version: string })
local ret = Assets.GetAssetPacks()

GetAnimations​

Gets a list containing all Animation Assets Keys from an AssetPack

Returns table of string (array of strings)
local ret = Assets.GetAnimations(asset_pack_path)
TypeParameterDefaultDescription
string asset_pack_pathThe Asset Pack path to get the assets

GetBlueprints​

Gets a list containing all Blueprints Assets Keys from an AssetPack

Returns table of string (array of strings)
local ret = Assets.GetBlueprints(asset_pack_path)
TypeParameterDefaultDescription
string asset_pack_pathThe Asset Pack path to get the assets

GetMaps​

Gets a list containing all Map Asset Keys from an AssetPack

Returns table of string (array of strings)
local ret = Assets.GetMaps(asset_pack_path)
TypeParameterDefaultDescription
string asset_pack_pathThe Asset Pack path to get the assets

GetMaterials​

Gets a list containing all Materials Asset Keys from an AssetPack

Returns table of string (array of strings)
local ret = Assets.GetMaterials(asset_pack_path)
TypeParameterDefaultDescription
string asset_pack_pathThe Asset Pack path to get the assets

GetParticles​

Gets a list containing all Particle Assets Keys from an AssetPack

Returns table of string (array of strings)
local ret = Assets.GetParticles(asset_pack_path)
TypeParameterDefaultDescription
string asset_pack_pathThe Asset Pack path to get the assets

GetSounds​

Gets a list containing all Sound Assets Keys from an AssetPack

Returns table of string (array of strings)
local ret = Assets.GetSounds(asset_pack_path)
TypeParameterDefaultDescription
string asset_pack_pathThe Asset Pack path to get the assets

GetSkeletalMeshes​

Gets a list containing all Skeletal Mesh Asset Keys from an AssetPack

Returns table of string (array of strings)
local ret = Assets.GetSkeletalMeshes(asset_pack_path)
TypeParameterDefaultDescription
string asset_pack_pathThe Asset Pack path to get the assets

GetStaticMeshes​

Gets a list containing all Static Mesh Assets Keys from an AssetPack

Returns table of string (array of strings)
local ret = Assets.GetStaticMeshes(asset_pack_path)
TypeParameterDefaultDescription
string asset_pack_pathThe Asset Pack path to get the assets

GetOthers​

Gets a list containing all Other Assets Keys from an AssetPack

Returns table of string (array of strings)
local ret = Assets.GetOthers(asset_pack_path)
TypeParameterDefaultDescription
string asset_pack_pathThe Asset Pack path to get the assets

Precache​

Manually adds an Asset to be loaded during the Player's loading screen
Assets.Precache(asset_path, asset_type)
TypeParameterDefaultDescription
string asset_pathThe Asset Key
AssetTypeasset_typeThe Asset Type