AFRAME Globals

Note: This documentation is for the old 0.3.0 version of A-Frame. Check out the documentation for the current 0.7.0 version

A-Frame exposes its public interface through the window.AFRAME browser global. This same interface is also exposed if requiring with Node (require('aframe')).

AFRAME Properties

Property Description
AEntity Entity prototype.
ANode Base node prototype that A-Frame elements inherit from.
AScene Scene prototype.
components Object of registered components.
geometries Object of registered geometries .
primitives.primitives Object of registered primitives.
registerComponent Function to register a component.
registerElement A flavor of document.registerElement for A-Frame nodes calls parent prototype handlers before child ones. The base class of A-Frame elements. Also see registerPrimitive for registering an A-Frame elements similar to <a-box>.
registerGeometry Function to register a geometry.
registerPrimitive Function to register a primitive.
registerShader Function to register a material or shader.
schema Schema-related utilities.
shaders Object of registered shaders.
systems Object of registered systems.
THREE Global three.js object.
TWEEN Global tween.js object.
utils A-Frame utility modules.
version Version of A-Frame build.

window Properties

Property Description
AFRAME The object described above.
hasNativeWebVRImplementation Whether the client has native WebVR support.