Show / Hide Table of Contents

Class YieldInstructions

Utility class that keeps cached instances of various YieldInstructions (no need to create new ones in each coroutine).

Inheritance
System.Object
YieldInstructions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: GlitchedPolygons.Utilities
Assembly: UnityScriptsLibrary.dll
Syntax
public static class YieldInstructions

Properties

| Improve this Doc View Source

WaitForEndOfFrame

Gets a cached WaitForEndOfFrame instance.

Declaration
public static WaitForEndOfFrame WaitForEndOfFrame { get; }
Property Value
Type Description
WaitForEndOfFrame
| Improve this Doc View Source

WaitForFixedUpdate

Gets a cached WaitForFixedUpdate instance.

Declaration
public static WaitForFixedUpdate WaitForFixedUpdate { get; }
Property Value
Type Description
WaitForFixedUpdate

Methods

| Improve this Doc View Source

GetWaitForSeconds(Int32)

Checks if the specified amount of milliseconds has already been waited for once.

If that's the case, retrieve the corresponding WaitForSeconds instance, otherwise create a new one and cache it into the GlitchedPolygons.Utilities.YieldInstructions.WAIT_FOR_SECONDS dictionary.

Declaration
public static WaitForSeconds GetWaitForSeconds(int milliseconds)
Parameters
Type Name Description
System.Int32 milliseconds

The amount of MILLISECONDS (ms) to wait in the coroutine.

Returns
Type Description
WaitForSeconds

The cached WaitForSeconds instance.

| Improve this Doc View Source

GetWaitForSecondsRealtime(Int32)

Checks if the specified amount of milliseconds has already been waited for once.

If that's the case, retrieve the corresponding WaitForSecondsRealtime instance, otherwise create a new one and cache it into the GlitchedPolygons.Utilities.YieldInstructions.WAIT_FOR_SECONDS_REALTIME dictionary.

Declaration
public static WaitForSecondsRealtime GetWaitForSecondsRealtime(int milliseconds)
Parameters
Type Name Description
System.Int32 milliseconds

The amount of MILLISECONDS (ms) to stop the coroutine.

Returns
Type Description
WaitForSecondsRealtime

The cached WaitForSecondsRealtime instance.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX