Hi,
Based on the content of this lecture if you want to set the Runtime Animator Controller to an Animator Override Controller here is a sample script. However how would you program setting the Runtime Animator Controller back to the default one? How do you reference it?
public class Controller : MonoBehaviour
{
public Animator animator;
public AnimatorOverrideController animatorOverrideController;
Start()
{
animator = GetComponent<Animator>();
}
Update()
{
if (Input.GetKey(Keycode.Space))
{
animator.runtimeAnimatorController = animatorOverrideController;
}
if (Input.GetKey(KeyCode.Tab))
{
// Set the runtime animator controller to the default one
}
}
Thank you