Search Unity

Question How can I program animations from the animator tab?

Discussion in 'Scripting' started by lucutes, Jun 6, 2020.

  1. lucutes

    lucutes

    Joined:
    May 27, 2020
    Posts:
    12
    I'm new to Unity and I have little knowledge to scripting, but this is my last task towards my project - program WASD movements for the character.

    I followed some tutorials, I managed to set up the animator thing and it works in the bottom right corner viewport. But when I tried adding C# script with basic movements, it didn't work. Is there a more easier or appropriate way to add basic scripts for the character that I could control with WASD in the main viewport?

     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,697
    I assure you it works. Source: I do it all the time.

    If you're having problems, try a different tutorial.

    If you have a specific problem, here is how to report problems productively in the Unity3D forums:

    http://plbm.com/?p=220
     
  3. lucutes

    lucutes

    Joined:
    May 27, 2020
    Posts:
    12
    I'm still not sure with how I've set my project up. So far, a lot of tutorials need to write a "Rigidbody" variable in C#. In the video, the variable gets colored, mine does not. It also happens to other commands, I tried ignoring all of this, but it resulted in an error.

    "public class AppleInput : MonoBehaviour" the input for me is colored, but the Mono isn't, saying it just in case.

    I'll include the picture (on the left, it's the tutorial vid):


    Then of course, I get this:
    upload_2020-6-6_22-35-37.png