CameraContext


Declaration

[Serializable]
public sealed class CameraContext

Description

A context object that represents a camera's state.

Properties

rotationModifiersModifiers that alter the camera rotation.
positionModifiersModifiers that alter the camera position.
trackingModifiersModifiers that alter the tracking point.
rotationOverrideOverrides the camera's rotation to the specified value.
positionOverrideOverrides the camera's position to the specified value.
lookRotationThe look rotation of the camera expressed as a quaternion.
modifiedRotationThe look rotation of the camera with modifiers applied (Read only).
trackingPointThe position the camera is tracking.
modifiedTrackingPointThe position the camera is tracking with modifiers applied (Read only).
distanceThe distance between the camera and the pivot point while factoring in occlusion and the min and max distance (Read only).
distanceOffsetThe distance vector between the camera and the pivot point while factoring in occlusion and the min and max distance (Read only).
minDistanceThe minimum distance the camera can be from the pivot point.
maxDistanceThe maximum distance the camera can be from the pivot point.
pivotDistanceThe intended distance between the camera and the pivot point.
occlusionDistanceThe amount of distance the camera is adjusted due to occlusion.

Methods

GetTransformCalculates the camera position and rotation from the context values.
GetUnmodifiedTransformCalculates the camera position and rotation from the context values without applying any modifiers or overrides.
ResetOverridesResets any position or rotation overrides applied during the last frame.