Search Unity

Name 'InputSystem' does not exist in the namespace 'UnityEngine'

Discussion in 'Input System' started by KokodokoGames, Aug 28, 2020.

Thread Status:
Not open for further replies.
  1. KokodokoGames

    KokodokoGames

    Joined:
    May 20, 2014
    Posts:
    40
    I have installed the new InputSystem package in my Unity project via the package manager. I have set the input to "new inputsystem" in the Unity Player Settings. I have quit and restarted both Unity and VS Code.

    But when I try to use the inputsystem in VS Code, I immediately get an error:

    Code (CSharp):
    1. using UnityEngine;
    2. using System.Collections;
    3. using UnityEngine.InputSystem;              // <-error
    4. using UnityEngine.InputSystem.Controls;     // <-error
    The type or namespace name 'InputSystem' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?) [Assembly-CSharp]

    Why can't I reference the new inputsystem from code?
     
    unity_-EOVsBoUhz3DOA likes this.
  2. unity_-EOVsBoUhz3DOA

    unity_-EOVsBoUhz3DOA

    Joined:
    Aug 30, 2020
    Posts:
    1
  3. OtMANE21

    OtMANE21

    Joined:
    Sep 27, 2022
    Posts:
    1
    plaese help guys
     
Thread Status:
Not open for further replies.