|
Post by zmeinaz on Mar 24, 2019 17:12:41 GMT
I'm looking for a way to set the camera distance from an object to a known value. I have a scene were the user can zoom and pan around a bunch of objects, but when the user clicks on one of the objects I want the camera to smoothly zoom to a set distance from the object, if the user zooms or clicks off the object the pan zoom controller should behave like normal. Any thoughts on how to accomplish this?
|
|
|
Post by Luís Pedro Fonseca on Mar 25, 2019 23:23:27 GMT
Hi zmeinaz, For that you can use the "UpdateScreenSize" on the core component of ProCamera2D. You simply pass a size (in world units) and a duration for the transition. Let me know if that helped.
|
|