GUIButton press event takes to long to be called!

HI Guys,

I have simple scene with a complex model (near 50mb) and a GUIButton.

The GUIButton only do a simple Debug.Log(“Im here”).

When I click the button, it takes too long (3 to 4 seconds) to process click event. When I switch to a simpler model it process the click event right after I click the button.

How can I fix that? Is there a way to make GUI items have a priority or something like that so it responds right after the click?


Noel Rocha

GUI.Button always responds to clicks that frame. If you’re getting any noticeable delays, that means your app is running incredibly slowly. Optimize it so it runs fast.