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.

Question Automaticlly set canvases Screen Space - Camera.camera to the scenes camera

Discussion in 'Scripting' started by stoupas, Sep 2, 2023.

  1. stoupas

    stoupas

    Joined:
    Aug 26, 2021
    Posts:
    15
    I am making an android game. And I added advancements to the game but to work I had to put the advansements on a dontdestroyonload thing and I want to know if there is a way to set the rendering camera to a camera depending on the scene. So my ui works. But all this from a script.
     
  2. wideeyenow_unity

    wideeyenow_unity

    Joined:
    Oct 7, 2020
    Posts:
    728
    Do you mean advertisements(Ads)?

    But you need to give more information, and any code that's relevant. And declaring current or Main.Camera is pretty simple stuff.
     
  3. stoupas

    stoupas

    Joined:
    Aug 26, 2021
    Posts:
    15
    I have already found it. Thanks for the response tho.