Class MousePointToImagePointController
This script controls camera view in Statistics panel. This enabled dragging and zooming on camera render texture.
Inheritance
System.Object
MousePointToImagePointController
Namespace: Marus.StatisticsUI
Assembly: cs.temp.dll.dll
Syntax
public class MousePointToImagePointController : MonoBehaviour
Fields
MovementSpeed
Speed of movement when dragging
Declaration
public float MovementSpeed
Field Value
Type | Description |
---|---|
System.Single |
topDownCamera
Reference to camera
Declaration
public Camera topDownCamera
Field Value
Type | Description |
---|---|
Camera |
ZoomScale
Zoom scale for controlling zoom sensitivity
Declaration
public float ZoomScale
Field Value
Type | Description |
---|---|
System.Single |
Methods
Focus(Vector3)
Declaration
public void Focus(Vector3 position)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | position |
Focus(Vector3, Single)
Declaration
public void Focus(Vector3 position, float orthographicSize)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | position | |
System.Single | orthographicSize |