2121
2222[ <img alt =" Get ARCore Depth Lab on Google Play " height =" 50px " src =" https://play.google.com/intl/en_us/badges/images/apps/en-play-badge-border.png " />] ( https://play.google.com/store/apps/details?id=com.google.ar.unity.arcore_depth_lab )
2323
24- ## Sample Features
24+ ## Sample features
2525
2626The sample scenes demonstrate three different ways to access depth:
2727
@@ -45,17 +45,26 @@ coordinates (CPU).
4545 * Environment relighting
4646 * False-color depth map
4747
48- ## Building and Running Samples
49- These samples target [ Unity 2018.4.16f1] ( https://unity3d.com ) and require
50- [ ARCore SDK for Unity] ( https://github.com/google-ar/arcore-unity-sdk ) v1.18.0 or
51- newer. Download and import
48+ ## Unity project setup
49+ These samples target [ ** Unity 2018.4.16f1** ] ( https://unity3d.com ) and require
50+ [ ** ARCore SDK for Unity** ] ( https://github.com/google-ar/arcore-unity-sdk )
51+ ** v1.18.0 ** or newer. Download and import
5252[ ` arcore-unity-sdk-1.18.0.unitypackage ` ] ( https://github.com/google-ar/arcore-unity-sdk/releases )
5353or newer into the sample project. Close and reopen the project and reimport all
5454demo shaders to resolve any dependency issues in the Unity editor. This project
5555only builds with the Build Platform ** Android** . ** Instant Preview** is not
5656enabled for Depth API yet. Build the project to an Android device instead of
5757using the ** Play** button in the Unity editor.
5858
59+ In ** Unity 2019 or newer** you may see code errors associated with
60+ ` SpatialTracking ` , ` NetworkBehaviour ` , and scripts in
61+ ` Assets/GoogleARCore/* ` . In ` Unity > Window > Package Manager ` add the following
62+ packages to resolve the issue:
63+
64+ * ** Multiplayer HLAPI** (com.unity.multiplayer-hlapi)
65+ * ** XR Legacy Input Helpers** (com.unity.xr.legacyinputhelpers)
66+
67+ ## Building samples
5968Individual scenes can be built and run by just enabling a particular scene, e.g.
6069` FogEffect ` to try out the depth-aware fog filter.
6170
@@ -81,7 +90,7 @@ Assets/ARRealismDemos/DepthEffects/Scenes/DepthOfFieldEffect.unity
8190Assets/ARRealismDemos/CollisionDetection/Scenes/CollisionAwareObjectPlacement.unity
8291Assets/ARRealismDemos/Water/Scenes/Water.unity`
8392
84- ## Upcoming breaking change affecting previously published 32-bit-only apps
93+ ## Upcoming breaking change affecting 32-bit-only apps
8594
8695The project is set up to use the ` IL2CPP ` scripting backend instead of ` Mono ` to
8796build an ` ARM64 ` app. You may be prompted to locate the Android NDK folder.
@@ -101,7 +110,7 @@ may crash when attempting to start an augmented reality (AR) session.
101110To learn more about this breaking change, and for instructions on how to update
102111your app, see https://developers.google.com/ar/64bit .
103112
104- ## Sample Project Structure
113+ ## Sample project structure
105114
106115The main sample assets are placed inside the ` Assets/ARRealismDemos ` folder.
107116Each subfolder contains sample features or helper components.
@@ -203,7 +212,7 @@ environment.
203212This sample uses a modified GPU occlusion shader to create a
204213flooding effect with artificial water in the physical environment.
205214
206- ## Developing your own ARCore Depth-enabled Unity Experiences
215+ ## Developing your own ARCore Depth-enabled Unity experiences
207216Please make sure that the Unity scene is properly set up to run ARCore. Provide
208217depth data by attaching the ` ARCoreSession ` to the appropriate configuration.
209218Please see the example provided in the
@@ -224,7 +233,7 @@ customized in the editor when `DepthSource` is explicitly placed in the scene.
224233the ` DepthTarget ` script is attached to a ` GameObject ` with a ` Meshrenderer `
225234component.
226235
227- ## Helper Classes
236+ ## Helper classes
228237
229238### ` DepthSource `
230239A singleton instance of this class contains references to the CPU array and GPU
@@ -242,7 +251,7 @@ scene in order for `DepthSource` to provide depth data.
242251This class contains low-level operations and access to the depth data. It should
243252only be use by advanced developers.
244253
245- ## User Privacy Requirements
254+ ## User privacy requirements
246255
247256You must prominently disclose the use of Google Play Services for AR (ARCore)
248257and how it collects and processes data in your application. This information
@@ -266,7 +275,7 @@ If you use ARCore Depth Lab in your research, please reference it as:
266275 series = {UIST},
267276 }
268277
269- ## Additional Information
278+ ## Additional information
270279
271280You may use this software under the
272281[ Apache 2.0 License] ( https://github.com/googlesamples/arcore-depth-lab/blob/master/LICENSE ) .
0 commit comments