Logo


search API (or start typing anywhere)


AssetBytes

snow.systems.assets.AssetBytes defined in snow.systems.assets.Asset


classextends snow.systems.assets.Asset


 

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.