Class CompletedOperation<TObject> | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class CompletedOperation<TObject>

    Wrapper operation for completed results or error cases.

    Inheritance
    System.Object
    AsyncOperationBase<TObject>
    CompletedOperation<TObject>
    Inherited Members
    AsyncOperationBase<TObject>.m_Result
    AsyncOperationBase<TObject>.m_Status
    AsyncOperationBase<TObject>.m_Error
    AsyncOperationBase<TObject>.m_Context
    AsyncOperationBase<TObject>.m_Key
    AsyncOperationBase<TObject>.m_ReleaseToCacheOnCompletion
    AsyncOperationBase<TObject>.WaitHandle
    AsyncOperationBase<TObject>.IsValid
    AsyncOperationBase<TObject>.ToString()
    AsyncOperationBase<TObject>.Release()
    AsyncOperationBase<TObject>.Retain()
    AsyncOperationBase<TObject>.IAsyncOperation.Retain()
    AsyncOperationBase<TObject>.ResetStatus()
    AsyncOperationBase<TObject>.Validate()
    AsyncOperationBase<TObject>.Completed
    AsyncOperationBase<TObject>.IAsyncOperation.Completed
    AsyncOperationBase<TObject>.IAsyncOperation.Result
    AsyncOperationBase<TObject>.Status
    AsyncOperationBase<TObject>.OperationException
    AsyncOperationBase<TObject>.MoveNext()
    AsyncOperationBase<TObject>.Reset()
    AsyncOperationBase<TObject>.Current
    AsyncOperationBase<TObject>.Result
    AsyncOperationBase<TObject>.IsDone
    AsyncOperationBase<TObject>.PercentComplete
    AsyncOperationBase<TObject>.Context
    AsyncOperationBase<TObject>.Key
    AsyncOperationBase<TObject>.InvokeCompletionEvent()
    AsyncOperationBase<TObject>.SetResult(TObject)
    Namespace: UnityEngine.ResourceManagement.AsyncOperations
    Syntax
    public class CompletedOperation<TObject> : AsyncOperationBase<TObject>, IAsyncOperation<TObject>, IAsyncOperation, IEnumerator
    Type Parameters
    Name Description
    TObject

    Methods

    Start(Object, Object, TObject, Exception)

    Starts the operation.

    Declaration
    public virtual IAsyncOperation<TObject> Start(object context, object key, TObject val, Exception error = null)
    Parameters
    Type Name Description
    System.Object context

    Context object. This is usually set to the IResourceLocation.

    System.Object key

    Key value. This is usually set to the address.

    TObject val

    Completed result object. This may be null if error is set.

    System.Exception error

    Optional exception. This should be set when val is null.

    Returns
    Type Description
    IAsyncOperation<TObject>
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023