Hey all I am working on my first game that I’m hoping to bring to release later this year, well right now I’m working on the main menu screen and I’m trying to create what I think should be a simple thing where there is text that displays “Press any key to start” and when someone presses any button it will make the text disappear.
I know how to check for any key input (Input.anyKey) and from what I’ve learned just setting the gameObject.SetActive to false to make it disappear.
For some reason this isn’t working for me I have confirmed that the code block is being executed and confirmed that the active box is being unchecked when the code is run but the text stays on the screen.
So my thought is I’m approaching this the wrong way or missing something really simple.
A couple more notes about this I have the Script I created attached to the Canvas Object in the Scene.
I’m accessing the TMPro text through a Serialized Field that I did drag to the spot on the Canvas Object for the Script.
Finally when I say I confirmed at least the code block is being reached I used a Debug.Log line and again watched that the checkbox is being unchecked.
Apologies if I’m posting this in the wrong area of asking a really dumb question but I can’t find the answer anywhere.