docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetPayloadDataRef

    GetPayloadDataRef<T>(int)

    Get a reference to the payload data reinterpreted to the type T.

    Declaration
    public ref T GetPayloadDataRef<T>(int offset = 0) where T : unmanaged
    Parameters
    Type Name Description
    int offset

    Offset from the start of the payload.

    Returns
    Type Description
    T

    Returns a reference to the payload data

    Type Parameters
    Name Description
    T

    Type of the data.

    Exceptions
    Type Condition
    ArgumentException

    If there is not enough bytes in the payload for the specified type. Only thrown when collections checks are enabled (i.e. in the editor). Otherwise the obtained reference may be partially corrupted.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023