Arcore-unity-sdk: Camera.main field return null.

Created on 19 Mar 2018  路  4Comments  路  Source: google-ar/arcore-unity-sdk

Hello.
By calling Camera.main field, I can get the currently enabled Camera class in Unity.
But, in ARCore, always return null.
Would you fix it so that Camera class will be returned when Camera.main is called?
Thanks.

bug fixed in upcoming release

Most helpful comment

Make sure your camera is tagged "MainCamera" in order for Camera.main to find it.
(indeed, example scenes have their camera untagged)
Main camera tag

All 4 comments

Hi, thanks for the report. We'll be looking into it for next releases.

Make sure your camera is tagged "MainCamera" in order for Camera.main to find it.
(indeed, example scenes have their camera untagged)
Main camera tag

@iBicha Thanks, I have applied that.

Hi, this issue has been fixed in ARCore Unity SDK v1.2.0. Feel free to reopen if you still experience the issue.

Was this page helpful?
0 / 5 - 0 ratings