|
Adventure Creator 1.85.1
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2025
|
Public Member Functions | |
| void | SetActiveBackground () |
| new void | ResetTarget () |
| override Vector2 | GetPerspectiveOffset () |
| Gets the actual horizontal and vertical panning offsets. | |
| 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. | |
| virtual void | SwitchTarget (Transform _target) |
| Switches the camera's target. | |
| 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. | |
| virtual void | _Update () |
| void | SetSplitScreen () |
| void | RemoveSplitScreen () |
| bool | IsActive () |
| Checks if the Camera is currently the MainCamera's active camera (attachedCamera) | |
| void | MakeActive () |
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 |
| bool | updateWhilePaused = false |
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] |
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