docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method And

    And<T>(T)

    Appends a tag trait constraint to the existing tag trait expression.

    Declaration
    public QueryTraitExpression And<T>(T value) where T : struct
    Parameters
    Type Name Description
    T value
    Returns
    Type Description
    QueryTraitExpression
    Type Parameters
    Name Description
    T
    Remarks

    An "and" clause matches all intervals from the motion library that contain the trait passed as argument and any constraint that has been previously specified as part of the tag trait expression.

    synthesizer.Query.Where(
        Locomotion.Default).And(Idle.Default));
    See Also
    Query
    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)