|
Post by metaloxide on Feb 26, 2018 18:30:13 GMT
Hi,
I have a gameObject to drag. While dragging that object, my camera is also dragging. While I'm dragging the object, camera should not move. Just like "Disable Over uGUI section". How can I do that?
|
|
|
Post by Luís Pedro Fonseca on Feb 26, 2018 18:39:43 GMT
Hi,
While dragging the object simply disable the extension. Something like:
ProCamera2D.Instance.GetComponent<ProCamera2DPanAndZoom.cs>().enabled = false;
|
|
|
Post by metaloxide on Feb 27, 2018 5:34:31 GMT
Hi, While dragging the object simply disable the extension. Something like: ProCamera2D.Instance.GetComponent<ProCamera2DPanAndZoom.cs>().enabled = false; It worked! Thanks a bunch.
|
|
tb
New Member
Posts: 1
|
Post by tb on Apr 30, 2021 15:06:27 GMT
Hi.
Sorry to resurrect this old post - but I have the same prob and I am not quite sure how and where to implement the offered solution.
ProCamera2D.Instance.GetComponent<ProCamera2DPanAndZoom.cs>().enabled = false;
In which script would this go?
Could you please elaborate a little?
Thanks and sorry for newbie-question, TB
|
|