Class RTSCamera
Functionality for moving a camera in an real-time strategy (bird's eye view) fashion. This script should be attached to a gameobject with a camera or a gameobject with a child that has a camera
Inheritance
Namespace: Ride.UI
Assembly: cs.temp.dll.dll
Syntax
public class RTSCamera : MonoBehaviour, ICamera, ITransform
Fields
Name | Description |
---|---|
m_horizontalInputAxis | The name of the axis in the input settings which the same uses for movement along the x axis |
m_isZoomAllowed | True if you want the ability to zoom in and out with the camera |
m_maxPositionBoundary | The largest x, y, z position in world space that the camera can reach |
m_minPositionBoundary | The smallest x, y, z position in world space that the camera can reach |
m_minZoomDistance | The closest the camera can come to the object beneath it before zoom in is disabled |
m_movementSpeed | The panning/zooming speed |
m_verticalInputAxis | The name of the axis in the input settings which the same uses for movement along the z axis |
m_zoomInputAxis | The name of the axis in the input settings which the same uses for movement along the y axis |
Properties
Name | Description |
---|---|
eulerAngles | |
forward | |
localEulerAngles | |
localPosition | |
localRotation | |
position | |
right | |
rotation |
Methods
Name | Description |
---|---|
CaptureScreenshotFromCurrentView(Int32, Int32) | |
ConvertToCoordinates(RideVector3) | |
LookAt(RideVector3) | |
ResetCamera() | |
RotateAround(RideVector3, RideVector3, Single) | |
ScreenPointToRay(RideVector3) | Returns a ray going from the camera through the screen point |
SetActive(Boolean) | |
SetNormalizedWorldPosition(RideVector3, Boolean) |