arcore-unity-extensions icon indicating copy to clipboard operation
arcore-unity-extensions copied to clipboard

Missing steps in codelabs tutorial

Open sadikuar opened this issue 2 years ago • 0 comments

Hello !

I'm new to AR technologies and I've been trying the proposed tutorial in google codelabs (Create an AR game using Unity's AR Foundation.

As I was following the tutorial, I got to the fourth point 4. Perform a hit test against detected planes and was blocked because Android Logcat was showing NullReferenceException in the logs.

My first instinct was to look at the Camera.main since it was notified that it could throw this exception, but nothing of the sort was happening (my GameObject had the Main Camera tag and was correctly instanciated).

I then noticed that the Raycast Manager and Plane Manager were both missing the reference / instance in the Driving Surface Manager inspector.

I should have noticed this earlier, but I think it's not a bad idea to mention in 3. Detect planes in the real world -> "Add a DrivingSurfaceManager component" to add the references / instances in the GameObject inspection panel.

sadikuar avatar Sep 07 '22 11:09 sadikuar