- Home /
Inspector doesn't show the public...please, help:)
hi, i'm trying to make a Flappy Bird game following a tutorial but in the inspector tab even if i write "public" in the script (C#) it shows just the name of the script. i've read some other questions but the answers didn't really help me... can you tell me how to fix this? oh and i don't know if this should happen, but when i press new project it doesn't show some packages, but just the ones i've downloaded, but in the trailers i've seen they say that there are some packages already available... but this concerns me less... thank you a lot for your time!
If you look at your console window, do you see any errors or warnings? Especially compiler warnings; if your scripts don't compile, Unity can't show updated inspector information.
ok now it says that there's an error and that the script on his Beaviour is missing and in the player tab it asks to fix any kind of error. if i open the script: using UnityEngine; using System.Collections;
public class PLayer$$anonymous$$ovement : $$anonymous$$onoBehaviour {
public float moveSpeed;
private Vector3 input
// Use this for initialization
void Start () {
}
void Update () {
input = new Vector3(Input.GetAxis("Horizontal"), 0, Input.GetAxis ("Vertical"));
rigidbody.AddForce (input * moveSpeed);
}
}
it underlines the part where is written void Start (which i didn't written)
You're missing a semicolon at the end of this line:
private Vector3 input
okay thanks, now in the script it looks like there's nothing wrong, but if i run the game it still gives the same error
Answer by Elrien · Jul 17, 2014 at 08:13 AM
for anyone instrested that has the same problem: in my case i (stupid!) didn't save the script and there was an error. if there's an error in the script hte inspector won't show the public (i'm telling this because i didn't know before this question)