Get entities with component in world.
2257 {
2259
2260 auto entities = std::make_shared<std::vector<uint32_t>>();
2261
2262 world->ViewComponent<MeshComponent>([&](auto entityID, auto& tComp) {
2263
2264 entities->push_back(static_cast<uint32_t>(entityID));
2265 return false;
2266
2267 });
2268
2269 return entities;
2270 }
#define SPICES_PROFILE_ZONE