Online Maps
v3
|
Implements camera rotation around the map More...
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... | |
Implements camera rotation around the map
OnlineMapsSavableItem [] OnlineMapsCameraOrbit.GetSavableItems | ( | ) |
Returns an array of items to save
Implements IOnlineMapsSavableComponent.
void OnlineMapsCameraOrbit.UpdateCameraPosition | ( | ) |
Updates camera position
OnlineMapsCameraAdjust OnlineMapsCameraOrbit.adjustTo = OnlineMapsCameraAdjust.averageCenter |
Point on which the camera is looking
GameObject OnlineMapsCameraOrbit.adjustToGameObject |
GameObject on which the camera is looking
float OnlineMapsCameraOrbit.distance = 1000 |
Distance from point to camera
bool OnlineMapsCameraOrbit.lockPan |
Forbid changing pan (rotation.y)
bool OnlineMapsCameraOrbit.lockTilt |
Forbid changing tilt (rotation.x)
float OnlineMapsCameraOrbit.maxRotationX = 80 |
Maximum camera tilt
Action OnlineMapsCameraOrbit.OnCameraControl |
Called when the rotation has been changed in any way
Action OnlineMapsCameraOrbit.OnChangedByInput |
Called when the rotation has been changed by Input
Vector2 OnlineMapsCameraOrbit.rotation = Vector2.zero |
Camera rotation (X - tilt, Y - pan)
Vector2 OnlineMapsCameraOrbit.speed = Vector2.one |
Camera rotation speed
|
staticget |
Instance