I have watched and re-watched the video on resetting the animator controller. I can not understand what is happening with it, when Sam is talking about parents of the animation / animator.
var overrideController = animator.runtimeAnimatorController as AnimatorOverrideController;
if (animatorOverride != null)
{
animator.runtimeAnimatorController = animatorOverride;
}
else if (overrideController != null)
{
animator.runtimeAnimatorController = overrideController.runtimeAnimatorController;
}
for what ever reason my brain won’t let me understand what its doing. If anyone can explain a little more that would be great thanks!!