Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Need video to SEE how multiple animations can be from different source to SAME player

Discussion in 'Animation' started by KittyAnn, Jan 16, 2019.

  1. KittyAnn

    KittyAnn

    Joined:
    Dec 25, 2018
    Posts:
    10
    Can someone PLEASE help me! Been trying for 3 weeks, watching so many youtube videos now I'm totally confused & started over too many times.

    I'm trying to use my character I made in Daz with the animation I made for her in Unity. I made another animation for her to walk.

    I do NOT know how to get BOTH different animations on just one of the same two players. Same character/player girl but each with different animations. One animation is a dancing idle, and other animation is a walking animation.


    Here's my script that's is not working either.

    using UnityEngine;

    public class CharacterBellaAnimation : MonoBehaviour
    {
    public Animator anim;

    // Start is called before the first frame update
    void Start()
    {
    anim = GetComponent<Animator>();
    }

    // Update is called once per frame
    void Update()
    {
    if (Input.GetKeyDown(KeyCode.W))
    {
    anim.Play("BellaWalkingForward");
    }
    else if (!Input.GetKey("up") || !Input.GetKey("down"))
    {
    GetComponent("BellaIdleDancing"); //make sure this name is correct
    }
    }
    }

    I don't know how to script very well. I appreciate the help in advance!
     
  2. KittyAnn

    KittyAnn

    Joined:
    Dec 25, 2018
    Posts:
    10
    SOVED: anyone with the same problem, or problems making your animations work, PLEASE watch this youtube video. It is only 11:39 long, very straight forward & simple to understand. He even gives the script code to make it work. Here's the link to the video: