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

Question All of my stuff is not being built

Discussion in 'UGUI & TextMesh Pro' started by figsterr, Jul 15, 2023.

  1. figsterr

    figsterr

    Joined:
    Jul 15, 2023
    Posts:
    2
    Hi, this is my very first time using unity and I'm not sure why my game is not being built correctly. I just made a simple game to test my basic knowledge and I have two images attached. One is of how the game should look with the night sky background and falling asteroids. The other is how the game is coming out. Just a blank blue background with my little man. In Unity, everything works fine but once I build it nothing does.

    Any advice is appreciated, thanks :)

    2023-07-15 (2).png 2023-07-15 (1).png
     
  2. venediklee

    venediklee

    Joined:
    Jul 24, 2017
    Posts:
    143
    Your canvas has a constant pixel size scaling, change it to scale with width and height etc.

    Try setting the game view’s resolution to your desktop resolution and see how it looks
     
    figsterr likes this.
  3. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    10,468
    Just as a note for the future; any discussion about RectTransform, Canvas and other UI components should be done on the UGUI forums.

    If you are discussing Sprites and other 2D component features etc then this forum is fine.
     
    figsterr likes this.
  4. figsterr

    figsterr

    Joined:
    Jul 15, 2023
    Posts:
    2
    I tried this and it did not work
     
  5. venediklee

    venediklee

    Joined:
    Jul 24, 2017
    Posts:
    143
    You should mention what exactly you did and what exactly happened/still doesnt work instead of "this don't work"

    Try searching for tutorials on UI, or try more. Click on the image's Rect-transform's strech settings, holding alt shift and selecting this[1] option fills the entire screen if that image is the child of a screen space overlay mode and canvas scaler is selected as scale with screen size [2]

    [1]
    upload_2023-7-18_20-47-10.png

    [2]
    upload_2023-7-18_20-48-38.png