- Home /
Cannot implicitly convert type `UICamera.MouseOrTouch' to `UnityEngine.Vector3'
private Vector3 startpoint;
error in line:
startpoint = UICamera.currentTouch;
Comment
I'm not sure anyone can tell you anything more than the error message already does.... UICamera.currentTouch
is a $$anonymous$$ouseOrTouch
. You're trying to assign it to startpoint
, which is a Vector3
.
oh got it... I just don't know how to modify my camera pan script to work with UICamera.currentTouch (and maybe lastTouchPosition). Have any solutions?
it doesn't post comment with code so please check it here
Your answer
![](https://koobas.hobune.stream/wayback/20220613153904im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Trying to delay movement of a GameObject 1 Answer
How to use both NGUI widgets and unity UI 0 Answers
Is unity gui good to use 2 Answers
Vector3 wont move to right position 0 Answers
Use Unity UI For 2D Games Or Custom Objects Instead? 2 Answers