Skip to content

Sample for how to use react-native-xr-client to render ML Anchors

License

Notifications You must be signed in to change notification settings

magic-script/MagicScriptXRSample

Repository files navigation

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 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

About

Sample for how to use react-native-xr-client to render ML Anchors

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •