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
ControlLevel
public int ControlLevel { get; set; }
Property Value
Position
public Vector2 Position { get; set; }
Property Value
ShakeDuration
public float ShakeDuration { get; set; }
Property Value
ShakeDurationLeft
public float ShakeDurationLeft { get; set; }
Property Value
ShakeIntensity
public float ShakeIntensity { get; set; }
Property Value
ShakeOffset
public Vector2 ShakeOffset { get; set; }
Property Value
Zoom
public float Zoom { get; set; }
Property Value
Methods
CancelShake()
Cancel the camera shake immediately
public void CancelShake()
Create(int)
public static CameraControl Create(int controlLevel)
Parameters
controlLevel
int
Returns
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
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)