My image only pop up on the scene

I’m trying to pop up an image on my game but it only appears on the scene window

This is my code:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class Mercator : MonoBehaviour
{
    public GameObject popUp;

    void Start()
    {
        popUp.SetActive(false);
    }

    void OnTriggerEnter2D(Collider2D player)
    {
        if (player.gameObject.tag == "Player")
        {
            popUp.SetActive(true);
        }
    }

    void OnTriggerExit2D(Collider2D player)
    {
        if (player.gameObject.tag == "Player")
        {
            popUp.SetActive(false);
        }
    }
}

Imgur

Is the image within the camera frustum? Is it at the same z-position as the background (bring it forward a tad)? Is it on a layer that the camera can show?

Yeah, basically the image don’t pop- up on the game window only on the scene window, as you can see in this image(the image is the “E”):

Imgur

Did you check the things I mentioned in my previous comment?

  1. If something is too close to the camera (inside the near clipping plane distance which is usually 0.3), it won’t appear.

  2. If something is not on a layer that is rendered by the camera, it won’t appear.

  3. If something is position at the same distance as something else, sometimes it will appear over the other thing, other times it will be obscured by it.

  1. I changed the near clipping plane to 0.01 and it still doesn’t appear

  2. I didn’t understand what you mean by a “layer that is rendered by the camera”. Can you explain that for me?

  3. The image is positioned at the same distance as a GameObject, but this GameObject don’t even has a sprite renderer attached to it, so i think it won’t interfere on the apppearance of the image