docs.unity.cn
    Show / Hide Table of Contents

    Constructor RefRW

    RefRW(Byte*)

    Stores a safe reference a pointer to T

    Declaration
    public RefRW(byte *ptr)
    Parameters
    Type Name Description
    Byte* ptr

    Pointer pointing to an instance of T

    RefRW(NativeArray<T>, Int32)

    Stores a safe reference to a component from an array of components at the index.

    Declaration
    public RefRW(NativeArray<T> componentDataNativeArray, int index)
    Parameters
    Type Name Description
    NativeArray<T> componentDataNativeArray

    The array of components.

    Int32 index

    The index of the array.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023