Click or drag to resize

JobsUtilitiesTrySplitVector3sIntoNativeArrays Method

Take an array of Vector3s and try to split it into 3 NativeArrays for x, y, and z values.

Namespace:  DustProductions.Core
Assembly:  DustProductions.Core (in DustProductions.Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static bool TrySplitVector3sIntoNativeArrays(
	this Vector3[] vector3s,
	NativeArray<float> xArray,
	NativeArray<float> yArray,
	NativeArray<float> zArray
)

Parameters

vector3s
Type: Vector3
The array to split into NativeArrays.
xArray
Type: NativeArraySingle
The NativeArray that will hold the values for x.
yArray
Type: NativeArraySingle
The NativeArray that will hold the values for y.
zArray
Type: NativeArraySingle
The NativeArray that will hold the values for z.

Return Value

Type: Boolean
True if the split is successful, false otherwise.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also