Api > LuaBehaviour > StopCoroutine()
LuaBehaviour.StopCoroutine(Coroutine routine)⚓︎
Stops the coroutine reference by the Coroutine Object.
Parameters:⚓︎
Name | Type | Description |
---|---|---|
routine | Coroutine | Reference to the coroutine reference, returned by StartCoroutine() |
Usage⚓︎
---@type LuaBehaviour
local luabehaviour;
---@type Coroutine
local routine;
luabehaviour.StopCoroutine(routine)