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

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...
 

Public Attributes

BackgroundImage backgroundImage
 
bool isActiveEditor = false
 
Vector2 perspectiveOffset = Vector2.zero
 
- Public Attributes inherited from AC._Camera
bool targetIsPlayer = true
 
Transform target
 
bool isDragControlled = false
 
float focalDistance = 10f
 

Additional Inherited Members

- Protected Member Functions inherited from AC._Camera
virtual void Awake ()
 
virtual void Start ()
 
Vector3 PositionRelativeToCamera (Vector3 _position)
 
Vector3 RightVector ()
 
Vector3 ForwardVector ()
 
float ConstrainAxis (float desired, Vector2 range)
 
- Protected Attributes inherited from AC._Camera
Vector2 inputMovement
 
- Properties inherited from AC._Camera
bool isFor2D [get, set]
 
Vector3 TargetForward [get]
 
Transform Target [get]
 
Camera Camera [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 ( )
virtual

Gets the actual horizontal and vertical panning offsets.

Returns
The actual horizontal and vertical panning offsets

Reimplemented from AC._Camera.

◆ MoveCameraInstant()

override void AC.GameCamera25D.MoveCameraInstant ( )
virtual

Moves the camera instantly to its destination.

Reimplemented from AC._Camera.

◆ ResetTarget()

new void AC.GameCamera25D.ResetTarget ( )
virtual

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 = Vector2.zero

The offset in perspective from the camera's centre