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 naveen_pambi · Jun 24, 2015 at 10:55 AM · uiblackelements

UI buttons and text are being shown as black area

Hello, I am working on a game in Unity3D 5.0.2 and I faced a problem when I switch between scenes. My UI elements are turned into a black area. I have attached the screenshot. Thank you! alt text

black.png (9.5 kB)
Comment
Add comment · Show 4
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 Vice_Versa · Jun 24, 2015 at 04:20 PM 0
Share

im guessing its the shader you used. I think one of the options is called text shader or osmething along those lines, however it doesnt actually work like its supposed to. if you want your buttons to have text either make a texture with text on them, or use that shader but make sure there is no material set for the text material (thats why its co$$anonymous$$g out those weird white blocks. ALSO, your scene looks dark as hell did you add a directiional light to it?

avatar image naveen_pambi · Jun 25, 2015 at 04:38 AM 0
Share

I am using Unity3d native UI elements, buttons and texts.

avatar image Vice_Versa · Jun 27, 2015 at 05:37 AM 0
Share

did oou add the directional light? the way i usually go about this is put the text on a seperate texture made in photoshop or gimp or whatever write the text you want to display on that texture, import that texture and apply it to a material, give that material a standard shader, then put that on the gameobject acting as the button.

avatar image Hexer · Jun 27, 2015 at 10:21 AM 0
Share

The problem isnt about not using light in your scene.

$$anonymous$$y guess is that there are duplicates underneath each button. Resulting the boxes to appear as a black area. Does your script destroy these UI elements on loading another level? and/or does your script recalls the function to render these buttons when re-entering the same scene?

3 Replies

· Add your reply
  • Sort: 
avatar image
5

Answer by shomeser · Aug 25, 2016 at 08:23 PM

I've faced with the same problem. My Unity version is 5.4.

I just re-import all assets by selecting menu Assets -> Reimport All and the problem disappeared.

Comment
Add comment · Show 2 · 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 alexon · Oct 26, 2016 at 01:20 PM 0
Share

Had the same problem - this was the only thing that worked. Now I have an issue with Unity Ads working fine in dev and iOS - not not showing up in Android. Any thoughts on this?

avatar image Fragmental · Feb 19, 2017 at 08:58 PM 0
Share

Hey! Thanks a lot. Dunno when or why this happened, but this fixed it. I'm on 5.4 as well.

avatar image
2

Answer by commodore · Nov 10, 2015 at 06:44 PM

Little late but I fixed this problem by making sure the source image on UI elements actually had an image and wasn't "none"

Comment
Add comment · 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
0

Answer by YarivAtias · May 20, 2017 at 08:48 AM

I had this problem too. I found that I need to prompt unity to 'Refresh' the meta file of the .texture file that was black area.

So only refreshing the meta file: 1. Open UnityEditor, 2. Click on the texture file that appears as black area 3. In the inspector, click on 'wrap mode', and set it again to the value that is set. for instance, if wrap mode is 'Repeat', click on wrap mode combo box and set 'Repeat'. 4. click 'apply' in the inspector. 5. List item

In the end of this steps, the .meta file was changed, event though I didn't change any value in the Inspector. I think it implies that Unity treated the old .meta as corrupted for some reason. I n my case I suspect that the old .meta file was generated in an older version of Unity and once I loaded it to in a new version of Unity, then Unity treated it as corrupted.

Comment
Add comment · 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

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

9 People are following this question.

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

Related Questions

Vertical Layout Group, how to set different child aligments 2 Answers

How To Assign List Elements To Array Elements? 2 Answers

Any way to control the visibility of UI stacked elements? 1 Answer

Build for android: everything is black except UI, works on other phone 1 Answer

How to setup TextMesh Pro Font Asset to include characters from all languages? 1 Answer


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