docs.unity.cn
    Show / Hide Table of Contents

    Method WithAspect

    WithAspect<TAspect>()

    Add component type requirement for a given aspect.

    Declaration
    [GenerateTestsForBurstCompatibility(GenericTypeArguments = new Type[]{typeof(BurstCompatibleAspect)})]
    public EntityQueryBuilder WithAspect<TAspect>()
        where TAspect : struct, IAspect, IAspectCreate<TAspect>
    Returns
    Type Description
    EntityQueryBuilder

    The builder object that invoked this method.

    Type Parameters
    Name Description
    TAspect

    The aspect to add to the query

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023