googlecodelabs / arcore-intro

Other
12 stars 16 forks source link

ScoreboardController CreateAnchor() function, detectedPlane.CreateAnchor cannot implicitly convert type 'GoogleARCore.Anchor' to UnityEngine.AnchoredJoint2D #13

Closed nhaduong closed 5 years ago

nhaduong commented 5 years ago

Using Unity 2018.2.15f1 64bit and arcore-unity-sdk-v1.5.0

In the ScoreboardController.cs script, CreateAnchor() method, the line anchor = detectedPlane.CreateAnchor ( new Pose (anchorPosition, Quaternion.identity)); raises the error: Cannot implicitly convert type 'GoogleARCore.Anchor' to 'UnityEngine.AnchoredJoint2D'

nhaduong commented 5 years ago

There was a typo with initializing anchor variable where auto-insert did private AnchoredJoint2D anchor instead of private Anchor anchor