[ view source ]
class ShaderAsset
package ceramic
extends Asset › Entity
@:directlyUsed@:build(tracker.macros.EventsMacro.build())@:autoBuild(tracker.macros.EventsMacro.build())@:build(ceramic.macros.EntityMacro.buildForCompletion())@:autoBuild(ceramic.macros.EntityMacro.buildForCompletion())@:build(tracker.macros.ObservableMacro.build())@:autoBuild(tracker.macros.ObservableMacro.build())Available on all targets
Events
Constructor
Variables
Methods
Inherited Events
Defined by Asset
@:dox(show)observedDirty(instance:Asset, fromSerializedField:Bool):Void
Event when any observable value as changed on this instance.
@:dox(show)statusChange(current:AssetStatus, previous:AssetStatus):Void
Event when status field changes.
Inherited Variables
Defined by Asset
@:value(false)observedDirty:Bool = false
@:value(1.0)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.
@:value(null)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.
Defined by Entity
@editablecomponents:ReadOnlyMap<String, Component>
Public components mapping. Contain components
created separately with component()
or macro-based components as well.
Inherited Methods
Defined by Asset
Defined by Entity
autorun(run:() ‑> Void, ?afterRun:() ‑> Void):Autorun
Creates a new Autorun
instance with the given callback associated with the current entity.
Parameters:
run | The run callback |
---|
Returns:
The autorun instance