docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Contains

    Contains(ref TagList, TraitIndex)

    Checks if a given trait belongs to a given trait list.

    Declaration
    public bool Contains(ref Binary.TagList tagList, Binary.TraitIndex traitIndex)
    Parameters
    Type Name Description
    Binary.TagList tagList

    The tag list to check against.

    Binary.TraitIndex traitIndex

    The trait to check for.

    Returns
    Type Description
    bool

    True if the given trait belongs to the trait list, false otherwise.

    Contains(TagListIndex, TraitIndex)

    Checks if a given trait belongs to a given trait list.

    Declaration
    public bool Contains(Binary.TagListIndex tagListIndex, Binary.TraitIndex traitIndex)
    Parameters
    Type Name Description
    Binary.TagListIndex tagListIndex

    The tag list to check against.

    Binary.TraitIndex traitIndex

    The trait to check for.

    Returns
    Type Description
    bool

    True if the given trait belongs to the trait list, false otherwise.

    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)