docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method WithAllChunkComponentRW

    WithAllChunkComponentRW<T>()

    Add a required chunk component type to the query.

    Declaration
    public EntityQueryBuilder WithAllChunkComponentRW<T>()
    Returns
    Type Description
    EntityQueryBuilder

    The builder object that invoked this method.

    Type Parameters
    Name Description
    T

    Component type to use as a required, read-write chunk component

    Remarks

    Call this method on the query builder to find entities that have all the specified chunk components. Chunk components are a distinct component type, which are different from adding the same type as a standard component. To add additional required Chunk Components, call this method multiple times.

    The query will request read-only access to the referenced component(s). To request read/write access, use Unity.Entities.EntityQueryBuilder.WithAllChunkComponentRW``1(``0@)

    To add component types that are not known at compile time, use WithAll<T>(ref T)

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