Table of Contents

Class ArrayExtensions

Namespace
Zorro.Core
Assembly
Zorro.Core.Runtime.dll
public static class ArrayExtensions
Inheritance
ArrayExtensions
Inherited Members

Methods

GetRandomPoint(Transform[])

public static Vector3 GetRandomPoint(this Transform[] array)

Parameters

array Transform[]

Returns

Vector3

GetRandomPoint(Vector3[])

public static Vector3 GetRandomPoint(this Vector3[] array)

Parameters

array Vector3[]

Returns

Vector3

GetRandom<T>(T[])

public static T GetRandom<T>(this T[] array)

Parameters

array T[]

Returns

T

Type Parameters

T

ToFloat3NativeArray(Vector3[], Allocator)

public static NativeArray<float3> ToFloat3NativeArray(this Vector3[] array, Allocator allocator)

Parameters

array Vector3[]
allocator Allocator

Returns

NativeArray<float3>

ToNativeArray<T>(T[], Allocator)

public static NativeArray<T> ToNativeArray<T>(this T[] array, Allocator allocator) where T : struct

Parameters

array T[]
allocator Allocator

Returns

NativeArray<T>

Type Parameters

T