Question by
NolanOc · Mar 02, 2018 at 07:39 PM ·
uifindload scenefind-gameobject
GameObjects Missing When I Re-Load Scene
I have a button that reloads a scene. However when I click this button I noticed some game objects missing.
I am using this script to present the players gold amount, and it works when I press play. However when I reload the scene it comes up missing in the inspector.
goldText = GameObject.Find ("Gold Text").GetComponent<Text> ();
I'd really appreciate the help I've been stuck on this for a few days now and its really messing me up!
Comment
Your answer
Follow this Question
Related Questions
How Can I assign a gameobject via script? 0 Answers
(Solved) Findout if an object exist in the scene, but dont trow exception 1 Answer
Loading Bar For Each Canvas in a Scene 1 Answer
Trouble with GameObject.Find() After LoadLevel.Load() 0 Answers
What to use instead of GameObject.Find and GetComponent 2 Answers