docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class LambdaJobQueryConstructionMethods

    Extension methods implementing the fluent API for Entities.ForEach.

    Inheritance
    object
    LambdaJobQueryConstructionMethods
    Namespace: Unity.Entities
    Assembly: Unity.Entities.dll
    Syntax
    public static class LambdaJobQueryConstructionMethods

    Methods

    Name Description
    AddChunkComponentData<T>(ForEachLambdaJobDescription, T)

    Adds a chunk component to each of the chunks identified by the query you have defined using WithAny/WithAll/WithNone and sets the component values.

    AddComponent(ForEachLambdaJobDescription, ComponentType)

    Adds a component to a set of entities selected by the query you have defined using WithAny/WithAll/WithNone

    AddComponent(ForEachLambdaJobDescription, in ComponentTypeSet)

    Adds components to a set of entities selected by the query you have defined using WithAny/WithAll/WithNone

    AddComponentData<T>(ForEachLambdaJobDescription, NativeArray<T>)

    Adds a component to a set of entities selected by the query you have defined using WithAny/WithAll/WithNone and sets the component of each entity in the query to the value in the component array.

    AddComponent<T>(ForEachLambdaJobDescription)

    Adds a component to a set of entities selected by the query you have defined using WithAny/WithAll/WithNone

    AddSharedComponent<T>(ForEachLambdaJobDescription, T)

    Sets the shared component of all entities in the query you have defined using WithAny/WithAll/WithNone

    DestroyEntity(ForEachLambdaJobDescription)

    Destroys the set of entities defined by the query you have defined using WithAny/WithAll/WithNone.

    RemoveChunkComponentData<T>(ForEachLambdaJobDescription)

    Removes a component from a set of entities selected by the query you have defined using WithAny/WithAll/WithNone.

    RemoveComponent(ForEachLambdaJobDescription, ComponentType)

    Removes a component from a set of entities selected by the query you have defined using WithAny/WithAll/WithNone

    RemoveComponent(ForEachLambdaJobDescription, in ComponentTypeSet)

    Removes a set of components from a set of entities selected by the query you have defined using WithAny/WithAll/WithNone

    RemoveComponent<T>(ForEachLambdaJobDescription)

    Removes a component from a set of entities selected by the query you have defined using WithAny/WithAll/WithNone

    SetSharedComponent<T>(ForEachLambdaJobDescription, T)

    Sets the shared component of all entities in the query.

    ToQuery(ForEachLambdaJobDescription)

    Capture the query you have defined using WithAny/WithAll/WithNone

    WithAbsent<T>(ForEachLambdaJobDescription)

    Add qualification to the generated query that it should only return entities that do not have the specified component type.

    WithAbsent<T1, T2>(ForEachLambdaJobDescription)

    Add qualification to the generated query that it should only return entities that do not have the specified component types.

    WithAll<T>(ForEachLambdaJobDescription)

    Add qualification to the generated query that it should only return entities that have all of the specified component type, and only if the component is enabled on the entity.

    WithAll<T1, T2>(ForEachLambdaJobDescription)

    Add qualification to the generated query that it should only return entities that have all of the specified component type, and only if the component is enabled on the entity.

    WithAll<T1, T2, T3>(ForEachLambdaJobDescription)

    Add qualification to the generated query that it should only return entities that have all of the specified component type, and only if the component is enabled on the entity.

    WithAny<T>(ForEachLambdaJobDescription)

    Add qualification to the generated query that it should only return entities that have any of the specified component type.

    WithAny<T1, T2>(ForEachLambdaJobDescription)

    Add qualification to the generated query that it should only return entities that have any of the specified component types.

    WithAny<T1, T2, T3>(ForEachLambdaJobDescription)

    Add qualification to the generated query that it should only return entities that have any of the specified component type.

    WithChangeFilter<T>(ForEachLambdaJobDescription)

    Add qualification to the generated query that it should only return entities that have chunks where the specified component changed since the last time the system ran.

    WithChangeFilter<T1, T2>(ForEachLambdaJobDescription)

    Add qualification to the generated query that it should only return entities that have chunks where the specified component changed since the last time the system ran.

    WithDeferredPlaybackSystem<T>(ForEachLambdaJobDescription)

    Specify an EntityCommandBufferSystem to play back entity commands.

    WithDisabled<T>(ForEachLambdaJobDescription)

    Add qualification to the generated query that it should only return entities that have the specified DISABLED component type.

    WithDisabled<T1, T2>(ForEachLambdaJobDescription)

    Add qualification to the generated query that it should only return entities that have the specified DISABLED component types.

    WithEntityQueryOptions(ForEachLambdaJobDescription, EntityQueryOptions)

    Add EntityQueryOptions to the generated query.

    WithImmediatePlayback(ForEachLambdaJobDescription)

    Play back entity commands immediately.

    WithNone<T>(ForEachLambdaJobDescription)

    Add qualification to the generated query that it should only return entities that either 1) do not have the specified component type OR 2) have the specified DISABLED component type.

    WithNone<T1, T2>(ForEachLambdaJobDescription)

    Add qualification to the generated query that it should only return entities that either 1) do not have the specified component types OR 2) have the specified DISABLED component types.

    WithNone<T1, T2, T3>(ForEachLambdaJobDescription)

    Add qualification to the generated query that it should only return entities that do not have the specified component types.

    WithPresent<T>(ForEachLambdaJobDescription)

    Add qualification to the generated query that it should only return entities that have all of the specified component type, whether or not it is enabled on each entity.

    WithPresent<T1, T2>(ForEachLambdaJobDescription)

    Add qualification to the generated query that it should only return entities that have all of the specified component type, whether or not it is enabled on each entity.

    WithPresent<T1, T2, T3>(ForEachLambdaJobDescription)

    Add qualification to the generated query that it should only return entities that have all of the specified component type, whether or not it is enabled on each entity.

    WithSharedComponentFilter<T>(ForEachLambdaJobDescription, T)

    Set a shared component filter on the query so that it only matches entities with this shared component value.

    WithSharedComponentFilter<T1, T2>(ForEachLambdaJobDescription, T1, T2)

    Set a shared component filter on the query so that it only matches entities with these shared component values.

    WithStoreEntityQueryInField(ForEachLambdaJobDescription, ref EntityQuery)

    Stores the generated query in a field

    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)