Search Unity

Bug Render textures not working in WebGL?

Discussion in 'Web' started by Hypertectonic, Sep 2, 2022.

  1. Hypertectonic

    Hypertectonic

    Joined:
    Dec 16, 2016
    Posts:
    75
    I'm using a render texture generated from a second camera for a minimap. It works well in editor but I get a black texture on the build. The web console shows no errors and everything is otherwise fine. This is a URP project on 2021.3.8

    Is there a secret method of working with render textures in WebGL? Currently the texture is an asset, not created at runtime. Is this not supported in WebGL? Is it an issue with the texture format?
    Unity_20220901183509_551x271.png Unity_20220901183547_564x497.png Unity_20220901183633_551x968.png
     
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    5,990