Given ArrayA ( this array ) and ArrayB ( not this array ), combines ArrayB with ArrayA at the specified index in ArrayA.
int32 Combine( ColorArray p_oArrayB, int32 p_nInsertIndex )
Parameter Type | Parameter Name | Documentation |
---|---|---|
<ColorArray> | p_oArrayB | The array you wish to combine with the destination array. |
int32 | p_nInsertIndex | The index at which to insert the source array into the destination array. |
import library "type_color_array_util.ssl";
auto Color red = new Color( 255, 255, 255, 255 );
auto ColorArray a = new ColorArray( 4, red );
auto Color blue = new Color( 128, 128, 128, 128 );
auto ColorArray b = new ColorArray( 4, blue );
a.Combine( b, 2 );
LibColorArray.Out( a );
255,
255,
255,
255,
255,
255,
255,
255,
128,
128,
128,
128,
128,
128,
128,
128,
128,
128,
128,
128,
128,
128,
128,
128,
255,
255,
255,
255,
255,
255,
255,
255