NativeReference<T>
struct in Unity.Collections · Unity.Collections
Not in Unity's public API, or in an assembly the coverage doesn't count.
In Tassix
A single value in native memory, shared by copies and jobs.
Constructors 1
NativeReference(AllocatorManager.AllocatorHandle allocator, NativeArrayOptions options = NativeArrayOptions.ClearMemory)NativeReference(T value, AllocatorManager.AllocatorHandle allocator)Properties 2
readonly bool IsCreated { get; }T Value { get; set; }Methods 7
ReadOnly AsReadOnly()static void Copy(NativeReference<T> dst, NativeReference<T> src)void CopyFrom(NativeReference<T> reference)void CopyTo(NativeReference<T> reference)bool Equals(NativeReference<T> other)bool Equals(object? obj)Equal when the values are, as Unity compares them.
int GetHashCode()Operators 3
static implicit operator ReadOnly(NativeReference<T> nativeReference)static bool operator !=(NativeReference<T> left, NativeReference<T> right)static bool operator ==(NativeReference<T> left, NativeReference<T> right)