Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions com.unity.cinemachine/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## UNRELEASED
- Bugfix: Confiner2D confines to midpoint when camera window is bigger than the axis aligned bounding box of the input confiner.
- Bugfix: 3rdPersonFollow shows a warning message when no follow target is assigned like the rest of the body components.


## [2.9.0-pre.7] - 2022-03-29
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,19 @@ static void Draw3rdPersonGizmos(Cinemachine3rdPersonFollow target, GizmoType sel
Gizmos.color = originalGizmoColour;
}
}

public override void OnInspectorGUI()
{
BeginInspector();
bool needWarning = false;
for (int i = 0; !needWarning && i < targets.Length; ++i)
needWarning = (targets[i] as Cinemachine3rdPersonFollow).FollowTarget == null;
if (needWarning)
EditorGUILayout.HelpBox(
"3rd Person Follow requires a Follow Target. Change Body to Do Nothing if you don't want a Follow target.",
MessageType.Warning);
DrawRemainingPropertiesInInspector();
}

#if UNITY_2021_2_OR_NEWER
protected virtual void OnEnable()
Expand Down