I want to stop the play and that appear something like a white written in a black background. There are some function which can help me?
Thank you very much
There’s a lot of ways to do that. I would recommend looking up Time.timeScale and instantiating prefabs.
using time.timescale i can stop the play but i want to change background too. I want a black background with a white written. On internet i find the function appplication.loadlevelasync but it doesn’ do what i need
I would recommend using Object.instantiate() to load in a prefab, or you can have the pause screen deactivated and call pauseScreen.SetActive() when you want to show/hide it
I don’t understand ahah anyway i go forward with my project. I create a UI RawImage. Now when i play i deactivate it (becouse otherwise i’ll see only the image and not the play) but when i active a trigger i don’t know the code to activate it.
I try to use gameObject,Find(“RawImage”).SetActive=true but there is an error… i attached a screen thank you very much for the help
