![]() |
Adventure Creator
1.76.2
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2022
|
Public Member Functions | |
void | SetActiveBackground () |
new void | ResetTarget () |
override Vector2 | GetPerspectiveOffset () |
Gets the actual horizontal and vertical panning offsets. More... | |
override void | MoveCameraInstant () |
void | UpdateCameraSnap () |
![]() | |
virtual Vector2 | CreateRotationOffset () |
Returns a vector by which to tweak the camera's rotation. The x-axis will control the spin, and the y-axis will control the pitch. More... | |
virtual void | SwitchTarget (Transform _target) |
Switches the camera's target. More... | |
virtual bool | Is2D () |
Checks if the camera is for 2D games. This is necessary for working out if the MainCamera needs to change its projection matrix. More... | |
virtual void | _Update () |
void | SetSplitScreen () |
void | RemoveSplitScreen () |
bool | IsActive () |
Checks if the Camera is currently the MainCamera's active camera (attachedCamera) More... | |
void | MakeActive () |
Public Attributes | |
BackgroundImage | backgroundImage |
bool | isActiveEditor = false |
Vector2 | perspectiveOffset = Vector2.zero |
![]() | |
bool | targetIsPlayer = true |
Transform | target |
bool | isDragControlled = false |
float | focalDistance = 10f |
Protected Member Functions | |
void | SetProjection () |
void | LocalMakeActive () |
![]() | |
virtual void | Awake () |
virtual void | OnEnable () |
virtual void | Start () |
virtual void | OnDisable () |
Vector3 | PositionRelativeToCamera (Vector3 _position) |
Vector3 | RightVector () |
Vector3 | ForwardVector () |
float | ConstrainAxis (float desired, Vector2 range, bool isAngle=false) |
Additional Inherited Members | |
![]() | |
Char | targetChar |
Camera | _camera |
Vector2 | inputMovement |
bool | is2D = false |
![]() | |
Transform | Target [get] |
Transform | CameraTransform [get] |
Transform | Transform [get] |
Camera | Camera [get] |
bool | isFor2D [get, set] |
virtual TransparencySortMode | TransparencySortMode [get] |
Vector3 | TargetForward [get] |
virtual bool | CursorOffsetForcesTranslation [get] |
A fixed camera that allows for a BackgroundImage to be displayed underneath all scene objects.
|
virtual |
Gets the actual horizontal and vertical panning offsets.
Reimplemented from AC._Camera.
|
virtual |
Moves the camera instantly to its destination.
Reimplemented from AC._Camera.
|
virtual |
Auto-assigns "target" as the Player prefab Transform if targetIsPlayer = True.
Reimplemented from AC._Camera.
void AC.GameCamera25D.SetActiveBackground | ( | ) |
Enables the assigned backgroundImage, disables all other BackgroundImage objects, and ensures MainCamera can view it.
BackgroundImage AC.GameCamera25D.backgroundImage |
The BackgroundImage to display underneath all scene objects.
bool AC.GameCamera25D.isActiveEditor = false |
If True, then the MainCamera will copy its position when the Inspector is viewed
Vector2 AC.GameCamera25D.perspectiveOffset = Vector2.zero |
The offset in perspective from the camera's centre