docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetAdditionalData

    GetAdditionalData<T>(Object[], Action<T>)

    Get the AdditionalData of the given component

    Declaration
    public static T[] GetAdditionalData<T>(Object[] targets, Action<T> initDefault = null) where T : Component
    Parameters
    Type Name Description
    Object[] targets

    The object to seek for AdditionalData

    Action<T> initDefault

    [Optional] The default value to use if there is no AdditionalData

    Returns
    Type Description
    T[]

    return an AdditionalData component

    Type Parameters
    Name Description
    T

    The type of the AdditionalData component

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