Skip to content

Commit 080b3f2

Browse files
authored
Merge pull request #7133 from davidkline-ms/ciFix
Fix WSA player build break
2 parents 726902a + 75a529a commit 080b3f2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Assets/MixedRealityToolkit/Utilities/CameraFOVChecker.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Licensed under the MIT License. See LICENSE in the project root for license information.
33

44
using Microsoft.MixedReality.Toolkit.Utilities;
5+
using System;
56
using System.Collections.Generic;
67
using UnityEngine;
78

@@ -17,7 +18,7 @@ public static class CameraFOVChecker
1718
// Help to clear caches when new frame runs
1819
static private int inFOVConeLastCalculatedFrame = -1;
1920
// Map from grabbable => is the grabbable in FOV for this frame. Cleared every frame
20-
private static Dictionary<(Collider collider, Camera camera), bool> inFOVConeColliderCache = new Dictionary<(Collider collider, Camera camera), bool>();
21+
private static Dictionary<Tuple<Collider, Camera>, bool> inFOVConeColliderCache = new Dictionary<Tuple<Collider, Camera>, bool>();
2122
// List of corners shared across all sphere pointer query instances --
2223
// used to store list of corners for a bounds. Shared and static
2324
// to avoid allocating memory each frame
@@ -37,7 +38,7 @@ public static bool IsInFOVConeCached(this Camera cam,
3738
return false;
3839
}
3940

40-
var cameraColliderPair = (collider: myCollider, camera: cam);
41+
Tuple<Collider, Camera> cameraColliderPair = new Tuple<Collider, Camera>(myCollider, cam);
4142
bool result = false;
4243
if (inFOVConeLastCalculatedFrame != Time.frameCount)
4344
{

0 commit comments

Comments
 (0)