Struct CinemachineTargetGroup.Target
Holds the information that represents a member of the group
Namespace: Cinemachine
Syntax
[DocumentationSorting(DocumentationSortingAttribute.Level.UserRef)]
[Serializable]
public struct Target
Fields
radius
The radius of the target, used for calculating the bounding box. Cannot be negative
Declaration
[Tooltip("The radius of the target, used for calculating the bounding box. Cannot be negative")]
public float radius
Field Value
Type | Description |
---|---|
Single |
target
The target objects. This object's position and orientation will contribute to the group's average position and orientation, in accordance with its weight
Declaration
[Tooltip("The target objects. This object's position and orientation will contribute to the group's average position and orientation, in accordance with its weight")]
public Transform target
Field Value
Type | Description |
---|---|
Transform |
weight
How much weight to give the target when averaging. Cannot be negative
Declaration
[Tooltip("How much weight to give the target when averaging. Cannot be negative")]
public float weight
Field Value
Type | Description |
---|---|
Single |