Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmcintosh/289943b5776321af2178838c73cad11f to your computer and use it in GitHub Desktop.
Save cmcintosh/289943b5776321af2178838c73cad11f to your computer and use it in GitHub Desktop.
Find UMACharacter
void Update() {
if ( UMAAnimator == null ) {
foreach (Transform t in transform)
{
if (t.name == "UMACharacter") {
UMAAnimator = t.gameObject.GetComponent<Animator> ();
m_Animator = UMAAnimator;
m_Animator.applyRootMotion = false;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment