Text object used in script gets deleted in inspector when running the game. (Gifs inside question)
So I was wondering why this happens... https://gyazo.com/51e7951c85992d7f8851462e59da65da Gif should make clear what's wrong.
as I can see in gif, both text objects are disabled in game and you might be doing GameObject.Find or GetComponent inside Start or OnEnable or Awake function. if this is the case you can comment that out because you have already assigned text in inspector.
Your answer
Follow this Question
Related Questions
Hierarchy objects deleted and 999+ errors when adding terrain 0 Answers
Script does not recognise gameObjects 1 Answer
Gameobject in scene but missing in hierarchy? 1 Answer
Holographic Emulation Error "You must enable virtual reality support in settings..." 2 Answers
Unity Inspector public large array - Lag and errors - Optimized GUI Block text buffer too large 0 Answers