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
1
Question by WilsonS · May 06, 2011 at 11:10 PM · texturewindowsfocus

Loss of texture data when Unity 2.6 looses of focus on a windows App.

I am using Unity 2.6 Pro and have discovered a strange bug with the textures getting wiped out when the app looses focus. We are in the testing phase of development and were testing what happens when you ALT+Tab out of the app while it was running in full screen, then ALT+Tab back in. On computers with a decent video card the app would work perfectly, however on computers running off the on motherboard video card all textures rendered via the GUI.DrawTexture() function are replaced with Black boxes. The text still rendered by GUI.Label() is fine and the program (to the best of my knowledge is still running). Clicking on parts of the screen where there are buttons will execute the button actions.

I have tried enabling Run In Background in the Player settings with no change to the app.

Oddly if I exit the scene and reload it all the textures are reloaded and everything is fine.

I would like to know if there is a way to prevent loss of texture memory when the app looses focus. Alternately if that is impossible, I would like to know when the app is regaining focus so that I can force a scene transition to reload the textures.

Thank you in advance for your sage advice.

Comment
Add comment · Show 1
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 Wolfram · May 06, 2011 at 11:20 PM 0
Share

Any error messages relating to textures or graphics in the application log? (check "output.txt" in the *_Data directory of your build)

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

No one has followed this question yet.

Related Questions

How can I bring to front a window called by an script in unity? 1 Answer

Textures OK in editor but bad in final build 2 Answers

Load texture on runtime on Windows and Mac 1 Answer

Get the windows as textures to put in Unity3D. 3 Answers

My T4 template tt file customtool changes when editor updates assets 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