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. |