RefRW
Stores a safe reference a pointer to T
Read time 1 minuteLast updated 3 days ago
Definition
- Type: Constructor
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
RefRW(byte*, AtomicSafetyHandle)
Stores a safe reference a pointer to T
public RefRW(byte* ptr, AtomicSafetyHandle safety)
Parameters
Pointer pointing to an instance of T
AtomicSafetyHandle protecting access to 'ptr'
RefRW(NativeArray<T>, int)
Stores a safe reference to a component from an array of components at the index.
public RefRW(NativeArray<T> componentDataNativeArray, int index)