Adventure Creator
1.79.1
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2022
|
Public Member Functions | |
GameCameraData () | |
GameCameraData (MainCamera mainCamera) | |
GameCameraData (_Camera _camera) | |
GameCameraData | CreateMix (GameCameraData otherData, float otherDataWeight, bool slerpRotation=false) |
Creates a new class that mixes its values with another class More... | |
Properties | |
Vector3 | position [get] |
Quaternion | rotation [get] |
bool | isOrthographic [get] |
float | fieldOfView [get] |
float | orthographicSize [get] |
float | focalDistance [get] |
bool | is2D [get] |
Vector2 | perspectiveOffset [get] |
This is a container class for the MainCamera's active camera data. This is used to determine the MainCamera's transform and camera data, based on both the active camera, and the transition from the previous camera.
AC.GameCameraData.GameCameraData | ( | ) |
The default Constructor
AC.GameCameraData.GameCameraData | ( | MainCamera | mainCamera | ) |
A Constructor that generates data based on the MainCamera's current state
AC.GameCameraData.GameCameraData | ( | _Camera | _camera | ) |
A Constructor that generates data based on a _Camera's current state
GameCameraData AC.GameCameraData.CreateMix | ( | GameCameraData | otherData, |
float | otherDataWeight, | ||
bool | slerpRotation = false |
||
) |
Creates a new class that mixes its values with another class
otherData | The other data to mix with |
otherDataWeight | The blending weight of the other data |
slerpRotation | If True, rotation is Slerped, not Lerped |
|
get |
The camera's field of view
|
get |
The camera's focal distance
|
get |
If True, the camera is 2D
|
get |
Whether the camera is orthographic or not
|
get |
The camera's orthographic size
|
get |
The camera's perspective offset, if is2D = True
|
get |
The camera position
|
get |
The camera rotation