Table of Contents

Class CinematicCamera

Namespace
FishMMO.Client
Assembly
FishMMO.Client.dll

CinematicCamera moves the camera along a spline path for cinematic effects.

public class CinematicCamera : MonoBehaviour
Inheritance
Object
Component
Behaviour
MonoBehaviour
CinematicCamera
Inherited Members
MonoBehaviour.IsInvoking()
MonoBehaviour.CancelInvoke()
MonoBehaviour.StopCoroutine(Coroutine)
MonoBehaviour.StopAllCoroutines()
MonoBehaviour.destroyCancellationToken
MonoBehaviour.useGUILayout
MonoBehaviour.didStart
MonoBehaviour.didAwake
MonoBehaviour.runInEditMode
Behaviour.enabled
Behaviour.isActiveAndEnabled
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponentsInParent<T>()
Component.GetComponents<T>()
Component.GetComponentIndex()
Component.CompareTag(TagHandle)
Component.transform
Component.transformHandle
Component.gameObject
Component.tag
Object.GetEntityId()
Object.GetInstanceID()
Object.GetHashCode()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Scene)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Object.FindObjectsByType<T>()
Object.FindObjectsByType<T>(FindObjectsInactive)
Object.ToString()
Object.name
Object.hideFlags

Fields

LookAtTarget

Optional target for the camera to look at. If set, camera rotates towards this target.

[Tooltip("An optional target to look at. The camera will rotate towards this target.")]
public Transform LookAtTarget

Field Value

Transform

RotationSmoothStart

Normalized point (0-1) on the spline where rotation smoothing stops being applied.

[Tooltip("Point on the spline where rotation smoothing will stop being applied. (0-1)")]
public float RotationSmoothStart

Field Value

float

RotationSmoothStrength

Strength of the smoothing applied to the camera's rotation.

[Tooltip("The strength of the smoothing applied to the rotation.")]
public float RotationSmoothStrength

Field Value

float

SpeedInUnitsPerSecond

Speed at which the camera moves along the spline, in units per second.

[Tooltip("Speed at which to move along the spline in units per second.")]
public float SpeedInUnitsPerSecond

Field Value

float

SplineContainer

Container holding the spline path for the cinematic camera movement.

public SplineContainer SplineContainer

Field Value

SplineContainer

Methods

MoveToNextWaypoint(Action, bool)

Coroutine to move the camera along the spline to the next waypoint.

public IEnumerator MoveToNextWaypoint(Action onComplete, bool allowInputSkip = false)

Parameters

onComplete Action

Callback invoked when movement is finished.

allowInputSkip bool

If true, allows user input to skip to the end.

Returns

IEnumerator

Coroutine enumerator.

Reset()

Resets the camera's progress along the spline to the start.

public void Reset()