Class NativeSliceExtensions | DOTS Runtime | 0.29.0-preview.22
docs.unity3d.com
    Show / Hide Table of Contents

    Class NativeSliceExtensions

    Inheritance
    Object
    NativeSliceExtensions
    Namespace: Unity.Collections
    Syntax
    public static class NativeSliceExtensions

    Methods

    Slice<T>(NativeArray<T>)

    Declaration
    public static NativeSlice<T> Slice<T>(this NativeArray<T> thisArray)
        where T : struct
    Parameters
    Type Name Description
    NativeArray<T> thisArray
    Returns
    Type Description
    NativeSlice<T>
    Type Parameters
    Name Description
    T

    Slice<T>(NativeArray<T>, Int32)

    Declaration
    public static NativeSlice<T> Slice<T>(this NativeArray<T> thisArray, int start)
        where T : struct
    Parameters
    Type Name Description
    NativeArray<T> thisArray
    Int32 start
    Returns
    Type Description
    NativeSlice<T>
    Type Parameters
    Name Description
    T

    Slice<T>(NativeArray<T>, Int32, Int32)

    Declaration
    public static NativeSlice<T> Slice<T>(this NativeArray<T> thisArray, int start, int length)
        where T : struct
    Parameters
    Type Name Description
    NativeArray<T> thisArray
    Int32 start
    Int32 length
    Returns
    Type Description
    NativeSlice<T>
    Type Parameters
    Name Description
    T

    Slice<T>(NativeSlice<T>)

    Declaration
    public static NativeSlice<T> Slice<T>(this NativeSlice<T> thisSlice)
        where T : struct
    Parameters
    Type Name Description
    NativeSlice<T> thisSlice
    Returns
    Type Description
    NativeSlice<T>
    Type Parameters
    Name Description
    T

    Slice<T>(NativeSlice<T>, Int32)

    Declaration
    public static NativeSlice<T> Slice<T>(this NativeSlice<T> thisSlice, int start)
        where T : struct
    Parameters
    Type Name Description
    NativeSlice<T> thisSlice
    Int32 start
    Returns
    Type Description
    NativeSlice<T>
    Type Parameters
    Name Description
    T

    Slice<T>(NativeSlice<T>, Int32, Int32)

    Declaration
    public static NativeSlice<T> Slice<T>(this NativeSlice<T> thisSlice, int start, int length)
        where T : struct
    Parameters
    Type Name Description
    NativeSlice<T> thisSlice
    Int32 start
    Int32 length
    Returns
    Type Description
    NativeSlice<T>
    Type Parameters
    Name Description
    T
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023