Online Maps  v3
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 More...
 
void UpdateCameraPosition ()
 Updates camera position More...
 

Public Attributes

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

Properties

static OnlineMapsCameraOrbit instance [get]
 Instance More...
 

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.

◆ UpdateCameraPosition()

void OnlineMapsCameraOrbit.UpdateCameraPosition ( )

Updates camera position

Member Data Documentation

◆ adjustTo

OnlineMapsCameraAdjust OnlineMapsCameraOrbit.adjustTo = OnlineMapsCameraAdjust.averageCenter

Point on which the camera is looking

◆ adjustToGameObject

GameObject OnlineMapsCameraOrbit.adjustToGameObject

GameObject on which the camera is looking

◆ distance

float OnlineMapsCameraOrbit.distance = 1000

Distance from point to camera

◆ lockPan

bool OnlineMapsCameraOrbit.lockPan

Forbid changing pan (rotation.y)

◆ lockTilt

bool OnlineMapsCameraOrbit.lockTilt

Forbid changing tilt (rotation.x)

◆ maxRotationX

float OnlineMapsCameraOrbit.maxRotationX = 80

Maximum camera tilt

◆ OnCameraControl

Action OnlineMapsCameraOrbit.OnCameraControl

Called when the rotation has been changed in any way

◆ OnChangedByInput

Action OnlineMapsCameraOrbit.OnChangedByInput

Called when the rotation has been changed by Input

◆ rotation

Vector2 OnlineMapsCameraOrbit.rotation = Vector2.zero

Camera rotation (X - tilt, Y - pan)

◆ speed

Vector2 OnlineMapsCameraOrbit.speed = Vector2.one

Camera rotation speed

Property Documentation

◆ instance

OnlineMapsCameraOrbit OnlineMapsCameraOrbit.instance
staticget

Instance