Creates a new PrimitivePrefabBase object.
The material with which to render the object
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 material with which to render the primitive.
The material with which to render the primitive.
Builds the primitive's geometry when invalid. This method should not be called directly. The calling should be triggered by the invalidateGraphics method (and in turn by updateGraphics).
Builds the primitive's uv coordinates when invalid. This method should not be called directly. The calling should be triggered by the invalidateUVs method (and in turn by updateUVs).
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
PrimitivePrefabBase is an abstract base class for polytope prefabs, which are simple pre-built geometric shapes