Class CinemachineConfiner
An add-on module for Cinemachine Virtual Camera that post-processes the final position of the virtual camera. It will confine the virtual camera's position to the volume specified in the Bounding Volume field.
Inheritance
Inherited Members
Namespace: Cinemachine
Assembly: solution.dll
Syntax
[DocumentationSorting(DocumentationSortingAttribute.Level.UserRef)]
[AddComponentMenu("")]
[ExecuteInEditMode]
public class CinemachineConfiner : CinemachineExtension
Fields
Name | Description |
---|---|
m_BoundingShape2D | The 2D shape within which the camera is to be contained. |
m_BoundingVolume | The volume within which the camera is to be contained. |
m_ConfineMode | The confiner can operate using a 2D bounding shape or a 3D bounding volume |
m_ConfineScreenEdges | If camera is orthographic, screen edges will be confined to the volume. |
m_Damping | How gradually to return the camera to the bounding volume if it goes beyond the borders |
Properties
Name | Description |
---|---|
IsValid | Check if the bounding volume is defined |
Methods
Name | Description |
---|---|
CameraWasDisplaced(CinemachineVirtualCameraBase) | See whether the virtual camera has been moved by the confiner |
ConnectToVcam(bool) | Connect to virtual camera. Implementation must be safe to be called redundantly. Override implementations must call this base implementation |
GetCameraDisplacementDistance(CinemachineVirtualCameraBase) | See how far virtual camera has been moved by the confiner |
GetMaxDampTime() | Report maximum damping time needed for this component. |
InvalidatePathCache() | Call this if the bounding shape's points change at runtime |
PostPipelineStageCallback(CinemachineVirtualCameraBase, Stage, ref CameraState, float) | Callback to to the camera confining |