docs.unity3d.com
    Show / Hide Table of Contents

    Interface IInitializableObject

    Interface for objects that support post construction initialization via an id and byte array.

    Namespace: UnityEngine.ResourceManagement.Util
    Syntax
    public interface IInitializableObject

    Methods

    Initialize(String, String)

    Initialize a constructed object.

    Declaration
    bool Initialize(string id, string data)
    Parameters
    Type Name Description
    String id

    The id of the object.

    String data

    Serialized data for the object.

    Returns
    Type Description
    Boolean

    The result of the initialization.

    InitializeAsync(ResourceManager, String, String)

    Async operation for initializing a constructed object.

    Declaration
    AsyncOperationHandle<bool> InitializeAsync(ResourceManager rm, string id, string data)
    Parameters
    Type Name Description
    ResourceManager rm

    The current instance of Resource Manager.

    String id

    The id of the object.

    String data

    Serialized data for the object.

    Returns
    Type Description
    AsyncOperationHandle<Boolean>

    Async operation

    Back to top
    Terms of use
    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