Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

UI WebcamTexture on RawImage

Discussion in '5.4 Beta' started by tkoknordic, Apr 3, 2016.

  1. tkoknordic

    tkoknordic

    Joined:
    Jan 31, 2013
    Posts:
    93
    Hi,

    After I updated to Unity 5.4b12 my webcam texture stopped working when I set that to rawimages texture. It only shows solid color. Webcam texture still works on 3d geometry.

    Anyone having the same issue?

    Tomi
     
  2. Alex-Lian

    Alex-Lian

    Guest

    Bug report please so I can track it through to the devs? Please post the bug report # here.
     
    tkoknordic likes this.
  3. tkoknordic

    tkoknordic

    Joined:
    Jan 31, 2013
    Posts:
    93
    I made an example project with just one script and scene and I was able to reproduce the bug. I sent that project with description and got a case number. The number is 785488.
     
  4. Alex-Lian

    Alex-Lian

    Guest

    tkoknordic likes this.
  5. tkoknordic

    tkoknordic

    Joined:
    Jan 31, 2013
    Posts:
    93
    My rawimage did behave a bit differently, but I think the error has the same source and will be fixed simultaneously.
    Thank you Alex.
     
  6. fermmmm

    fermmmm

    Joined:
    Oct 18, 2013
    Posts:
    129
    Same problem here with unity 5.4 b13
     
  7. Chronovore

    Chronovore

    Joined:
    Dec 20, 2014
    Posts:
    6
    Still broken in 5.4 b14.
    My hacky work around was to set the UV to the inverse of the original size of the video:

    Code (CSharp):
    1. rawImage.uvRect = new Rect(0.0f, 0.0f, 1.0f / texture.width, 1.0f / texture.height)
    Where rawImage is the RawImage and texture is the MovieTexture.
     
    tkoknordic likes this.
  8. Alex-Lian

    Alex-Lian

    Guest

    Note, the issuetracker link I linked to shows fixed, but it hasn't landed in the release branch (it's just marked fixed internally).
     
    tkoknordic likes this.
  9. fermmmm

    fermmmm

    Joined:
    Oct 18, 2013
    Posts:
    129
    Still broken en 5.4b18 is fixed in the editor and in android but is still broken on IOS.
     
  10. fermmmm

    fermmmm

    Joined:
    Oct 18, 2013
    Posts:
    129
  11. Steamc0re

    Steamc0re

    Joined:
    Nov 24, 2014
    Posts:
    144
    It's an issue with UV's for sure. It's not actually a solid color, it's zoomed in on a single pixel of the camera. Setting the W to .001 and H to .001 shows the camera.

    Before:

    upload_2016-6-7_1-28-3.png

    After:

    upload_2016-6-7_1-27-35.png