Xenko

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    Class AsyncScript

    Namespace: Xenko.Engine | Assembly: Xenko.Engine.dll
    System.Object
    EntityComponent
    ScriptComponent

    A script which can be implemented as an async microthread.

    public abstract class AsyncScript : ScriptComponent, IIdentifiable, ICollectorHolder

    Properties

    Name Description
    CancellationToken

    Gets a token indicating if the script execution was canceled.

    View Source

    CancellationToken

    Gets a token indicating if the script execution was canceled.

    public CancellationToken CancellationToken { get; }
    Type: System.Threading.CancellationToken

    Methods

    Name Description
    Execute()

    Called once, as a microthread

    PriorityUpdated()
    View Source

    Execute()

    Called once, as a microthread

    public abstract Task Execute()

    Returns

    Type: System.Threading.Tasks.Task

    View Source

    PriorityUpdated()

    protected override void PriorityUpdated()
    • Improve this Doc
    • View Source
    In This Article
    • Properties
      • CancellationToken
    • Methods
      • Execute()
      • PriorityUpdated()

    Back to top

    Copyright © 2018 Xenko Team
    Generated by DocFX