Class CinemachinePOV
This is a CinemachineComponent in the Aim section of the component pipeline. Its job is to aim the camera in response to the user's mouse or joystick input.
The composer does not change the camera's position. It will only pan and tilt the camera where it is, in order to get the desired framing. To move the camera, you have to use the virtual camera's Body section.
상속된 멤버
네임스페이스: Cinemachine
어셈블리: solution.dll
구문
[DocumentationSorting(DocumentationSortingAttribute.Level.UserRef)]
[AddComponentMenu("")]
public class CinemachinePOV : CinemachineComponentBase
필드
이름 | 설명 |
---|---|
m_ApplyBeforeBody | Set this if the POV should be applied to the camera state before the body position is calculated. This is useful for body algorithms that use the rotation as input, for example Framing Transposer |
m_HorizontalAxis | The Horizontal axis. Value is -180..180. Controls the horizontal orientation |
m_HorizontalRecentering | Controls how automatic recentering of the Horizontal axis is accomplished |
m_RecenterTarget | Defines the recentering target: recentering goes here |
m_VerticalAxis | The Vertical axis. Value is -90..90. Controls the vertical orientation |
m_VerticalRecentering | Controls how automatic recentering of the Vertical axis is accomplished |
프로퍼티
이름 | 설명 |
---|---|
IsValid | True if component is enabled and has a LookAt defined |
Stage | Get the Cinemachine Pipeline stage that this component implements. Always returns the Aim stage |
메서드
이름 | 설명 |
---|---|
GetRecenterTarget() | Get the horizonmtal and vertical angles that correspong to "at rest" position. |
MutateCameraState(ref CameraState, float) | Applies the axis values and orients the camera accordingly |
OnTransitionFromCamera(ICinemachineCamera, Vector3, float, ref TransitionParams) | Notification that this virtual camera is going live. Base class implementation does nothing. |
PrePipelineMutateCameraState(ref CameraState, float) | Override this to do such things as offset the RefereceLookAt. Base class implementation does nothing. |