docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method TypeCastReadonly

    TypeCastReadonly<T>(IntPtr, int)

    Helper method to get a reference to a struct data from its address in memory.

    Declaration
    public static ref readonly T TypeCastReadonly<T>(IntPtr value, int offset = 0) where T : struct
    Parameters
    Type Name Description
    IntPtr value
    int offset
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T
    In This Article
    Back to top
    Copyright © 2023 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)