Class CinemachineGroupFraming
An add-on module for Cinemachine Camera that adjusts the framing if the tracking target implements ICinemachineTargetGroup.
An attempt will be made to fit the entire target group within the specified framing. Camera position and/or rotation may be adjusted, depending on the settings.
Inheritance
Inherited Members
Namespace: Unity.Cinemachine
Assembly: solution.dll
Syntax
[AddComponentMenu("Cinemachine/Procedural/Extensions/Cinemachine Group Framing")]
[ExecuteAlways]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.cinemachine@3.0/manual/CinemachineGroupFraming.html")]
public class CinemachineGroupFraming : CinemachineExtension
Fields
Name | Description |
---|---|
CenterOffset | A nonzero value will offset the group in the camera frame. |
Damping | How aggressively the camera tries to frame the group. Small numbers are more responsive |
DollyRange | Allowable range for the camera to move. 0 is the undollied position. |
FovRange | Allowable FOV range, if adjusting FOV |
FramingMode | What screen dimensions to consider when framing |
FramingSize | How much of the screen to fill with the bounding box of the targets. |
LateralAdjustment | How to adjust the camera to get the desired horizontal and vertical framing |
OrthoSizeRange | Allowable orthographic size range, if adjusting orthographic size |
SizeAdjustment | How to adjust the camera to get the desired framing |
Methods
Name | Description |
---|---|
GetMaxDampTime() | Report maximum damping time needed for this extension. Only used in editor for timeline scrubbing. |
PostPipelineStageCallback(CinemachineVirtualCameraBase, Stage, ref CameraState, float) | Callback to tweak the settings |