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. Dismiss Notice

variable doesn't "snap"

Discussion in '2D' started by Jackie245, Apr 29, 2020.

  1. Jackie245

    Jackie245

    Joined:
    Apr 29, 2020
    Posts:
    4
    Excuse my use of terminology if it isn't correct. I have been following brackeys 2d movement tutorial, and have gotten to the part to create a script to apply the controller to my character.


    But, when I start to type the first line of text the Controller doesn't snap.
    It should look like this
    upload_2020-4-29_15-41-17.png
    Instead it looks like this upload_2020-4-29_15-42-6.png
    Also mine looks different, so I don't know if that has something to do with it or if it doesnt matter. Thanks for any and all help I receive.
     

    Attached Files:

  2. Jackie245

    Jackie245

    Joined:
    Apr 29, 2020
    Posts:
    4
    please ignore the free trial file i attached i already fixed that and accidently uploaded the screenshot
     
  3. Vryken

    Vryken

    Joined:
    Jan 23, 2018
    Posts:
    2,106
    Press enter to move the line down?
    I'm not exactly sure what the issue is.
    You also need give your variable a name.