SCameraManager
Index
Functions Index
void LockCamera (SGameObject owner)
void ReleaseCamera ()
void SetCameraPositionOrientation (SVector position, SQuaternion orientation)
SRay ScreenCoordinatesToRay (SVector screenCoordinates)
SVector ScreenCoordinatesToWorld (SVector screenCoordinates)
SVector WorldCoordinatesToScreen (SVector coordinates)
void ShakeCamera (float magnitude, float time) void ShakeCamera (float amplitude, float frequency, float time)
Properties Index
Properties
IsLocked
bool IsLocked get
Is the Camera locked?
MainCamera
SGameObject MainCamera get
Note, this property is generally read-only. It's position is driven by internal code.
ActiveVirtualCamera
SGameObject ActiveVirtualCamera get
The currently active Cinemachine Virtual Camera game object.
Functions
LockCamera
void LockCamera ()
Calling this function stops the Camera from being controlled by the viewer, and allows us to control it until ReleaseCamera() is called.
ReleaseCamera
void ReleaseCamera ()
Calling this function reverses the LockCamera() call and returns control of the Camera to the viewer.
SetCameraPositionOrientation
void SetCameraPositionOrientation (SVector position, SQuaternion orientation)
Sets the Camera's position and rotation. This function requires the camera to be locked.
ScreenCoordinatesToRay
SRay ScreenCoordinatesToRay (SVector screenCoordinates)
Returns a ray going from camera through a screen point.
ScreenCoordinatesToWorld
SVector ScreenCoordinatesToWorld (SVector screenCoordinates)
Transforms a point from screen space into world space.
WorldCoordinatesToScreen
SVector WorldCoordinatesToScreen (SVector coordinates)
Function Description
ShakeCamera
void ShakeCamera (float magnitude, float time) void ShakeCamera (float amplitude, float frequency, float time)
Function Description
Last updated
Was this helpful?