docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AddComponentForEntityQuery

    AddComponentForEntityQuery(EntityQuery, ComponentType)

    Obsolete. Use AddComponent(EntityQuery, ComponentType, EntityQueryCaptureMode) instead.

    Declaration
    [Obsolete("Use AddComponent (RemovedAfter Entities 1.0) (UnityUpgradable) -> AddComponent(*)")]
    public void AddComponentForEntityQuery(EntityQuery entityQuery, ComponentType componentType)
    Parameters
    Type Name Description
    EntityQuery entityQuery

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

    ComponentType componentType

    The type of component to add.

    AddComponentForEntityQuery<T>(EntityQuery)

    Obsolete. Use AddComponent<T>(EntityQuery, EntityQueryCaptureMode) instead.

    Declaration
    [Obsolete("Use AddComponent (RemovedAfter Entities 1.0) (UnityUpgradable) -> AddComponent<T>(*)")]
    public void AddComponentForEntityQuery<T>(EntityQuery entityQuery)
    Parameters
    Type Name Description
    EntityQuery entityQuery

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

    Type Parameters
    Name Description
    T

    The type of component to add.

    AddComponentForEntityQuery<T>(EntityQuery, T)

    Obsolete. Use AddComponent<T>(EntityQuery, T) instead.

    Declaration
    [Obsolete("Use AddComponent (RemovedAfter Entities 1.0) (UnityUpgradable) -> AddComponent<T>(*)")]
    public void AddComponentForEntityQuery<T>(EntityQuery entityQuery, T value) where T : unmanaged, IComponentData
    Parameters
    Type Name Description
    EntityQuery entityQuery

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

    T value

    The value to set on the new component in playback for all entities matching the query.

    Type Parameters
    Name Description
    T

    The type of component to add.

    AddComponentForEntityQuery(EntityQuery, in ComponentTypeSet)

    Obsolete. Use AddComponent(EntityQuery,ComponentTypeSet,EntityQueryCaptureMode) instead.

    Declaration
    [Obsolete("Use AddComponent (RemovedAfter Entities 1.0) (UnityUpgradable) -> AddComponent(*)")]
    public void AddComponentForEntityQuery(EntityQuery entityQuery, in ComponentTypeSet componentTypeSet)
    Parameters
    Type Name Description
    EntityQuery entityQuery

    The query specifying the entities to which the components are added.

    ComponentTypeSet componentTypeSet

    The types of components to add.

    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)