| JobsUtilitiesTrySplitColorsIntoNativeArrays Method |
Take an array of Colors and try to split it into 4 NativeArrays for r, g, b, and a values.
Namespace:
DustProductions.Core
Assembly:
DustProductions.Core (in DustProductions.Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static bool TrySplitColorsIntoNativeArrays(
this Color[] colors,
NativeArray<float> rArray,
NativeArray<float> gArray,
NativeArray<float> bArray,
NativeArray<float> aArray
)
Parameters
- colors
- Type: Color
The array to split into NativeArrays. - rArray
- Type: NativeArraySingle
The NativeArray that will hold the values for r. - gArray
- Type: NativeArraySingle
The NativeArray that will hold the values for g. - bArray
- Type: NativeArraySingle
The NativeArray that will hold the values for b. - aArray
- Type: NativeArraySingle
The NativeArray that will hold the values for a.
Return Value
Type:
BooleanTrue 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