Minimap doesn't show in .exe

I was creating minimap by this tutorial , all works perfectly in Unity but when I built it into .exe, minimap didn’t show up. I don’t know if there is a problem with position on screen or what, so can anybody help me please? :frowning:

Here is code where I am drawing minimap:

void OnGUI()
    {
        if (Event.current.type == EventType.Repaint)
        {
            Graphics.DrawTexture(new Rect(Screen.width - 256, 0, 256, 256), MiniMapTexture, MiniMapMaterial);
            Graphics.DrawTexture(new Rect(Screen.width - 240, Screen.height - 150, 220, 150), _Texture); //this is HPBar
        }
    }

Try checking the output_log.txt file located in your build directory. It will log any error that occur.