RefRW
Stores a safe reference a pointer to T
阅读时间1 分钟最后更新于 19 天前
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)