File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,8 @@ public class ARPlaneEvents : MonoBehaviour
31
31
32
32
private ARPlaneManager _planeManager ;
33
33
34
+ private int ? _currentFingerId ;
35
+
34
36
private void Awake ( )
35
37
{
36
38
@@ -68,8 +70,9 @@ private void Update()
68
70
69
71
PlaneUpdated ? . Invoke ( lookingAtPose , lookingAtPlane ) ;
70
72
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
+
73
76
{
74
77
return ;
75
78
}
Original file line number Diff line number Diff line change 7
7
"description" : " Generic components for use with ARFoundation" ,
8
8
"license" : " MIT" ,
9
9
"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 " ,
11
11
"com.unity.modules.animation" : " 1.0.0" ,
12
12
"com.unity.modules.imgui" : " 1.0.0" ,
13
13
"com.unity.modules.particlesystem" : " 1.0.0" ,
You can’t perform that action at this time.
0 commit comments