Hi, I get this message after clicking on play game.My JavaScript’ve checked many times but everything is Ok.How to fix this error?
Have you tried reloading editor?
yes but still the same
more advice?
I do not know how to solve it I’m going to reinstall unity I hope this helps
You must have errors in the console.
Every Script I write ends in error console but Javascript is alright
What error are you getting in the console? Are you sure your script is correct?
Well, you should really show us the errors.
Thanks for the effort help. I solved the problem. I re-install unity and finally everything works perfectly
What was the cause of the error is a mystery
Not sure if it applies to JavaScript (since I work with C#) but would be interesting to see if you could use Build/Cleanup command. I’ve done it a couple of times in a similar situation (looks like there are still some stability issues in mono developer).
my kinect was not work displya show error ALL COMPILER ERRORS HAVE TO BE FIXED BEFORE YOU CAN ENTER PLAY MODE
please telll tell me how i solve !!!
hardeep rawat, you should start your own thread instead of continuing a thread that was months old.
Please open the “Console” window inside Unity, and look for error messages. If there are any, you must read the message and fix the problems in your code. You can double-click an error in the console and it will try to show you the line or script that is failing.
If you have trouble, tell us the error messages you don’t understand. If you have NO error messages in the console, tell us that.
I’m having the same problem without writing a single line of code. I used the Standard Assets First Person Controller and I get the same thing when I try to play. All compiler errors have to be fixed before you can enter playmode!
I’m trying reinstalling Unity like Niko did to see if it fixes the problem.
Hi I have also a problem while loading, control script in Roll-a-ball demo, after editing control script, saving, closing editor window, in unity appears message:
API update required and some info in box
and following errors are :
-
Assets/Scripts/Playercontroller.cs(13,13): error CS0619:
UnityEngine.Component.rigidbody' is obsolete:Property rigidbody has been deprecated. Use GetComponent() instead. (UnityUpgradable)’ -
Assets/Scripts/Playercontroller.cs(13,23): error CS1061: Type
UnityEngine.Component' does not contain a definition forAddForce’ and no extension methodAddForce' of typeUnityEngine.Component’ could be found (are you missing a using directive or an assembly reference?)
In message " API update required" I click “Go ahead” buton and appears message : finish updating scripts/assemblies and below appears : The referenced script on this Behaviour is missing!
I’m using c#
Additionally I found a message “The associated script cannot be loaded. Please fix any compliers errors and assign a valid script.”
after reopening controll script it changes to this :
using UnityEngine;
using System.Collections;
public class PlayerController : MonoBehaviour
{
void FixedUpdate ()
{
float moveHorizontal = Input.GetAxis (“Horizontal”);
float moveVertical = Input.GetAxis (“Vertical”);
Vector3 movement = new Vector3(moveHorizontal, 0.0f, moveVertical);
GetComponent().AddForce(movement);
}
}
I am having the same issue with the compiler message popping up, however the controller isn’t appearing and there are no red lines of code in the script. I’ve tried closing and re-opening the program and it still doesn’t work.
Everyone that is having this issue, what version of Unity are you on? I just posted a question where something similar was happening to me. I’m on 5.3.4f1
I am on 5.0.1f Personal. If you hit Window > Console (or ctrl + shift + c) you can get it to open up manually and see what the issue is.