Skip to content

Commit 9247e43

Browse files
added warning if no main camera was found by name
1 parent 9f65ad1 commit 9247e43

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Assets/MixedRealityToolkit/_Core/Utilities/CameraCache.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public static Camera Main
4848
// If we still didn't find it, just set the first camera.
4949
if (mainCamera == null)
5050
{
51+
Debug.LogWarning($"No main camera found. The Mixed Reality Toolkit used {cameras[0].name} as your main.");
5152
mainCamera = Refresh(cameras[0]);
5253
}
5354

0 commit comments

Comments
 (0)