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

Desktop overlay with transparent camera background?

Discussion in 'macOS' started by JPalander, Aug 25, 2020.

  1. JPalander

    JPalander

    Joined:
    Aug 6, 2020
    Posts:
    2
    I've been building a desktop overlay app using Unity 2020.1.2f1 for Mac and was wondering if it is possible to remove the background from camera or make it transparent somehow?

    I wrote a native Objective-C plugin so that I can change the relevant Unity player NSWindow attributes but that is not enough as the camera background still shows up.

    The end goal would be that Unity player would only show the UI elements (clickable sprites) and nothing else.

    On Windows this works with some Windows APIs by setting the camera background to (0, 0, 0, 0).
     
  2. rcclerigo

    rcclerigo

    Joined:
    Jan 4, 2021
    Posts:
    1
    Did you ever get this resolved @JPalander? I'm facing exactly the same problem
     
  3. JPalander

    JPalander

    Joined:
    Aug 6, 2020
    Posts:
    2
    Nope. Ran out of ideas what to try.