Ignition / AssetBank
Namespace
Playniax.IgnitionScript can be found in
Assets/Playniax/Framework/Ignition/Framework/Core/Scripts/AssetBank.cs
Class AssetBank
DescriptionAssetBank 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 fields | Description |
---|
Object[] assets | List to store assets. |
Public Methods | Description |
---|
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. |