GetEntitiesFromBucket /Scene and entities

void GetEntitiesFromBucket(vector2 bucketKey, ETHEntityArray &outArray)

Fills the array with handles to entities from the bucket bucketKey. This function is accumulative, &outArray won't be cleaned before more entities are inserted. More about scene buckets.

Sample:

// fill the array with all entities on buckets (2,2) and (0,1)
ETHEntityArray ents;
GetEntitiesFromBucket(vector2(2,2), ents);
GetEntitiesFromBucket(vector2(0,1), ents);