• 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 /
This question was closed Dec 25, 2020 at 02:37 PM by Bunny83 for the following reason:

Problem is not reproducible or outdated

avatar image
0
Question by spilat12 · Dec 23, 2020 at 04:09 PM · editor-scriptingeditorwindoweditorguieditor windoweditor scripting

Text in custom editor is displayed/rendered with boxes around characters...

It's not about UIElements, I am using the older UI system. And I have a feeling that I encountered the same issue at some point before, but I don't remember how I solved it. It all happened just out the blue and I can not figure out what's causing it.

alt text


Also, it can change text in other tabs, like so: alt text

screenshot-2020-12-23-at-170113.png (189.0 kB)
screenshot-2020-12-23-at-170447.png (137.5 kB)
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

2 Replies

  • Sort: 
avatar image
0
Best Answer

Answer by spilat12 · Dec 23, 2020 at 10:32 PM

Turns out that for whatever reason the following two lines of code were causing the problem:

 EditorUtility.SetDirty(list);
 AssetDatabase.SaveAssets();

These were called with OnGUI() method, but I moved 'em and now they are only called when a value in the list is changed. It must be noted that I do have a huge list (800+) of items, so I think that probably saving the asset each OnGUI() call was not the best idea ever lol.

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
1

Answer by Bunny83 · Dec 23, 2020 at 04:28 PM

Hard to tell without seeing any code, however it looks like you somehow changed the rendering material / shader. Did you at any time call SetPass of a material somewhere in your code? Maybe you used other methods which aren't part of the IMGUI system which may have changed the active material / pass. It looks like some sort of wireframe / outline shader.

Comment
Add comment · Show 1 · 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 spilat12 · Dec 23, 2020 at 10:30 PM 0
Share

Thanks for your reply. It turned out that for whatever reason the following two lines of code were causing the problem:

 EditorUtility.SetDirty(list);
 AssetDatabase.SaveAssets();

These were called with OnGUI() method, but I moved 'em and now they are only called when a value in the list is changed.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

126 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

Related Questions

How do I get a reference to the default editor windows (Hierarchy, Console, and Inspector)? 1 Answer

How do I code my own custom built blend tree node as seen in the Animation Controller Editor Window? 1 Answer

Drag a non standard unity asset on a custom editor slot 1 Answer

Trying to do custom editor using propertyfield of a List<> but want to stuff each item with a dropdown picklist from another list. 1 Answer

Dynamic Editor Window Layout 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges