Unity-Technologies / arfoundation-demos

AR Foundation demo projects
Other
496 stars 130 forks source link

Found a potential typo in ImageTracking demo's code #51

Closed Kyle0936 closed 2 years ago

Kyle0936 commented 3 years ago

ImageTrackingObjectManager.cs

Found a potential typo on line 158: else if (image.referenceImage.guid == s_FirstImageGUID)

It should be else if (image.referenceImage.guid == s_SecondImageGUID) to match the second image's guid instead of the first image's.

DanMillerDev commented 2 years ago

Good catch, thanks for the report. I've changed the line and pushed an update. https://github.com/Unity-Technologies/arfoundation-demos/commit/e621654cf94bdc4f012693a1573c74434eb8d0d8