A comprehensive XR training application built with Unity that demonstrates the capabilities of the AbxrLib SDK. This demo showcases interactive AR/VR experiences with object manipulation, spatial interactions, and immersive training scenarios.
This Unity project serves as a training demonstration for the AbxrLib SDK, featuring:
- Interactive 3D object manipulation
- Spatial AR/VR interactions
- Training scenarios with grabbable objects
- Particle effects and visual feedback
- Cross-platform XR support (Android, WebGL, and more)
The project includes various prefabs, scenes, and scripts that demonstrate best practices for XR development using the AbxrLib framework.
- Unity 2022.3 LTS or later
- AbxrLib SDK installed
- XR-compatible device (for testing)
- Install Unity: Download and install Unity 2022.3 LTS from unity.com
- Install AbxrLib SDK:
git clone https://github.com/ArborXR/abxrlib-for-unity.git
- Open the Project: Launch Unity and open this project folder
- Configure XR Settings: Ensure your XR settings are properly configured in Project Settings
-
In Unity Editor:
- Open the
TrainingDemo.unity
scene from the Scenes folder - Press the Play button to test in the Unity Editor
- Use XR simulation tools if available
- Open the
-
Build and Deploy:
- Go to File → Build Settings
- Select your target platform (Android, WebGL, etc.)
- Click "Build and Run" to deploy to your device
-
Android Deployment:
# Build APK for Android # Use Unity's Build Settings to create an APK # Deploy to Android device via ADB or direct installation
-
Scene Testing:
- Open
Assets/Scenes/TrainingDemo.unity
- Test object interactions and XR functionality
- Verify particle effects and audio feedback
- Open
-
Script Testing:
- Run the project in Play mode
- Test grabbable objects and interaction systems
- Verify UI elements and feedback systems
-
Unit Tests (if available):
# Run Unity Test Runner # Window → General → Test Runner # Execute Play Mode and Edit Mode tests
-
Performance Testing:
- Use Unity Profiler to monitor performance
- Test on target devices for frame rate analysis
- Verify memory usage and optimization
-
XR Device Testing:
- Deploy to actual XR hardware
- Test spatial tracking and hand interactions
- Verify cross-platform compatibility
-
Platform Testing:
- Test on Android devices
- Test WebGL builds in browsers
- Verify platform-specific features
- Object grabbing and manipulation works correctly
- Particle effects trigger appropriately
- Audio feedback plays on interactions
- UI elements respond to user input
- Scene transitions work smoothly
- Performance is acceptable on target devices
For common issues and solutions, refer to the TROUBLESHOOTING.md
file in the project root.
- AbxrLib SDK: Core XR functionality
- Unity XR Interaction Toolkit: XR interaction systems
- Unity TextMeshPro: UI text rendering
- Unity Input System: Input handling