docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetTrait

    GetTrait(TraitIndex)

    Retrieves a reference to a trait stored in the runtime asset.

    Declaration
    public ref Binary.Trait GetTrait(Binary.TraitIndex traitIndex)
    Parameters
    Type Name Description
    Binary.TraitIndex traitIndex

    The trait index to retrieve the reference for.

    Returns
    Type Description
    Binary.Trait

    Trait reference that corresponds to the index passed as argument.

    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)