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

Question about type or namespace error

Discussion in 'Editor & General Support' started by yodavid, Apr 25, 2020.

  1. yodavid

    yodavid

    Joined:
    Dec 12, 2016
    Posts:
    25
    Hi there. i haven't used unity in more than 2 years so i'm rusty (and i've never been past the beginner level anyway, although i did create some stuff).

    now i'm following this tutorial and i'm pretty sure i copied his code accurately. i know some stuff there isn't as it should be yet, but the idea is to fix things one at a time.

    the thing is i'm getting the "(8,5) The type or namespace name 'PlayerControls' could not be found (are you missing a using directive or an assembly reference?)"

    why is that? (i did import the Input System 1.0.0)

    this is the tutorial i'm following

    the code i copied can be seen at 11:37

    by the way, what changes should i make to this code to allow the pressing of RB button to be analog? (the harder i press, the faster i want the object to move)

     
  2. japhib

    japhib

    Joined:
    May 26, 2017
    Posts:
    65
    You might need to just restart Unity after adding the new input system. It doesn't work correctly until you restart for some reason.
     
  3. tonOnWu

    tonOnWu

    Joined:
    Jun 23, 2017
    Posts:
    83
    Did you find the solution to that? I tried even restarting my computer. Nothing
     
  4. japhib

    japhib

    Joined:
    May 26, 2017
    Posts:
    65