Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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 /
  • Help Room /
avatar image
0
Question by unity_3331EB59BC1F3330F07F · Aug 25, 2021 at 06:40 PM · uitransformrenderingdebuggingtransform.rotation

Unity Player Rendering Different in Development Mode vs Non-Development Mode

When I Build and Run my application, I'm seeing some strange behavior. The application works in the follow scenarios:

Unity Editor on Mac, Linux, Windows

Unity Player on Mac, Linux

Unity Player with Development Build checked on Mac, Linux, and Windows

It seems the only configuration in which it doesn't work correctly is non-development (production/release) build on Windows when I leave the Development Build checkbox unchecked. Of course, that's the target environment for my application.

I'm not entirely sure what the exact problem is, though it almost appears to be a layering issue. In all of the working environments, the application appears to be rendering in order of the hierarchy. I've considered using sorting layers and canvas components, though due to the complexity of that I'm hoping to find a different solution. I'm not even sure how to debug this since there aren't any errors, running the application in a development build/the editor results in it working as expected, and I don't know how to access the "Scene" tab to browse the hierarchy from a "broken" build.

I guess my question comes down to is there a way to access the equivalent of the "Scene" tab from a build? Or is there a way to simulate a build from within the editor so I can browse through the hierarchy to determine what the cause of the problem is? Or has anyone seen an issue similar to this?

Additional problem info for those interested in it: I have a video, using VideoPlayer and RawImage, set to play. My code is basically:
texture = new RenderTexture(width, height, 0)
videoPlayer.targetTexture = texture
videoRawImage.texture = texture
Maybe not the best way to do it but it works well to play the video. Over top of the video, I have a container with a background image and some text (TextMeshPro) over it. The background image appears OK, but the text doesn't show up. I'm unsure if it's behind the image, or what is happening to it. If I put a ~2 second delay, just to test, between adding the background image and adding the text over it, the text shows up fine.

Again, if I'm in a development build in windows, the editor, or any build on Mac and Linux, this delay isn't necessary.

Edit:
Quick update. The issue is actually related to rotation. I am rotating the parent element of the text. Despite setting the text's localEulerAngles to zero, it seems that something happens that hides the text. If I use the update function or a coroutine to reference the localEulerAngles, even just with a Debug.Log(text.transform.localEulerAngles), the text remains visible as the parent element rotates. This seems like a bug to me.

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

0 Replies

· Add your reply
  • Sort: 

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

184 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to Check if an UI element is rendered by the camera (UI overlapping issue) 0 Answers

Translate more than one object on update with the same function 0 Answers

Need Rect Transform Movement Tips 2 Answers

Get and show drawcall in UI text? 0 Answers

Rendering UI Panel Inside of an Object 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