Unity - Scripting API: NativeSlice<T0>
struct in Unity.Collections
/
Implemented in:UnityEngine.CoreModule
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Submission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Description
Native Slice.
Properties
| Length | Number of elements in the slice. |
| Stride | Returns stride set for Slice. |
| this[int] | Access NativeSlice elements by index. Notice that structs are returned by value and not by reference. |
Constructors
Public Methods
| CopyFrom | Copy all the elements from a NativeSlice or managed array of the same length. |
| CopyTo | Copy all the elements of the slice to a NativeArray or managed array of the same length. |
| GetEnumerator | GetEnumerator. |
| SliceConvert | SliceConvert. |
| SliceWithStride | SliceWithStride. |
| ToArray | Convert NativeSlice to array. |
Operators
| NativeSlice<T> | Implicit operator for creating a NativeSlice from a NativeArray. |