Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We are updating our Terms of Service for all Unity subscription plans, effective October 13, 2022, to create a more streamlined, user-friendly set of terms. Please review them here: unity.com/legal/terms-of-service.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Animation shows as playing but does not appear on character

Discussion in 'Animation' started by silverleecams, Jul 27, 2022.

  1. silverleecams

    silverleecams

    Joined:
    May 12, 2022
    Posts:
    42
    What title sounds like. I have a character controller component and an animator component meant to animate my character as well as a script to activate it. It shows as activating the animation in the animator window, but my character is static - any ideas?

    Here's my simple script:

    Code (CSharp):
    1. using System.Collections;
    2. using System.Collections.Generic;
    3. using UnityEngine;
    4.  
    5. public class Animations : MonoBehaviour
    6. {
    7.     public GameObject player;
    8.     void Update()
    9.     {
    10.         if (Input.GetButtonDown("Vertical"))
    11.         {
    12.             player.GetComponent<Animator>().Play("Walk");
    13.         }
    14.  
    15.     }
    16. }
    17.  
     
  2. silverleecams

    silverleecams

    Joined:
    May 12, 2022
    Posts:
    42
    Found out Blender didn't export any of my animations for some reason. Make sure you select everything before exporting!
     
unityunity