| JobsUtilitiesTryAddValuesFromVector3 Method |
Add the values of x, y, and z from a Vector3 to a NativeArray.
Namespace:
DustProductions.Core
Assembly:
DustProductions.Core (in DustProductions.Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static bool TryAddValuesFromVector3(
this NativeArray<float> nativeArray,
Vector3 vector3ToAdd,
int indexForAdd = 0
)
Parameters
- nativeArray
- Type: NativeArraySingle
The NativeArray to add the values to. - vector3ToAdd
- Type: Vector3
The Vector3 whose values will be added to the NativeArray. - indexForAdd (Optional)
- Type: SystemInt32
Optional parameter to designate where to start adding the values. Defaults to 0.
Return Value
Type:
BooleanTrue if the values are added successfully, false otherwise.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
NativeArraySingle. 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