Struct CinemachineTrackedDolly.AutoDolly
Controls how automatic dollying occurs
Inherited Members
Namespace: Unity.Cinemachine
Assembly: Unity.Cinemachine.dll
Syntax
[Serializable]
public struct CinemachineTrackedDolly.AutoDolly
Constructors
AutoDolly(bool, float, int, int)
Constructor with specific field values
Declaration
public AutoDolly(bool enabled, float positionOffset, int searchRadius, int stepsPerSegment)
Parameters
Type | Name | Description |
---|---|---|
bool | enabled | Whether to enable automatic dolly |
float | positionOffset | Offset, in current position units, from the closest point on the path to the follow target |
int | searchRadius | Search up to this many waypoints on either side of the current position |
int | stepsPerSegment | We search between waypoints by dividing the segment into this many straight pieces |
Fields
m_Enabled
If checked, will enable automatic dolly, which chooses a path position that is as close as possible to the Follow target.
Declaration
[Tooltip("If checked, will enable automatic dolly, which chooses a path position that is as close as possible to the Follow target. Note: this can have significant performance impact")]
public bool m_Enabled
Field Value
Type | Description |
---|---|
bool |
m_PositionOffset
Offset, in current position units, from the closest point on the path to the follow target.
Declaration
[Tooltip("Offset, in current position units, from the closest point on the path to the follow target")]
public float m_PositionOffset
Field Value
Type | Description |
---|---|
float |
m_SearchRadius
Search up to this many waypoints on either side of the current position. Use 0 for Entire path
Declaration
[Tooltip("Search up to this many waypoints on either side of the current position. Use 0 for Entire path.")]
public int m_SearchRadius
Field Value
Type | Description |
---|---|
int |
m_SearchResolution
We search between waypoints by dividing the segment into this many straight pieces. The higher the number, the more accurate the result, but performance is proportionally slower for higher numbers
Declaration
[FormerlySerializedAs("m_StepsPerSegment")]
[Tooltip("We search between waypoints by dividing the segment into this many straight pieces. he higher the number, the more accurate the result, but performance is proportionally slower for higher numbers")]
public int m_SearchResolution
Field Value
Type | Description |
---|---|
int |