@galacean/engine-toolkit-xr
v1.3.9
Published
## Feature
Downloads
46
Maintainers
Keywords
Readme
XR
Feature
This tool is for use by Galatian Editor
.
npm
The XR
is published on npm with full typing support. To install, use:
$ npm install @galacean/engine-toolkit-xr
This will allow you to import package entirely using:
import { XROrigin, XRPlaneManager } from "@galacean/engine-toolkit-xr";
Usage
// Initialize engine and `XRDevice`.
const engine = await WebGLEngine.create({ canvas: "canvas", xrDevice: new WebXRDevice()});
// ……
// Add Component
entity.addComponent(XROrigin);
entity.addComponent(XRAnchorManager);
entity.addComponent(XRImageManager);
entity.addComponent(XRPlaneManager);
Links
License
The engine is released under the MIT license. See LICENSE file.