Unity Editor plugin that let's you mock AR environment for development & testing on your PC using Unity 2021.1 and AR Foundation 4.x
- Import latest unity package from: https://github.com/coder89/arfoundation-mock/releases
- Add mocked trackables using scripts provided in "/Assets/Plugins/Unity.XR.Mock/Editor". See "AR Mock" GameObject in "SampleScene" for reference.
The package is available on the openupm registry. It's recommended to install it via openupm-cli.
openupm add com.unity.xr.mock
Alternatively, you can clone this repository into a location relative to your Unity project and add it as a Package Manager package.
- Clone this repository.
- Open
<UNITY_PROJECT_DIR>/Packages/manifest.json
- Add below line under
dependencies
:
{
"dependencies": {
// ....
// ------- ADD THIS & CHANGE PATH --------
"com.unity.xr.mock": "file:<PATH_TO_ARFOUNCATION_MOCK>/arfoundation-mock/Assets/Plugins/Unity.XR.Mock",
// -------------------------
// ....
},
// ...
}
- Re-open Unity Editor.