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
0
Question by alex_hajdu · Jan 16, 2015 at 12:53 PM · uiguitext

GUI Text changes color to green / Possible 4.6.1 bug?

Is this a known bug or I'm doing something wrong?

I create new Text, set color to white. When I launch the game, text goes green and stays green also in Editor. Also when I try to change color to another is green tinted so it's not possible to change color at all.

When I reload projet the situation is repeating.

alt text

Someone with the similar issue?

unityissue.jpg (17.8 kB)
Comment
Add comment · Show 3
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 z37 · Jan 19, 2015 at 09:10 AM 0
Share

I have the same problem, the color of the new UI text can't be set to no other like shades from black to green, but other other elements of UI are good.

avatar image Nice2k · Jan 21, 2015 at 02:24 PM 0
Share

I have the same problem. Looks like a bug in the current version of Unity. Is there a workaround at the moment? Is the bug already known by the unity $$anonymous$$m?

When I set up a clean new project everythink is fine. Is there some global setup at any place, whiche causes the black to green only color problem?

avatar image infosekr · Apr 04, 2015 at 08:19 AM 0
Share

This happens to me as well. Changing fonts has no effect. The text also sometimes changes to yellow at runtime, but usually changes back to green quickly. If I start a brand new project, new scene, new text object then it seems to behave ok, and then the text in my actual project renders correctly until I run it (sometimes it takes a few runs) and then it goes back to green.

Definitely a weird Unity bug. Upgrading to 5.0.1 had no effect.

I've been able to avoid this problem by applying a UI/Unlit/Text material that I created (with default parameters, white color). Then my text renders correctly in the text color I specify.

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Nice2k · Jan 21, 2015 at 02:45 PM

Ok, I was able to find the problem. Hopefully this is also the solution for your problem. In my code I setted the new color wrongly.

I got this strange behaviour when I setted something like:

 text.material.color = Color.black;

This ends up I have to reload the complete project (restart of unity) to get rid of the strange black to green problem.

The solution is to set directly the color of the text.

 text.color = Color.black;
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 alex_hajdu · Jan 21, 2015 at 06:54 PM 0
Share

I've to check that. In my code I'm not using changing color. But maybe in some plugins I use is used that statement...

avatar image infosekr · Apr 08, 2015 at 04:10 PM 0
Share

Yeah, I had the same problem. A script for a FPS text display that I got off the internet was setting the text.material.color ins$$anonymous$$d of text.color. This means the material color is being set, and in my case I had no material (so Unity must use a default material in it's place). So the default material was being changed. The only way to get it back to normal is to restart Unity. I had to make the same fix as above.

avatar image
0

Answer by Reder13 · Jan 17, 2015 at 02:15 AM

is this in a GUI Box? if so do you by chance have GUI.color set to Color.green? because that will change the color of the font in the box or any other GUI. if thats the case you might wanna make a GUISkin, in there you can adjust the font color.

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 z37 · Jan 21, 2015 at 11:28 PM

Guys, I've fixed it by changing fonts a few times, after that it disappears.

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

6 People are following this question.

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

Related Questions

How would I make a tool-tip sized to text? (4.6 GUI) 2 Answers

Big text field GUI. 1 Answer

Displaying varying text 1 Answer

Draw GUI Text if clicked out of webplayer 1 Answer

How to convert a string into a function in JS? 2 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