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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Why is GUI Texture deprecated in Unity 2017?

Discussion in 'Editor & General Support' started by VirusPunk, Jan 6, 2018.

  1. VirusPunk

    VirusPunk

    Joined:
    Aug 21, 2015
    Posts:
    25
    My project relied heavily on using GUI Texture to display 2D pre-rendered backgrounds behind 3D objects using an extra camera and culling masks to display the backgrounds as layers on a separate camera meant for rendering 2D. On upgrading from Unity 5 to Unity 2017.3, I come to find that the GUI Texture no longer works according to as it should.

    I tried substituting this by adding a Raw Image from the UI components, but it did not work as expected.

    This is rather frustrating and disappointing as my project relies on having pre rendered backgrounds and it seems there's no other way around this using the recent version of Unity...
     
  2. VirusPunk

    VirusPunk

    Joined:
    Aug 21, 2015
    Posts:
    25
    Hmm, for now it seems the only solution is to add a Screen Overlay script to the 2nd 2D camera (downloaded from the Assets store).
     
  3. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,614
    Using the RawImage component should definitely be a possible solution. What about it wasn't working as expected?