Skip to content

Commit

Permalink
fix(Highlighters): ensure highlighter is turned off on disable
Browse files Browse the repository at this point in the history
When the interactable object is disabled, the highlighter should also
be turned off otherwise when the object is re-enabled it still has
the highlighted colour even if it's not being touched.
  • Loading branch information
thestonefox committed Jan 31, 2017
1 parent a1fb489 commit ad9f6b9
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -87,5 +87,10 @@ public static VRTK_BaseHighlighter GetActiveHighlighter(GameObject obj)

return objectHighlighter;
}

protected virtual void OnDisable()
{
Unhighlight();
}
}
}

0 comments on commit ad9f6b9

Please sign in to comment.