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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Var code issue

Discussion in 'Scripting' started by Trexroufish, Aug 30, 2014.

  1. Trexroufish

    Trexroufish

    Joined:
    May 8, 2014
    Posts:
    1
    Hello im a beginner at unity, and I have been working on a new car game. But when I finish my script the code var underlines red and wont let me add to the car! Please help if helps I have put a picture on it. Thank you. unity script problem.PNG
     
  2. bbQsauce

    bbQsauce

    Joined:
    Jun 29, 2014
    Posts:
    53
    could you post the whole script? And read this
     
  3. Themp

    Themp

    Joined:
    Nov 8, 2011
    Posts:
    96
    You probably made a C# script instead of a Javascript script, create a new JS script and try again, it'll work