[ view source ]
class Asset
package ceramic
extends Entity
implements Observable
extended by AtlasAsset, BinaryAsset, DatabaseAsset, FontAsset, FragmentsAsset, ImageAsset, ShaderAsset, SoundAsset, SpineAsset, SpriteAsset, TextAsset, TilemapAsset
Available on all targets
Events
observedDirty(instance:Asset, fromSerializedField:Bool):Void
Event when any observable value as changed on this instance.
Constructor
Variables
observedDirty:Bool = false
read onlydensity:Float = 1.0
Asset target density. Some assets depend on current screen density, like bitmap fonts, textures. Default is 1.0
read onlyowner:Assets
Asset owner. The owner is a group of assets (Assets instance). When the owner gets destroyed, every asset it owns get destroyed as well.
read onlyassets:Assets = null
Sub assets-list. Defaults to null but some kind of assets (like bitmap fonts) instanciate it to load sub-assets it depends on.