C# Class Spine.Unity.WaitForSpineTrackEntryEnd

Use this as a condition-blocking yield instruction for Unity Coroutines. The routine will pause until the AnimationState.TrackEntry fires its End event.
Inheritance: IEnumerator
Mostra file Open project: EsotericSoftware/spine-runtimes

Private Properties

Property Type Description
HandleEnd void
IEnumerator bool
IEnumerator void
SafeSubscribe void

Public Methods

Method Description
NowWaitFor ( Spine trackEntry ) : WaitForSpineTrackEntryEnd

One optimization high-frequency YieldInstruction returns is to cache instances to minimize GC pressure. Use NowWaitFor to reuse the same instance of WaitForSpineAnimationEnd.

WaitForSpineTrackEntryEnd ( Spine trackEntry ) : UnityEngine

Private Methods

Method Description
HandleEnd ( Spine.TrackEntry trackEntry ) : void
IEnumerator ( ) : bool
IEnumerator ( ) : void
SafeSubscribe ( Spine trackEntry ) : void

Method Details

NowWaitFor() public method

One optimization high-frequency YieldInstruction returns is to cache instances to minimize GC pressure. Use NowWaitFor to reuse the same instance of WaitForSpineAnimationEnd.
public NowWaitFor ( Spine trackEntry ) : WaitForSpineTrackEntryEnd
trackEntry Spine
return WaitForSpineTrackEntryEnd

WaitForSpineTrackEntryEnd() public method

public WaitForSpineTrackEntryEnd ( Spine trackEntry ) : UnityEngine
trackEntry Spine
return UnityEngine