Skip to main content
Version: bleeding-edge ๐Ÿฉธ

๐Ÿ€ 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