Cinemachine
CinemachineTargetGroup Class |
Defines a group of target objects, each with a radius and a weight.
The weight is used when calculating the average position of the target group.
Higher-weighted members of the group will count more.
The bounding box is calculated by taking the member positions, weight,
and radii into account.
Inheritance Hierarchy
Namespace: Cinemachine
Assembly: Cinemachine (in Cinemachine.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
[DocumentationSortingAttribute(19f, DocumentationSortingAttributeLevel.UserRef)] [AddComponentMenu("Cinemachine/CinemachineTargetGroup")] [SaveDuringPlayAttribute] [ExecuteInEditMode] public class CinemachineTargetGroup : MonoBehaviour
Cinemachine.CinemachineTargetGroup = function(); Type.createClass( 'Cinemachine.CinemachineTargetGroup', UnityEngine.MonoBehaviour);
The CinemachineTargetGroup type exposes the following members.
Constructors
Name | Description | |
---|---|---|
CinemachineTargetGroup |
Properties
Name | Description | |
---|---|---|
BoundingBox | The axis-aligned bounding box of the group, computed using the
targets positions and radii | |
IsEmpty | Return true if there are no members with weight > 0 |
Methods
Name | Description | |
---|---|---|
GetViewSpaceBoundingBox | The axis-aligned bounding box of the group, in a specific reference frame |
Fields
Name | Description | |
---|---|---|
m_PositionMode | How the group's position is calculated | |
m_RotationMode | How the group's orientation is calculated | |
m_Targets | The target objects, together with their weights and radii, that will
contribute to the group's average position, orientation, and size | |
m_UpdateMethod | When to update the group's transform based on the position of the group members |
See Also