- Home /
Why aren't public variables showing up? [Solved]
I am trying to figure out why the public variables I put into Visual Studio won't pop up in Unity. I save, then the script disappears. When I go to a different object and go back, the script is there but none of the variables. Can I get some help? Thanks! Script:
using UnityEngine;
using UnityEngine.UI;
public class Scoreforplayerwhoisplaying : MonoBehaviour {
public Transform player;
public Text score;
// Update is called once per frame
void Update () {
}
}
Comment
Answer by no00ob · Aug 26, 2018 at 08:25 PM
Try removing the script and adding it back
I just figured it out it was lagging or something like that. And they started to show up. Thanks for trying to help though! :D
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Inspector vs Script: Component best practice? 1 Answer
Development of the shop? 1 Answer
Enable SpriteRenderer issue 1 Answer