Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by AtticusMarkane · Dec 09, 2014 at 01:13 PM · uiioscanvasparticlesrendertexture

Unity RenderTexture with RawImage is black (iOS)

I set up a camera with a RenderTexture and a Canvas with a RawImage object. The RawImage is able to draw the RenderTexture while testing in the editor without issue. However, when deployed to our iPad mini (running 7.1) it just comes our as black. Does anyone have an idea of what the issue here is?

  • The RawImage is full screen and anchored as such

  • The Canvas is overlay

  • The camera creates its RenderTexture at runtime

  • The camera re-sizes itself to be the size of the canvas on Awake

The reason I am doing this is to record particles for use in the canvas. I have attached a sample project in hopes that it will help. Sample Project

iosrendertexturetest.zip (201.1 kB)
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by AtticusMarkane · Jan 07, 2015 at 09:26 PM

I finally got back to this issue and had a chance to investigate it further and finally solve it.

After running a bunch of test builds I identified that the issue was with the Camera and not the actual use of RawImage. Though I do not fully understand why, it seems that the particleCamera/renderTexture was preventing stuff from being rendered to the screen. My solution was to update the ParticleCamera class so that it would call render on the camera once per frame as part of a co-routine and disable the camera altogether so that it would not update itself.

I have attached my updated classes for anyone that may want to take a look.link text


particlelayer.zip (1.3 kB)
Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Bunderant · Apr 13, 2016 at 03:36 PM 0
Share

Thanks a bunch for huge the time saver on this... I had the same problem on a $$anonymous$$ac build just now, using Unity 5.3.4p2. $$anonymous$$anually rendering the camera totally fixed it. Weird. Did you file a bug report for this?

avatar image Damjan-Mozetic · Apr 25, 2016 at 07:42 PM 0
Share

I am wondering how do you get rid of the "Scene is missing a fullscreen camera" message. Any idea?

avatar image AtticusMarkane Damjan-Mozetic · Oct 18, 2016 at 08:07 PM 0
Share

This solution is intended to be used as a secondary camera just for particles. The rest of the elements you would render normally with a second camera. Sorry for not getting back to you sooner!

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Problem with RenderTextures on older iOS devices 0 Answers

Why does my particles look different from a distance on iOS? 1 Answer

what should I do with screen space overly canvas and a particle system? 1 Answer

Canvas interaction on render texture to message PhysicsRaycaster 1 Answer

Need to send Secondary camera render from unity webgl to HTML5 canvas 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges