Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Image and button separate on Mac build

Discussion in '2D' started by RoughDiamond, Jul 23, 2020.

  1. RoughDiamond

    RoughDiamond

    Joined:
    Dec 14, 2019
    Posts:
    12
    I'm trying to build for both a PC and a Mac. Development is on PC with 16:9 resolution, but the build for the Mac is separating Buttons from their Image parent. The game is running in 16:9 (1280x720) resolution, but it seems like the buttons (the interactable part) are being repositioned and stretched to a taller resolution.

    How can I get these to line up again?
     
  2. RoughDiamond

    RoughDiamond

    Joined:
    Dec 14, 2019
    Posts:
    12
    Part of the trouble seems to be whether I am using the native resolution or using a default resolution. With the default resolution, I get the game to display in a letterbox format (which is what I want), but the interactable portion of the buttons are still resized and repositioned.

    If, on the other hand, I opt for "Default is native resolution", the game fills the screen top to bottom and the right and left edges are cut off - but buttons and images line up.

    Disabling "Mac Retina Support" yielded nothing.