Package | away3d.materials |
Class | public class Material |
Inheritance | Material flash.events.EventDispatcher |
Subclasses | WireframeMaterial |
Property | Defined By | ||
---|---|---|---|
id : int [read-only]
Unique identifier
| Material | ||
visible : Boolean [read-only]
Indicates whether the material is visible
| Material |
Method | Defined By | ||
---|---|---|---|
addOnMaterialUpdate(listener:Function):void
Default method for adding a materialupdated event listener
| Material | ||
Duplicates the material properties to another material object. | Material | ||
removeOnMaterialUpdate(listener:Function):void
Default method for removing a materialupdated event listener
| Material |
Event | Summary | Defined By | ||
---|---|---|---|---|
Dispatched when the any visual aspect of the material changes. | Material |
id | property |
id:int
[read-only] Unique identifier
public function get id():int
visible | property |
visible:Boolean
[read-only] Indicates whether the material is visible
public function get visible():Boolean
addOnMaterialUpdate | () | method |
public function addOnMaterialUpdate(listener:Function):void
Default method for adding a materialupdated event listener
Parameters
listener:Function — The listener function
|
clone | () | method |
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 .
|
Material — The new material instance with duplicated properties applied.
|
removeOnMaterialUpdate | () | method |
public function removeOnMaterialUpdate(listener:Function):void
Default method for removing a materialupdated event listener
Parameters
listener:Function — The listener function
|
materialUpdated | Event |
away3d.events.MaterialEvent
away3d.events.MaterialEvent
Dispatched when the any visual aspect of the material changes.