altspace

altspace. altspace

The altspace component makes A-Frame apps compatible with AltspaceVR.

Note: If you use the embedded A-Frame component on your scene, you must include it before the altspace component, or your app will silently fail.

Properties:
Name Type Default Description
usePixelScale boolean `false`

Allows you to use A-Frame units as CSS pixels. This is the default behavior for three.js apps, but not for A-Frame apps.

verticalAlign string `middle`

Puts the origin at the bottom, middle (default), or top of the Altspace enclosure.

enclosuresOnly boolean `true`

Prevents the scene from being created if enclosure is flat.

fullspace boolean `false`

Puts the app into fullspace mode.

Example

<head>
  <title>My A-Frame Scene</title>
  <script src="https://aframe.io/releases/0.3.0/aframe.min.js"></script>
  <script src="https://cdn.rawgit.com/AltspaceVR/aframe-altspace-component/vAFRAME_ALTSPACE_VERSION/dist/aframe-altspace-component.min.js"></script>
</head>
<body>
  <a-scene altspace>
    <a-entity geometry="primitive: box" material="color: #C03546"></a-entity>
  </a-scene>
</body>