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
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 }
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments