|
Post by 3dlunatic on Oct 20, 2020 3:31:21 GMT
I'm using only the Pan and Zoom extension. Center target on start is disabled, and I don't have any camera targets. During runtime, the extension creates a target automatically, called PC2DPanTarget. Unfortunately, this target gets reset to the initial position after each drag or zoom, so whenever I want to drag or zoom again, it snaps me back to the initial position. How do I stop the PC2DPanTarget from snapping back whenever a new pan (drag) or zoom is executed? It happens at the start of each new pan or zoom attempt. Thank you for your help.
|
|
|
Post by Luís Pedro Fonseca on Oct 20, 2020 8:58:36 GMT
Hi 3dlunatic, that's a weird issue. Does the included PanAndZoom demo scene work correctly? Can you see any difference between that setup and yours?
|
|
|
Post by 3dlunatic on Oct 20, 2020 15:21:57 GMT
Thank you for replying, Luis. The demo scene works correctly. The difference is that I use the XZ plane (looking down) and the demo scene uses the XY plane. Also, I have PlayMaker installed, although it doesn't do anything yet, no actions were created yet. I made a short video (2.5 minutes) to show you my scene and the parameters for Pro Camera 2D and my hierarchy, as well as the behaviour of snapping back to the starting point. Please watch it here to help me overcome this problem: youtu.be/wcbGx-lS_K4Thank you kindly for your help.
|
|
|
Post by Luís Pedro Fonseca on Oct 20, 2020 16:07:44 GMT
3dlunatic Thanks for the video. I can see you have a "Simple Camera Controller" script on your camera GameObject. I'd say that's probably what's interfering with Pro Camera 2D. If not, I'll have to look into it and see if I can reproduce the error locally.
|
|
|
Post by 3dlunatic on Oct 20, 2020 19:50:43 GMT
That was exactly it! I am using URP for the first time, and I started my scene by duplicating the demo scene that comes with the Universal Render Pipeline and deleting things I didn't want. However, I didn't notice the script on the camera. Now after I deleted it, everything works great. Thank you for your help, and for your excellent product!
|
|