docs.unity.cn
    Show / Hide Table of Contents

    Method SetGroupTemplateObjectAtIndex

    SetGroupTemplateObjectAtIndex(Int32, IGroupTemplate, Boolean)

    Sets the initialization object at the specified index.

    Declaration
    public bool SetGroupTemplateObjectAtIndex(int index, IGroupTemplate templateObject, bool postEvent = true)
    Parameters
    Type Name Description
    Int32 index

    The index to set the initialization object.

    IGroupTemplate templateObject

    The rroup template object to set. This must be a valid scriptable object that implements the IGroupTemplate interface.

    Boolean postEvent

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

    Returns
    Type Description
    Boolean

    True if the initialization object was set, false otherwise.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Monday, June 26, 2023