GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Documentation
  • User Manual
  • Script Reference
  • Download Unity
  • Unity Engine Documentation
  • UnityEngine
  • AddComponentMenu
  • AnchoredJoint2D
  • AndroidInput
  • AndroidJavaClass
  • AndroidJavaObject
  • AndroidJavaProxy
  • AndroidJNI
  • AndroidJNIHelper

This view

  • Original page
  • New address

GeezerVison is showing docs.unity.com — WaitForSecondsRealtime • UnityEngine • 6000.6 • Unity Editor

WaitForSecondsRealtime

Suspends the coroutine execution for the specified real (unscaled) time in seconds.
Read time 1 minute
Last updated 2 months ago

Definition

  • Type: Class
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
  • Inherits from: CustomYieldInstruction
  • Implements: IEnumerator
public class WaitForSecondsRealtime : CustomYieldInstruction, IEnumerator

Remarks

WaitForSecondsRealtime
can only be used with a
yield
statement in coroutines.
To wait using scaled time, refer to WaitForSeconds.
using UnityEngine;using System.Collections;public class WaitForSecondsExample : MonoBehaviour{ void Start() { StartCoroutine(Example()); } IEnumerator Example() { print(Time.time); yield return new WaitForSecondsRealtime(5); print(Time.time); }}
See Also MonoBehaviour.StartCoroutine.

Constructors

Constructor

Description

WaitForSecondsRealtime(System.Single)Creates a yield instruction to wait for a given number of seconds using unscaled time.

Properties

Property

Description

waitTimeThe given amount of seconds that the yield instruction will wait for.

Inheritance

Inherited Members

  • CustomYieldInstruction.keepWaiting


Report a problem with this page
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.