https://github.com/magic-script/magicscriptxrsample
Sample for how to use react-native-xr-client to render ML Anchors
https://github.com/magic-script/magicscriptxrsample
Last synced: 8 months ago
JSON representation
Sample for how to use react-native-xr-client to render ML Anchors
- Host: GitHub
- URL: https://github.com/magic-script/magicscriptxrsample
- Owner: magic-script
- License: apache-2.0
- Created: 2020-02-25T15:38:10.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-05-08T03:23:44.000Z (about 3 years ago)
- Last Synced: 2024-12-25T21:12:21.350Z (over 1 year ago)
- Language: JavaScript
- Size: 134 MB
- Stars: 0
- Watchers: 6
- Forks: 1
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Magic Script XR SDK Sample
This is a sample project that renders persistent Anchors on Android and iOS using the XR SDK.
For details on how to set up this sample from an initial magic-script project template (as create by
the magic-script CLI), see https://github.com/magic-script/react-native-xr-client.
## Setup, Build and Run the XR SDK sample app
1. Make sure you have the [`magic-script-cli`](https://github.com/magic-script/magic-script-cli) installed and you follow the steps in `magic-script-cli` documentation to properly setup your environment for either `iOS` or `Android` (depending on which platform you want to build the project for)
2. Download the XR SDK for Android and/or iOS and drop the libraries in the MLXR folder
- For Android, it should be a file named `XRKit.aar`.
- For iOS, it should be a folder named `MLXR.framework`.
3. To build & run the project, execute below commands in root directory of the project:
- For Android, type `magic-script build android`
- For iOS, type `magic-script build ios`