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.
상속된 멤버
네임스페이스: Cinemachine
어셈블리: solution.dll
구문
[DocumentationSorting(DocumentationSortingAttribute.Level.UserRef)]
[AddComponentMenu("")]
[ExecuteInEditMode]
public class CinemachineConfiner : CinemachineExtension
필드
이름 | 설명 |
---|---|
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 |
프로퍼티
이름 | 설명 |
---|---|
IsValid | Check if the bounding volume is defined |
메서드
이름 | 설명 |
---|---|
CameraWasDisplaced(CinemachineVirtualCameraBase) | See whether the virtual camera has been moved by the confiner |
InvalidatePathCache() | Call this if the bounding shape's points change at runtime |
PostPipelineStageCallback(CinemachineVirtualCameraBase, Stage, ref CameraState, float) | Callback to to the camera confining |