docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AddSharedComponentManaged

    AddSharedComponentManaged<T>(EntityQuery, T)

    Obsolete. Managed shared components are no longer supported.

    Declaration
    [Obsolete("Managed ISharedComponentData support is deprecated and will be removed. Convert <T> to an unmanaged ISharedComponentData and use the equivalent without the 'Managed' suffix. First deprecated in 6.6.", true)]
    public void AddSharedComponentManaged<T>(EntityQuery entityQuery, T component) where T : struct, ISharedComponentData
    Parameters
    Type Name Description
    EntityQuery entityQuery

    The query specifying the entities to which the component is added.

    T component

    The component value to add.

    Type Parameters
    Name Description
    T

    The type of shared component to set.

    In This Article
    Back to top
    Copyright © 2026 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)