Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: GLeBaTi on October 01, 2014, 02:07:02 AM

Title: Change cursor while executing
Post by: GLeBaTi on October 01, 2014, 02:07:02 AM
Hello. This is my code:
  1. void OnButtonProduceClick()
  2. {
  3. cursor.SetBusyCursor();
  4. done = Helper.WaitForRequestDone (operationRequestCode);
  5. ...
  6. }
  1. public void SetBusyCursor()
  2.     {
  3.         UICursor.Set(UIVAtlas, busyCursor);
  4.         UICursor.instance.uiCamera.Render();
  5.     }

But cursor set to "busy" only when first code gone to the end. (when update)