AR Camera Lite — Unity Asset
AR Camera Lite — Unity Asset that uses Back/Rear Camera & Motion Sensor (Gyroscope or Accelerometer) on the player’s mobile device to display 2D or 3D objects as though they were in the real world. Safety First.
It’s Fast, Markerless, Pseudo Augmented Reality.
Contents
Features of AR Camera Lite
Bring the enchanting Power of Augmented Reality into your amazing Game or App:
- Cross-platform Mobile AR Camera: iOS, Android.
- Covering a Wide Range of Mobile Devices: Such pseudo AR can work on low-budget smartphones.
- No using of other AR Engines like AR Foundation (ARCore, ARKit), Vuforia, etc.
- Device Orientations: Portrait, Landscape.
- Auto Selection of Sensor using Sensor Camera: Gyroscope or Accelerometer.
- Gyroscope Mode: same AR like in the Pokemon GO game (AR mode, not AR+): 3DoF — it can track rotational motion but not translational.
- Accelerometer Mode (horizontal rotation is limited): tilting the phone to the left or right rotates the camera around the Y-axis.
- Instant Launch after granting the camera permission: no need to scan the environment because there is no surface/plane detection.
- Quick Testing in Unity Editor without a Phone through the Right Mouse Button & WASDQE keys.
- Real-Time AR Shadows.
Read more about Top AR Engines for Unity.
Package Contains
- Demo Scene with Cubes.
- Menu Scene with AR Safety Tutorial.
- Camera Feed on Background (docs).
- Sensor Camera (docs).
- Permission Scene with Camera Permission Request using free Native Camera.
- Loading Screen to switch scenes seamlessly.
Check the Map of Unity Assets to choose the product that best suits your needs.
Limitations
Learn Limitations separately for Each Asset included in the package.
Use Cases of AR Camera Lite
AR Shooter (docs).
Tutorial
This tutorial is relevant for AR Camera Lite 5.0+.
Tutorial for the previous version can be found only in the asset folder.
Getting Started with AR Camera Lite
Folders & Files in the package by default:
- Makaka Games.
Steps
If you have any issues with the first launch then just Reach Support with Invoice Number and Get Help.
If you read this tutorial from PDF, first check the latest docs online to get actual information.
- Create New Unity Project with Unity 2022.3.18 & “3D” Template.
- File > Build Settings > iOS or Android > Switch Platform.
- Next Packages must be manually installed with Git & Unity Package Manager:
- Download and import AR Camera Lite into Unity.
- Warning Windows:
- Click “Import” to overwrite the Project Settings with predefined ones.
- Click “Install/Upgrade” for Package Manager Dependencies.
- Click “No” when enabling the backends for the new input system.
- Warning Windows:
- Next Packages are provided with Unity Package Manager, and they are already installed for this Asset by default. If packages are missing (Warning Window did not appear) then install them again with Package Manager (advanced settings enabled: “Pre-release Packages”):
- TextMesh Pro 3.0.8:
- Always Required: Window > TextMeshPro > Import TMP Essential Resources.
- Input System 1.7.0.
- TextMesh Pro 3.0.8:
- Reopen Unity Project.
- Open Scene: Makaka Games > AR > AR Camera Lite > Scenes > Demo.
- Option: Limit the Screen Orientation from Auto (by default) to the Portrait only or Landscape only by indication of appropriate Scene Loading Methods on the corresponding buttons that cause a transition to another scenes. Orientation in the Player Settings is used for the 1st scene in the build.
- Test in the Unity Editor or Build for Mobile.
Useful Article: How to Test iOS App without Developer Account?
First, Use the Text Tutorial Above.
Video Tutorial below was made for the old version of AR Camera Lite, but it can be useful to understand how to transform your own scene into AR.
Testing
ARCameraLite is a Prefab Variant of SensorCamera prefab, so learn its Testing Section.
Tested with Platforms
- iOS on iPhone XS Max.
- Android on Samsung Galaxy A71.
WebGL is not supported because Camera Feed doesn’t support it, while Sensor Camera supports it. In theory, to support WebGL platform you can integrate a 3rd party asset called Device Camera WebGL instead of Camera Feed and make it work, but this combination was not tested.
Support
First, read the latest docs online.
If it didn’t help, get the support.
Changelog
Check the current version of AR Camera Lite on Asset Store.
The latest versions will be added as soon as possible.
5.0:
Improvements:
- Unity 2022.3.18;
- Native Camera 1.4.2;
- Camera Feed on Background 2.0 (docs).
- Sensor Camera 2.1 (docs):
4.3:
Improvements:
- Unity 2021.3.4;
- Native Camera 1.3.3;
- Tutorial on Permission Scene is updated to changes of Android 12 (Samsung).
4.2:
Features:
- Menu Scene with AR Safety Tutorial.
- Event: On Initialized Not In Editor.
Improvements:
- Preventing Camera Rotation in Update() until the Gyro Is Not Initialized.
- Modern Standards of Project Settings (based on New Unity Project).
- Appearing the Demo Scene from the darkness at Start.
- Unity 2021.1.20.
- Native Camera 1.3.0.
4.1:
- Testing Checkboxes:
- Is Gyro Unsupported Not In Editor Test,
- Is Gyro Supported In Editor Test,
- Is Movement WASDQE In Editor Test.
- Testing Vector3: Movement WASDQE Speed.
- Events:
- On Gyro Initialized,
- On Initialized In Editor.
- Native Camera 1.2.9.
4.0:
- Limited Motion with Accelerometer (will be used if the user device has not Gyroscope).
- Editor Testing with Right Mouse Button.
- Using of Native Camera to check Camera Permission before the main scene.
- Unity 2021.1.0.
3.3:
- New Way of Testing in Unity Editor (On Gyro is not supported) with custom positions and rotations of camera. The phone does not need to be connected to the computer.
- Tutorial Texts → TextMesh Pro.
- Unity 2019.3.0.
3.2:
- Optional Flag: “Is Gyro Disabled On Destroy”.
- Optional Unity Event “On Gyro Is Not Supported”.
3.1:
- Unity 2019.1.
3.0:
- Unity 2018.3;
- Fix low FPS in Unity Editor;
- 2 modes with Auto Rotation: Portrait, Landscape.
2.0:
- ARCameraGYRO prefab (with all stuff inside);
- AR Shadows.
- Unity 2017.3.1;
- AR Background → as independent module;
- GyroCameraControl.cs not related with GameWorld GameObject.