Iterator the specific Component in World With break.
- Template Parameters
-
- Parameters
-
| [in] | frameInfo | The current frame data. |
| [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 2332 of file Renderer.h.
2333 {
2335
2340 frameInfo.m_World->ViewComponent<
T>([&](
auto e,
auto& tComp) {
2341 auto& transComp = frameInfo.m_World->GetRegistry().get<TransformComponent>(
e);
2342
2350 return func(static_cast<int>(e), transComp, tComp);
2351 });
2352 }
#define SPICES_PROFILE_ZONE