Skip to content

Commit e0c77c5

Browse files
committed
Updated CandyCoded.
1 parent b944af6 commit e0c77c5

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Scripts/ARPlaneEvents.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ public class ARPlaneEvents : MonoBehaviour
3131

3232
private ARPlaneManager _planeManager;
3333

34+
private int? _currentFingerId;
35+
3436
private void Awake()
3537
{
3638

@@ -68,8 +70,9 @@ private void Update()
6870

6971
PlaneUpdated?.Invoke(lookingAtPose, lookingAtPlane);
7072

71-
if (!InputManager.GetInputDown(out var currentFingerId) || EventSystem.current &&
72-
EventSystem.current.IsPointerOverGameObject(currentFingerId))
73+
if (!InputManager.GetInputDown(ref _currentFingerId) || EventSystem.current &&
74+
_currentFingerId.HasValue && EventSystem.current.IsPointerOverGameObject(_currentFingerId.Value))
75+
7376
{
7477
return;
7578
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"description": "Generic components for use with ARFoundation",
88
"license": "MIT",
99
"dependencies": {
10-
"xyz.candycoded.candycoded": "https://github.com/CandyCoded/CandyCoded.git#v3.0.2",
10+
"xyz.candycoded.candycoded": "https://github.com/CandyCoded/CandyCoded.git#v4.0.0",
1111
"com.unity.modules.animation": "1.0.0",
1212
"com.unity.modules.imgui": "1.0.0",
1313
"com.unity.modules.particlesystem": "1.0.0",

0 commit comments

Comments
 (0)