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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Input isn't working as a keyword in my code.

Discussion in 'Scripting' started by Leo785, Mar 13, 2020.

  1. Leo785

    Leo785

    Joined:
    Mar 3, 2020
    Posts:
    8
    Hey does anyone have any idea why is that. I was trying to use raycast and find my mouse position in game but while scripting in visual studio it didn't recognize input as an object.
     

    Attached Files:

  2. Nyfirex

    Nyfirex

    Joined:
    Jun 26, 2019
    Posts:
    179
    Alt + Enter should help. I think you are not including "using UnityEngine;"
     
  3. Leo785

    Leo785

    Joined:
    Mar 3, 2020
    Posts:
    8
    When we create a new script then unityengine library is by default accessed there which I didn't touched at all.
    And I don't know what is alt + enter means sorry.
    Anyway this Unity version 2019.3 is giving me so much trouble so I'm reverting back to 2019.2 thanks for your reply.