Upgrade to Google ARCore plug-in 7.0
Upgrade your project to Google ARCore plug-in 7.0.
Google ARCore plug-in 7.0 contains breaking changes which require action to successfully upgrade your project when you upgrade the package from previous versions.
The following sections outline the changes you need to make to your project to use Google ARCore plug-in 7.0.
Depth subsystem is replaced by the point cloud subsystem
Google ARCore plug-in 7.0 removes ARCoreXRDepthSubsystem, ARCoreXRPointCloudSubsystem, and ARCoreLoader.depthSubsystem. These APIs were deprecated in earlier versions. If your project references them, it won't compile.
To upgrade, replace ARCoreXRDepthSubsystem and ARCoreXRPointCloudSubsystem with ARCorePointCloudSubsystem, and replace ARCoreLoader.depthSubsystem with ARCoreLoader.pointCloudSubsystem.
File path-based recording and playback APIs are obsolete
The session recording and playback methods that take a file path were deprecated in version 6.1 and are obsolete in 7.0, so they produce compile errors instead of warnings. If your project uses them, it won't compile.
To upgrade session recording and playback, replace each method with its URI-based equivalent.
| Previous API | Replacement |
|---|---|
ARCoreSessionSubsystem.StartPlayback(string) |
ARCoreSessionSubsystem.StartPlaybackUri(string) |
ARCoreSessionSubsystem.StopPlayback() |
ARCoreSessionSubsystem.StopPlaybackUri() |
ArSession.SetPlaybackDataset(string) |
ArSession.SetPlaybackDatasetUri(string) |
ArRecordingConfig.GetMp4DatasetFilePath(ArSession) |
ArRecordingConfig.GetMp4DatasetUri(ArSession) |
ArRecordingConfig.SetMp4DatasetFilePath(ArSession, string) |
ArRecordingConfig.SetMp4DatasetUri(ArSession, string) |
The URI-based methods take a URI instead of a file path. For more information, refer to Session recording.
Background shader name is obsolete
ARCoreCameraSubsystem.backgroundShaderName is obsolete and produces a compile error instead of a warning. If your project uses it, it won't compile.
To upgrade, use ARCoreCameraSubsystem.backgroundShaderNames instead.