Array copy error
Cao Wang:
How to put data values into all_signals[0] directly?
How to put data values into all_signals[0] directly?
I don't know how to do this using the built-in function given the use of a two-dimensional array, but you can simply write 2 lines:
#define _size 19 void OnStart() { int all_signals[6][_size]; int data[_size]; for(int i = _size - 1; i >= 0; i++) all_signals[0][i] = data[i]; }
It's faster than reading the ArrayCopy documentation
'all_signals' - invalid array access
How to put data values into all_signals[0] directly?