docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct Deferred

    Handle to read data of a promise.

    Namespace: UnityEngine.Promise
    Assembly: solution.dll
    Syntax
    public struct Deferred

    Properties

    Name Description
    currentStep

    Gets the index of the current step of the promise.

    error

    The exception that prevented the handled promise to be fulfilled if it has been rejected.

    isDone

    A flag to determine if the handled promise has been fulfilled or rejected.

    isFulfilled

    A flag to determine if the handled promise has been fulfilled.

    totalSteps

    Gets the number of steps of the promise.

    Methods

    Name Description
    GetProgression(out int, out int)

    Gets the progression of the promise.

    Release()

    Resets the handled promise in order to recycle it.

    Wait()

    Gets the yield instruction related to the handled promise.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)