Iterator the specific Component in World With break With range.
- Template Parameters
-
- Parameters
-
| [in] | frameInfo | The current frame data. |
| [in] | ranges | Entities View ranges. |
| [in] | func | The function pointer that need to execute during this function. |
Iter use view, not group.
- Attention
- Group result nullptr here.
This function defined how we use these components.
- Parameters
-
- Returns
- Returns true if need break for for loop.
Definition at line 2405 of file Renderer.h.
2406 {
2408
2413 frameInfo.m_World->ViewComponent<
T>(ranges, [&](
auto e,
auto& tComp) {
2414 auto& transComp = frameInfo.m_World->GetRegistry().get<TransformComponent>(
e);
2415
2423 return func(static_cast<int>(e), transComp, tComp);
2424 });
2425 }
#define SPICES_PROFILE_ZONE