docs.unity.cn
    Show / Hide Table of Contents

    Method GetSharedComponentDataBoxed

    GetSharedComponentDataBoxed(Int32, TypeIndex)

    Retrieves a shared component value as a managed boxed object.

    Declaration
    [ExcludeFromBurstCompatTesting("Accesses managed component store")]
    public object GetSharedComponentDataBoxed(int sharedComponentIndex, TypeIndex typeIndex)
    Parameters
    Type Name Description
    Int32 sharedComponentIndex

    The shared component index

    TypeIndex typeIndex

    The type index

    Returns
    Type Description
    Object

    The shared component value, boxed into an object.

    Remarks

    This API is for debugging or performance-insensitive purposes.

    See Also
    GetSharedComponent<T>(Entity)
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023