WaitForFixedUpdate

Waits until the next frame rate of FixedUpdate function. (For more details have a look at Appendix A, Important Functions.)

WaitForFixedUpdate can only be used with a yield statement in coroutines.

Example

function Start() {
  // Wait for FixedUpdate to finished
  yield new WaitForFixedUpdate(); 
  // Call After FixedUpdate
  Debug.Log ("Call after FixedUpdate");
}

function FixedUpdate() {
  Debug.Log ("FixedUpdate");
}
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.176.228