- Home /
Nothing selected - Anything is working properly!
I restarted Unity and scripts won't work. I can open them in script editor but nothing else! My game is broken! How can I fix it? Please help.
.
@IamJarek if you don't show us your scripts we can't help you. That just means your scripts have something wrong.
I was referring to "Nothing Selected" and "$$anonymous$$ouseLook" not matching. In the scripts I shared below, the name of the script "boatBank" is what automatically appears at the top where his scripts read "nothingSelected". I have run into this when I created a new script and called it say "boatBank" then copied the code from my "boatBanking" script ( including the public class reading "boatBanking" and since the two didn't match the script didn't load
using UnityEngine;
using System.Collections;
namespace UnitySampleAssets.Vehicles.Car
{
public class boatBank : $$anonymous$$onoBehaviour {//LOADS because matches boatBank up top where his says "nothingSelected
using UnityEngine;
using System.Collections;
namespace UnitySampleAssets.Vehicles.Car
{
public class boatBanking : $$anonymous$$onoBehaviour {// DOES NOT LOAD
Answer by shadowpuppet · Nov 12, 2017 at 08:53 PM
because the script name does not match the script as seen in these two scripts I have
If you are using mono develop, try this
Build > Rebuild All
then go to Unity and wait for few seconds.
I finallly realized that there was some errors that I had to fix; then after that this problem is gone.
Answer by FlaSh-G · Nov 12, 2017 at 07:59 PM
As the warning box states, there are errors in your script that need to be fixed. Incorrect syntax for example. As soon as you fix these errors, you can use the scripts again.
Please see this: Please see this: https://answers.unity.com/questions/1441055/nothing-selected-in-every-script-after-copying-pro.html