docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetInitializationObjectAtIndex

    SetInitializationObjectAtIndex(int, IObjectInitializationDataProvider, bool)

    Sets the initialization object at the specified index.

    Declaration
    public bool SetInitializationObjectAtIndex(int index, IObjectInitializationDataProvider initObject, bool postEvent = true)
    Parameters
    Type Name Description
    int index

    The index to set the initialization object.

    IObjectInitializationDataProvider initObject

    The initialization object to set. This must be a valid scriptable object that implements the IInitializationObject interface.

    bool postEvent

    Indicates if an even should be posted to the Addressables event system for this change.

    Returns
    Type Description
    bool

    True if the initialization object was set, false otherwise.

    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)