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

Multiple output from panel settings

Discussion in 'UI Toolkit' started by divvelaRavi, May 24, 2022.

  1. divvelaRavi

    divvelaRavi

    Joined:
    Jul 8, 2020
    Posts:
    9
    Hi,
    • I'm trying to achieve a seethrough blur effect as background for my UI
    • If I can capture the UI toolkit output then I can blur it & add it as background to my UI
    • In panel settings, we can assign a render texture but if I do that It won't render the UI to the screen
    • We cant assign multiple UI documents to a game object to render in multiple panel settings, even if it possible it is expensive.
    Is there a way I can get the output of Panel settings both to render texture & screen?
     
  2. AlexandreT-unity

    AlexandreT-unity

    Unity Technologies

    Joined:
    Feb 1, 2018
    Posts:
    324
    You would have to go the other way around: draw the world into a render texture, blur it and use it as the UI background.
     
  3. divvelaRavi

    divvelaRavi

    Joined:
    Jul 8, 2020
    Posts:
    9
    I'm working on UI based application, there actually nothing in the scene/world. Everything in my application is done with UI Toolkit/Ui Elements. My need is to capture the output of the UI toolkit.

    It's like a widget on the home screen of your phone. Your home screen is UI & your widget is also UI. I want to blur the background for my widget.
     
    Last edited: May 24, 2022
  4. AlexandreT-unity

    AlexandreT-unity

    Unity Technologies

    Joined:
    Feb 1, 2018
    Posts:
    324
    Then you need to split the UI into multiple panels where 1 layer = 1 panel settings with a given render texture.
     
  5. divvelaRavi

    divvelaRavi

    Joined:
    Jul 8, 2020
    Posts:
    9
    I already have them in multiple panels, the problem is if I assign a render texture the same panel won't render to screen.

    like the above example, I want my home screen panel to render to screen and also get captured to be blurred & assigned as background to my widget panel. Right now the output either goes to screen or render texture I want both.
     
  6. AlexandreT-unity

    AlexandreT-unity

    Unity Technologies

    Joined:
    Feb 1, 2018
    Posts:
    324
    You need to perform your final compositing in a panel that doesn't have a render texture so that it will render to the screen.