Pan And Zoom
Overview
Perfect for RTS’s or any other kind of game where the user has control over the camera, the PanAndZoom extension brings you a wide range of options for manually moving and zooming the camera. Please notice that when using this extension it is advised to not have any camera targets so the camera knows what to follow. If needed, you can always disable the extension temporarily and add/remove the targets at run-time.
Editor
Parameters:
Allow Zoom
: If enabled, the user will be able to manually zoom the cameraMouse Zoom Speed
: The speed at which to zoom when using the mouse wheel (Desktop Only)Pinch Zoom Speed
: The speed at which to zoom when using the pinch gesture (Mobile Only)Zoom Smoothness
: The smoothness of the zoomMax Zoom In Amount
: Represents the maximum amount the camera should zoom inMax Zoom Out Amount
: Represents the maximum amount the camera should zoom outZoom To Input Center
: If enabled, the camera will zoom to the current input position (mouse or touch). If disabled, the camera will zoom to its centerAllow Pan
: If enabled, the user will be able to manually pan the cameraUse Drag Pan
: Pan the camera by dragging the ‘world’Drag Mouse Button
: Which mouse button is used for panningDrag Speed Multiplier
: The speed at which to pan the cameraDraggable Area
: A normalized screen space area where the drag is active. Leave to default to use the whole screenUse Edges Pan
: Pan the camera by moving the mouse to the edges of the screen (Desktop only)Edges Pan Speed
: The speed at which the camera will move when the mouse reaches the edges of the screenTop Pan Edge
: If the mouse pointer goes beyond this edge the camera will start moving upBottom Pan Edges
: If the mouse pointer goes beyond this edge the camera will start moving downLeft Pan Edge
: If the mouse pointer goes beyond this edge the camera will start moving leftRight Pan Edges
: If the mouse pointer goes beyond this edge the camera will start moving right