NativeArrayExtensions
Extension methods for NativeArray.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Class
- Namespace: Unity.Collections
- Assembly: UnityEngine.ManagedKernelModule
public static class NativeArrayExtensions
Static Methods
Method | Description |
|---|---|
| ArraysEqual | Returns true if this array and another have equal length and content. |
| Contains | Returns true if a particular value is present in a buffer. |
| CopyFrom | Copies all elements of specified container to array. |
| IndexOf | Finds the index of the first occurrence of a particular value in a buffer. |
| Reinterpret | Returns 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">Array reinterpretation</a>. |
Structs
Struct | Description |
|---|---|
| NativeArrayExtensions.NativeArrayStaticId<T> | Provides a Burst compatible id for NativeArray |