Skip to main content

Assets

Retrieve Assets Data from Asset Packs.

🗿Static Class
This is a Static Class. Access it's methods directly with .. It's not possible to spawn new instances.
💂Authority
This static class can be accessed on both 🟧 Client and 🟦 Server side.

Static Functions​

ReturnsNameDescription
table of tableGetAssetPacksGets a list containing information about all loaded Asset Packs
table of stringGetAnimationsGets a list containing all Animation Assets Keys from an AssetPack
table of stringGetBlueprintsGets a list containing all Blueprints Assets Keys from an AssetPack
table of stringGetMapsGets a list containing all Map Asset Keys from an AssetPack
table of stringGetMaterialsGets a list containing all Materials Asset Keys from an AssetPack
table of stringGetParticlesGets a list containing all Particle Assets Keys from an AssetPack
table of stringGetSoundsGets a list containing all Sound Assets Keys from an AssetPack
table of stringGetSkeletalMeshesGets a list containing all Skeletal Mesh Asset Keys from an AssetPack
table of stringGetStaticMeshesGets a list containing all Static Mesh Assets Keys from an AssetPack
table of stringGetOthersGets a list containing all Other Assets Keys from an AssetPack
PrecacheManually adds an Asset to be loaded during the Player's loading screen
LoadAssetPackManually Loads an Asset Pack

GetAssetPacks​

Gets a list containing information about all loaded Asset Packs

— Returns table of table (with this format).

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
stringasset_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
stringasset_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
stringasset_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
stringasset_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
stringasset_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
stringasset_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
stringasset_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
stringasset_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
stringasset_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
stringasset_pathThe Asset Key
AssetTypeasset_typeThe Asset Type

LoadAssetPack​

Manually Loads an Asset Pack

Assets.LoadAssetPack(asset_pack_name)
TypeParameterDefaultDescription
stringasset_pack_name