Base class for all materials
id:int
[read-only]
Unique identifier
Implementation
public function get id():int
arcane var _materialData:MaterialData
visible:Boolean
[read-only]
Indicates whether the material is visible
Implementation
public function get visible():Boolean
public function Material()
Init Parameters
public function addOnMaterialUpdate(listener:Function):void
Default method for adding a materialupdated event listener
Parameters
| listener:Function — The listener function
|
public function clone(material:Material = null):Material
Duplicates the material properties to another material object. Usage: existingMaterial = materialToClone.clone( existingMaterial ) as Material;
Parameters
| material:Material (default = null ) — [optional] The new material instance into which all properties are copied. The default is Material .
|
Returns
| Material —
The new material instance with duplicated properties applied.
|
public function removeOnMaterialUpdate(listener:Function):void
Default method for removing a materialupdated event listener
Parameters
| listener:Function — The listener function
|
Event object type: away3d.events.MaterialEvent
Dispatched when the any visual aspect of the material changes.