Adventure Creator  1.76.2
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2022
AC.GameCamera25D Class Reference
Inheritance diagram for AC.GameCamera25D:

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 ()
- Public Member Functions inherited from AC._Camera
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 =
- Public Attributes inherited from AC._Camera
bool targetIsPlayer = true
Transform target
bool isDragControlled = false
float focalDistance = 10f

Protected Member Functions

void SetProjection ()
void LocalMakeActive ()
- Protected Member Functions inherited from AC._Camera
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

- Protected Attributes inherited from AC._Camera
Char targetChar
Camera _camera
Vector2 inputMovement
bool is2D = false
- Properties inherited from AC._Camera
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]

Detailed Description

A fixed camera that allows for a BackgroundImage to be displayed underneath all scene objects.

Member Function Documentation

◆ GetPerspectiveOffset()

override Vector2 AC.GameCamera25D.GetPerspectiveOffset ( )

Gets the actual horizontal and vertical panning offsets.

The actual horizontal and vertical panning offsets

Reimplemented from AC._Camera.

◆ MoveCameraInstant()

override void AC.GameCamera25D.MoveCameraInstant ( )

Moves the camera instantly to its destination.

Reimplemented from AC._Camera.

◆ ResetTarget()

new void AC.GameCamera25D.ResetTarget ( )

Auto-assigns "target" as the Player prefab Transform if targetIsPlayer = True.

Reimplemented from AC._Camera.

◆ SetActiveBackground()

void AC.GameCamera25D.SetActiveBackground ( )

Enables the assigned backgroundImage, disables all other BackgroundImage objects, and ensures MainCamera can view it.

Member Data Documentation

◆ backgroundImage

BackgroundImage AC.GameCamera25D.backgroundImage

The BackgroundImage to display underneath all scene objects.

◆ isActiveEditor

bool AC.GameCamera25D.isActiveEditor = false

If True, then the MainCamera will copy its position when the Inspector is viewed

◆ perspectiveOffset

Vector2 AC.GameCamera25D.perspectiveOffset =

The offset in perspective from the camera's centre