| Package | away3d.materials |
| Class | public class WireColorMaterial |
| Inheritance | WireColorMaterial WireframeMaterial Material flash.events.EventDispatcher |
| Subclasses | ColorMaterial |
| Property | Defined by | ||
|---|---|---|---|
| alpha : Number
Determines the alpha value of the material
| WireColorMaterial | ||
| color : uint
24 bit color value representing the material color
| WireColorMaterial | ||
![]() | id : int
Unique identifier
| Material | |
![]() | thickness : Number
Determines the thickness value of the wire
| WireframeMaterial | |
| visible : Boolean [read-only]
Indicates whether the material is visible
| WireColorMaterial | ||
![]() | wireAlpha : Number
Determines the alpha value of the wire
| WireframeMaterial | |
![]() | wireColor : uint
24 bit color value representing the wire color
| WireframeMaterial | |
| Property | Defined by | ||
|---|---|---|---|
| _alpha : Number | WireColorMaterial | ||
| _color : uint | WireColorMaterial | ||
![]() | ini : Init
Instance of the Init object used to hold and parse default property values
specified by the initialiser object in the 3d object constructor.
| WireframeMaterial | |
![]() | _thickness : Number | WireframeMaterial | |
![]() | _wireAlpha : Number | WireframeMaterial | |
![]() | _wireColor : uint = 0x0 | WireframeMaterial | |
| Method | Defined by | ||
|---|---|---|---|
|
WireColorMaterial
(color:* = null, init:Object = null)
Creates a new
WireColorMaterial object. | WireColorMaterial | ||
![]() |
addOnMaterialUpdate(listener:Function):void
Default method for adding a materialupdated event listener
| Material | |
|
Duplicates the material properties to another material object.
| WireColorMaterial | ||
![]() |
removeOnMaterialUpdate(listener:Function):void
Default method for removing a materialupdated event listener
| Material | |
| _alpha | property |
protected var _alpha:Number
| alpha | property |
alpha:Number [read-write]Determines the alpha value of the material
Implementation public function get alpha():Number
public function set alpha(value:Number):void
| _color | property |
protected var _color:uint
| color | property |
color:uint [read-write]24 bit color value representing the material color
Implementation public function get color():uint
public function set color(value:uint):void
| visible | property |
visible:Boolean [read-only]Indicates whether the material is visible
Implementation public function get visible():Boolean
| WireColorMaterial | () | constructor |
public function WireColorMaterial(color:* = null, init:Object = null)Parameters
color:* (default = null) — A string, hex value or colorname representing the color of the material.
|
|
init:Object (default = null) — [optional] An initialisation object for specifying default instance properties.
|
wireColor:Color (default = wireColor) | |
alpha:Number (default = 1, min:0, max:1) |
| clone | () | method |
public override function clone(material:Material = null):Material
Duplicates the material properties to another material object. Usage: existingMaterial = materialToClone.clone( existingMaterial ) as WireColorMaterial;
Parametersmaterial:Material (default = null) — [optional] The new material instance into which all properties are copied. The default is WireColorMaterial.
|
Material —
The new material instance with duplicated properties applied.
|