Author Topic: Change cursor while executing  (Read 1996 times)

GLeBaTi

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Change cursor while executing
« 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)