Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
  • Help Room /
avatar image
0
Question by ClearRoseOfWar · Jan 20, 2016 at 06:50 PM · editorprogrammingslow

CustomPreferencesGUI has slow refresh in one scrpit, but not in another

So I have been working hard to create some useful editor / preference windows.

I've recently created on CustomPreferencesGUI and it works Great.

On that note, I've used an update delegate to update realtime numbers so that when you're preference window is open you don't need to click on the window for it to update, but you will see those numbers working in real time. Sublime!

 static classname()
     {
         EditorApplication.update += Updater;
     }

I am now trying to make another window which does something entirely different, but using the same principles.

So, my problem is this:

With my new custompreferenceGUI the refresh speed of the custompreferenceGUI is SLOOOW.

the problem is not the update delegate. I know this because I placed a debug.log into the updater function and it works as it should.

If I place that same debug into the gui, its (as mentioned) slow. SO I know the problem is within that cusotmpreferenceGUI.

Furthermore, I copied the first completed script into the new one, and changed the names accordingly to see if its performance lacked... It worked just fine. So I know its not because I have two preferenceGUIs (which really shouldn't be the case)

In my GUI there is nothing out of the ordinary going on that I can see..

I've looked online for a solution but there isn't to much discussion on this.

As mentioned there isn't anything unusual about my GUI Script, but if you NEED to see it let me know. Im a little sensitive about it...

Any thoughts? Need more info? Just ask! I'm refreshing this page every 15 - 30 minutes until I solve this :P

thanks for your time!

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by ClearRoseOfWar · Jan 20, 2016 at 07:04 PM

Darnit!

As always i find my solution after I post....... But heres the answer:

 HandleUtility.Repaint ();
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

38 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

Related Questions

Project gets changed upon entering play mode 0 Answers

[How To] Display Texture2D in editor window 1 Answer

[Editor Extensions] - Rotate object in editor mode 0 Answers

How to copy and paste animation events from one clip to another if those clips are included in FBXs? 1 Answer

Why Does Preference Item Restart whenever project is updated or played 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