Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


NativeArrayExtensions

Extension methods for NativeArray.
Read time 1 minuteLast updated 6 days ago

Definition

public static class NativeArrayExtensions

Static Methods

Method

Description

ArraysEqualReturns true if this array and another have equal length and content.
ContainsReturns true if a particular value is present in a buffer.
CopyFromCopies all elements of specified container to array.
IndexOfFinds the index of the first occurrence of a particular value in a buffer.
ReinterpretReturns the reinterpretation of this array into another kind of NativeArray. See <a href="https://docs.unity3d.com/Packages/com.unity.collections@latest?subfolder=/manual/allocation.html#array-reinterpretation"&gt;Array reinterpretation</a>.

Structs

Struct

Description

NativeArrayExtensions.NativeArrayStaticId<T>Provides a Burst compatible id for NativeArray
T
types. Used by the Job Safety System.