Ignition / AssetBank

Namespace Playniax.Ignition

Script can be found in Assets/Playniax/Framework/Ignition/Framework/Core/Scripts/AssetBank.cs

Class AssetBank

Description

AssetBank enables you to allocate assets or resources. It functions as a filesystem for various Playniax components, such as the ScrollBox. Without adding images or fonts to the AssetBank, the ScrollBox cannot access them.

Public fieldsDescription
Object[] assetsList to store assets.

Public MethodsDescription
Object Get(string name)Returns Object by name.
Font GetFont(string name)Returns Font by name.
GameObject GetGameObject(string name)Returns GameObject by name.
Image GetImage(string name)Returns Image by name.
Texture2D GetTexture2D(string name)Returns Texture2D by name.
Sprite GetSprite(string name)Returns Sprite by name.
TextAsset GetTextAsset(string name)Returns TextAsset by name.