Online Maps v3
Loading...
Searching...
No Matches
OnlineMapsCameraOrbit Class Reference

Implements camera rotation around the map. More...

Inheritance diagram for OnlineMapsCameraOrbit:
IOnlineMapsSavableComponent

Public Member Functions

OnlineMapsSavableItem[] GetSavableItems ()
 Returns an array of items to save.
 
void UpdateCameraPosition ()
 Updates camera position.
 

Public Attributes

Action OnCameraControl
 Called when the rotation has been changed in any way.
 
Action OnChangedByInput
 Called when the rotation has been changed by Input.
 
OnlineMapsCameraAdjust adjustTo = OnlineMapsCameraAdjust.averageCenter
 Point on which the camera is looking.
 
GameObject adjustToGameObject
 GameObject on which the camera is looking.
 
float distance = 1000
 Distance from point to camera.
 
float maxRotationX = 80
 Maximum camera tilt.
 
Vector2 rotation = Vector2.zero
 Camera rotation (X - tilt, Y - pan)
 
Vector2 speed = Vector2.one
 Camera rotation speed.
 
bool lockTilt
 Forbid changing tilt (rotation.x)
 
bool lockPan
 Forbid changing pan (rotation.y)
 

Properties

static OnlineMapsCameraOrbit instance [get]
 Instance.
 

Detailed Description

Implements camera rotation around the map.

Member Function Documentation

◆ GetSavableItems()

OnlineMapsSavableItem[] OnlineMapsCameraOrbit.GetSavableItems ( )

Returns an array of items to save.

Returns
Array of items to save

Implements IOnlineMapsSavableComponent.