diff --git a/Assets/MRTK/SDK/Features/UX/Scripts/Slate/FollowMeToggle.cs b/Assets/MRTK/SDK/Features/UX/Scripts/Slate/FollowMeToggle.cs index 9c5638f4400..e9f49225887 100644 --- a/Assets/MRTK/SDK/Features/UX/Scripts/Slate/FollowMeToggle.cs +++ b/Assets/MRTK/SDK/Features/UX/Scripts/Slate/FollowMeToggle.cs @@ -183,6 +183,11 @@ private void OnEnable() // Begin the follow coroutine when enabled. AutoFollowAtDistance = autoFollowAtDistance; } + + private void OnDisable() + { + autoFollowDistanceCheck = null; + } #endregion MonoBehaviour Implementation