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!
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 ();
Your answer
Follow this Question
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