Table of Contents

Class AsyncScript

Namespace
Stride.Engine
Assembly
Stride.Engine.dll

A script which can be implemented as an async microthread.

public abstract class AsyncScript : ScriptComponent, IIdentifiable, ICollectorHolder
Inheritance
AsyncScript
Implements
Inherited Members
Extension Methods

Properties

CancellationToken

Gets a token indicating if the script execution was canceled.

public CancellationToken CancellationToken { get; }

Property Value

CancellationToken

Methods

Execute()

Called once, as a microthread

public abstract Task Execute()

Returns

Task

PriorityUpdated()

Internal helper function called when Priority is changed.

protected override void PriorityUpdated()