Creates a new Cube object.
The size of the cube along its X-axis.
The size of the cube along its Y-axis.
The size of the cube along its Z-axis.
The number of segments that make up the cube along the X-axis.
The number of segments that make up the cube along the Y-axis.
The number of segments that make up the cube along the Z-axis.
The type of uv mapping to use. When true, a texture will be subdivided in a 2x3 grid, each used for a single face. When false, the entire image is mapped on each face.
adapter is used to provide MovieClip to scripts taken from different platforms setter typically managed by factory. getter defaults to AwayJS class
A unique id for the asset, used to identify assets in an associative array
The original name used for this asset in the resource (e.g. file) in which
it was found. This may not be the same as name
, which may
have changed due to of a name conflict.
The size of the cube along its Z-axis.
The size of the cube along its Z-axis.
The size of the cube along its Y-axis.
The size of the cube along its Y-axis.
The material with which to render the primitive.
The material with which to render the primitive.
The number of segments that make up the cube along the Z-axis. Defaults to 1.
The number of segments that make up the cube along the Z-axis. Defaults to 1.
The number of segments that make up the cube along the Y-axis. Defaults to 1.
The number of segments that make up the cube along the Y-axis. Defaults to 1.
The number of segments that make up the cube along the X-axis. Defaults to 1.
The number of segments that make up the cube along the X-axis. Defaults to 1.
The type of uv mapping to use. When false, the entire image is mapped on each face. When true, a texture will be subdivided in a 3x2 grid, each used for a single face. Reading the tiles from left to right, top to bottom they represent the faces of the cube in the following order: bottom, top, back, left, front, right. This creates several shared edges (between the top, front, left and right faces) which simplifies texture painting.
The type of uv mapping to use. When false, the entire image is mapped on each face. When true, a texture will be subdivided in a 3x2 grid, each used for a single face. Reading the tiles from left to right, top to bottom they represent the faces of the cube in the following order: bottom, top, back, left, front, right. This creates several shared edges (between the top, front, left and right faces) which simplifies texture painting.
The size of the cube along its X-axis.
The size of the cube along its X-axis.
Invalidates the primitive, causing it to be updated when requested.
Invalidates the primitive's uv coordinates, causing them to be updated when requested.
Add an event listener
Dispatch an event
Returns a display object generated from this prefab
check if an object has an event listener assigned to it
Remove an event listener
Generated using TypeDoc
A Cube primitive prefab.