docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AddUnmanagedSharedComponentData

    AddUnmanagedSharedComponentData<T>(Entity, T)

    Obsolete. Use AddSharedComponent<T>(Entity, T) instead.

    Declaration
    [Obsolete("Use AddSharedComponent<T> (UnityUpgradable) -> AddSharedComponent<T>(*)", true)]
    public bool AddUnmanagedSharedComponentData<T>(Entity entity, T componentData) where T : unmanaged, ISharedComponentData
    Parameters
    Type Name Description
    Entity entity

    The entity.

    T componentData

    The shared component value to set.

    Returns
    Type Description
    bool

    Returns false if the entity already has the shared component. The shared component value is set either way.

    Type Parameters
    Name Description
    T

    The shared component type.

    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)