How to show image in full screen with escape button to go back.

Hello guys , i want to add colliders and when they trigger i want to show an image in full screen or high resolution at least and close the image with an escape button. (It’s for a 3D game.)

@username

Make couroutine and call in start as in the script and check for escape button pressed and do what you want to do.

class EscapeButtonHandling:MonoBehaviour
{

    private void Start()
    {
        StartCoroutine(UpdateCouroutine());
    }

    IEnumerator UpdateCouroutine()
    {

        while (true)
        {

            if (Input.GetKeyDown(KeyCode.Escape))
            {
                 // Do whatEver You want to do
            }

            yield return new WaitForEndOfFrame();
        }

    }