Pular para o conteúdo
AstraDOCS

Astra.BehaviorAwaitables

Astra atual · C# · 06 out. 2026Referência de assinaturas

Awaitable routes bound to one Behavior. The provided waits resume on the script dispatch thread. Arbitrary Tasks (Task.Run/Delay/network) do not acquire that guarantee.

Namespace: Astra · Assembly: Astra.Scripting · Tipo: Struct

readonly struct Astra.BehaviorAwaitables

Awaitable routes bound to one Behavior. The provided waits resume on the script dispatch thread. Arbitrary Tasks (Task.Run/Delay/network) do not acquire that guarantee.

Membro Categoria
FixedUpdate Method
NextFrame Method
Seconds Method
SecondsRealtime Method

FixedUpdate

public Astra.BehaviorAwaitable FixedUpdate(System.Threading.CancellationToken cancellation = default(System.Threading.CancellationToken))
Parâmetro Tipo Contrato
cancellation System.Threading.CancellationToken · Opcional: ``

NextFrame

public Astra.BehaviorAwaitable NextFrame(System.Threading.CancellationToken cancellation = default(System.Threading.CancellationToken))
Parâmetro Tipo Contrato
cancellation System.Threading.CancellationToken · Opcional: ``

Seconds

public Astra.BehaviorAwaitable Seconds(double seconds, System.Threading.CancellationToken cancellation = default(System.Threading.CancellationToken))
Parâmetro Tipo Contrato
seconds double
cancellation System.Threading.CancellationToken · Opcional: ``

SecondsRealtime

public Astra.BehaviorAwaitable SecondsRealtime(double seconds, System.Threading.CancellationToken cancellation = default(System.Threading.CancellationToken))
Parâmetro Tipo Contrato
seconds double
cancellation System.Threading.CancellationToken · Opcional: ``