Logo


search API (or start typing anywhere)


AssetBytes

snow.types.AssetBytes defined in snow.types.Types


typedef alias of snow.systems.assets.AssetBytes


 

Properties


bytes
bytes : snow.api.buffers.Uint8Array

Methods


destroy
destroy() : Void

loadstatic

load(_system:snow.systems.assets.Assets, _id:String) : snow.api.Promise
Create a new AssetBytes from an id, which returns a promise for the asset.

new

new(_system:snow.systems.assets.Assets, _id:String, _bytes:snow.api.buffers.Uint8Array) : Void

reload

reload() : snow.api.Promise
Reloads the bytes from it’s stored id, using the default processor, returning a promise for the asset.