Table of Contents

Class CameraControl

Namespace
AO
Assembly
CoreAssembly.dll

API for taking control of the camera. Default camera behaviour does the following in LateUpdate(): Position = local character position + (0, 0.5)

public class CameraControl
Inheritance
CameraControl
Inherited Members
Extension Methods

Properties

AmbientColour

public Vector3 AmbientColour { get; set; }

Property Value

Vector3

ControlLevel

public int ControlLevel { get; set; }

Property Value

int

Position

public Vector2 Position { get; set; }

Property Value

Vector2

ShakeDuration

public float ShakeDuration { get; set; }

Property Value

float

ShakeDurationLeft

public float ShakeDurationLeft { get; set; }

Property Value

float

ShakeIntensity

public float ShakeIntensity { get; set; }

Property Value

float

ShakeOffset

public Vector2 ShakeOffset { get; set; }

Property Value

Vector2

Zoom

public float Zoom { get; set; }

Property Value

float

Methods

CancelShake()

Cancel the camera shake immediately

public void CancelShake()

Create(int)

public static CameraControl Create(int controlLevel)

Parameters

controlLevel int

Returns

CameraControl

Destroy()

Release control of the camera to the next CameraControl in priority or back to the default behaviour.

public void Destroy()

GetCurrent()

public static CameraControl GetCurrent()

Returns

CameraControl

SetPostProcessor(Action<CameraControl>)

public void SetPostProcessor(Action<CameraControl> processor)

Parameters

processor Action<CameraControl>

Shake(float, float)

Shake the camera. The shake will last the entire duration (unless canceled). The intensity is eased like so: for the first half of the shake, with "out cubic" reaching the max at 1/2 the duration the second half will ease back to 0 with "in out quad"

public void Shake(float intensity, float duration)

Parameters

intensity float
duration float