This repository has been archived on 2025-04-28. You can view files and clone it, but cannot push or open issues or pull requests.
ARPlusSystem/ARPlusSystem-250418/Library/PackageCache/com.unity.xr.arcore@4.2.10/Documentation~/upgrade-guide.md

26 lines
1.2 KiB
Markdown
Raw Normal View History

---
uid: arcore-upgrade-guide
---
# Upgrading to ARCore XR Plug-in version 4.2
To upgrade to ARCore XR Plug-in package version 4.2, you need to do the following:
- Update handling of null native ARCore objects.
- Use Unity 2020.3 or newer.
**Update handling of null native ARCore objects**
- The following properties have been deprecated:
- `ArSession.IsNull` => Compare to `null` instead.
- `ArSession.Null` => Use [`default`](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/default) instead.
- `ArConfig.IsNull` => Compare to `null` instead.
- `ArConfig.Null` => Use [`default`](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/default) instead.
- `ArCameraConfig.IsNull` => Compare to `null` instead.
- `ArCameraConfig.Null` => Use [`default`](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/default) instead.
- `ArCameraConfigFilter.IsNull` => Compare to `null` instead.
- `ArCameraConfigFilter.Null` => Use [`default`](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/default) instead.
**Use Unity 2020.3 or newer**
This version of the package requires Unity 2020.3 or newer.