Search Issue Tracker

Fixed

Votes

8

Found in

5.0.1f1

Issue ID

695600

Regression

No

Camera.targetTexture -> RenderTexture -> UI.rawImage works only in editor

Graphics - General

-

-e: There is a RenderTexture which is placed at the Camera's Target Texture slot. The Panel includes a RawImage Component for the RenderTexture.
If I run this test in the editor, it behaves as expected:
The Panel showing the camera view is rendered on the screen.

As soon as I build and run it, the game will not show any content. Depending on the platform the following happens:
Editor - OK
Standalone Build - nothing get's rendered after splash screen
Android Build - freezes in "Powered by unity" splash screen
Web Player - black screen
WebGL - freezes in loading screen

-repro:
--open test scene from attached project
--run in editor and see the panel with the camera view
--build standalone and run
--NOTICE it getting stuck after the splash screen

Comments (7)

  1. Viselka

    Sep 08, 2016 10:18

    I render camera to the render texture. this texture is used as texture in UI for RawImage.
    Everything works ok in editor, under android is it crash after few seconds...

  2. Joe Censored

    Apr 06, 2016 07:01

    What build is this fixed in?

  3. kyoungmin kim

    Feb 22, 2016 00:15

    Also iOS, Xcode build and run is crash.

  4. jmorhart

    Nov 04, 2015 23:51

    Same problem, but I managed to find a workaround. The scene just needs a full screen camera in it. You can set the camera's culling mask to Nothing so that it doesn't render anything, there just needs to be a full screen camera in the scene.

  5. shashikalsha

    Oct 15, 2015 07:02

    Same problem, not sure how to handle it...

  6. Troglodit

    Oct 05, 2015 09:00

    the same problem

  7. sirudduck

    Sep 29, 2015 01:43

    Exactly Same problem.....T.T

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.