• 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
Question by MaximeHoulier · Feb 27, 2016 at 03:34 PM · editoreditorwindowguitextlabelblurry

In custom editor window, label text in child windows sometimes becomes blurry

Hi,

I have a custom EditorWindow. In OnGUI(), I draw child windows with GUI.Window() between EditorWindow.BeginWindows() / EndWindows(). Each windows has a delegate GUI.WindowFunction in which I only do simple GUILayout.Label(), no GUI custom style.

In Unity 5.1.4f1, the label text stays sharp / normal. But starting with Unity 5.2.0f3 up to latest (5.3.2p4 & 5.3.3p1), on displaying a new child window, the text is first sharp, then the text gets blurry after some time.

No idea what exactly triggers this change in the editor. This doesn't reset when exiting / restarting the editor or reseting the Unity Editor layout.

I tried GUI.Label() just in case, but still blurry.

I am switching display between several groups of child windows, for each group of child windows only position are stored in an asset, and reimporting doesn't change a thing.

I'm using the "child window index in group" as windows id, so I am actually re-using / recycling windows id when switching display to a different group of child windows. I tried offseting the windows id, but it doesn't seem to make any change.

Just in case, I tried switching to DX9 instead of DX11 using -force-d3d9 command argument, but doesn't change anything.

This is on Unity 5.1.4f1 alt text

This is on Unity 5.2.0f3 up to 5.3.3p1 alt text

Was there any GUI system change in 5.2 that can explain this? What should I do?

Or is it a bug? (could not find any related bug in Unity 3d issue tracker)

Thanks!

Maxime

unity-editor-5-1-4f1-gui-window-text-in-label-ok.png (3.4 kB)
unity-editor-5-2-0f3-gui-window-text-in-label-blur.png (3.3 kB)
Comment

People who like this

0 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 MaximeHoulier · Feb 25, 2016 at 04:12 PM 0
Share

I've investigated the issue by simplifying my code, and I believe this is probably a bug when displaying a label in GUI.WindowFunction delegate. I've reported it (issue id 774189), hopefull it will be noticed and fixed by Unity team.

Maxime

1 Reply

· Add your reply
  • Sort: 
avatar image

Answer by TH_Unity · Jun 20, 2016 at 03:24 PM

The user @Bunny83 posted two possible answers for your question.

It may either be that you use floating numbers for your rectangle rather than intergers or that your window has "no content" and therefore will work strangely.

Link1: http://answers.unity3d.com/questions/1069779/blurry-text-unity-editorwindow.html#answer-1205037

Link2: http://answers.unity3d.com/questions/562114/c-rows-and-columns-guilayoutwindow-issues.html

Comment

People who like this

0 Show 0 · 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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Change the alingment of 2 GUILayout Label 0 Answers

How do I wait until after AssetDatabase creates an assets before carrying out another function ? 0 Answers

Find instance of EditorWindow without creating new one? 2 Answers

Dock Game Window In Code? 1 Answer

why I Cant Add Multiple Objects to the "Object Field" in Editor Window? 3 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