Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Addressables Render Texture Problem

Discussion in 'Addressables' started by Ceylan12, Nov 3, 2020.

Thread Status:
Not open for further replies.
  1. Ceylan12

    Ceylan12

    Joined:
    Dec 24, 2016
    Posts:
    113
    Hello, I have raw image with render texture in Addressables prefab but raw image is completlely black and dont working. I dont know reason but I think Addressables causing it. I tried putting raw image in scene and it worked. Can anyone help me? Thank you.
    Edit: If camera is in scene and raw image in addressables it doesnt work but if both of them in addressables it works. I dont know why If it is bug I will report it.
     
    Last edited: Nov 3, 2020
  2. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,816
    We'll flag this for the team to have a look. Wouldn't hurt to also file a bug report for us too.

    Which version of Addressables are you using?
     
    Ceylan12 likes this.
  3. davidla_unity

    davidla_unity

    Unity Technologies

    Joined:
    Nov 17, 2016
    Posts:
    762
    So, likely the problem is that your camera in the scene is having its reference broken when the asset is built into Addressables. This isn't something that we can automatically link back up when the asset is loaded.

    What you'll likely need to do is get the render texture from Addressables and set it on the Camera in a script.

    If, however, you're good with both Camera and image being Addressable then all you'll need to do is instantiate the Camera because the reference is maintained through the Addressable build.
     
    Ceylan12 likes this.
  4. Ceylan12

    Ceylan12

    Joined:
    Dec 24, 2016
    Posts:
    113
    Thanks, I put camera in addressables and there is no problem right now. So this is not a bug? So I don't need to make bug report right?
     
  5. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,816
    Correct. No need for that bug report. :)
     
    Ceylan12 likes this.
  6. lejean

    lejean

    Joined:
    Jul 4, 2013
    Posts:
    392
    It still seems to break if the camera is a child of an addressable prefab with a reference to the addressable rendertexture. (version 1.16.16)
     
Thread Status:
Not open for further replies.