Jump to content

Data Types Documentation


photo

Recommended Posts

In documentation "Programming\Unigine Script Language\Data Types -> Containers -> Vector" it might be helpfull to add user info, that Vector element access is 0-index-based. Also Source code sample for index-based element access seems to be a little bit missleading

 

// create a vector of a fixed size
int vector[10];
....
// remove the 1st element -> remove SECOND element
vector.remove(1);

Link to comment
×
×
  • Create New...