Search Unity

Question How can we make the unity background transparent?

Discussion in 'Unity Hub' started by sheenarn, Nov 30, 2023.

  1. sheenarn

    sheenarn

    Joined:
    Nov 20, 2023
    Posts:
    3
    How can we make the unity background transparent?

    Scenario:
    **I have created a Unity app with a 3D object Cube.
    **Build this app with target as iOS and loaded this in an Xcode app with "background blue color with few buttons".
    **On running, I wanted to display only the 3D cube from Unity app (without the default background) along with Xcode blue background. Unity default background should be transparent.
     
    Last edited: Nov 30, 2023
  2. halley

    halley

    Joined:
    Aug 26, 2013
    Posts:
    2,429
    This question has nothing to do with the Unity Hub.

    I don't think any variant of Unity supports a live borderless alpha rendering path, but you can supply whatever image you want to use for a background, if you have some sort of native hooks to get the screen contents before Unity's window opens.
     
  3. sheenarn

    sheenarn

    Joined:
    Nov 20, 2023
    Posts:
    3
    I have a link where he could achieve this but source code is not available. When I tried this and getting errors while compiling.
    Showcase - Unity as a Library rendered on partial screen with SwiftUI - Unity Forum