docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method IsPayload

    IsPayload<T>(ref T, int)

    Determines whether the specified trait value matches a payload stored in the runtime asset.

    Declaration
    public bool IsPayload<T>(ref T value, int payload) where T : struct
    Parameters
    Type Name Description
    T value

    Trait value to check the payload against.

    int payload

    Payload index to check the trait for.

    Returns
    Type Description
    bool

    True if the trait value matches the payload store in the runtime asset; false otherwise.

    Type Parameters
    Name Description
    T
    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)