----------------------------------- TransformSystem::OnComponentAdded Register transform components in the render scene when they are added to the ECS
| 21 | // Register transform components in the render scene when they are added to the ECS |
| 22 | // |
| 23 | void TransformSystem::OnComponentAdded(EcsController& controller, TransformComponent& component, T_EntityId const entity) |
| 24 | { |
| 25 | UNUSED(controller); |
| 26 | UNUSED(entity); |
| 27 | |
| 28 | component.m_NodeId = UnifiedScene::Instance().GetRenderScene().AddNode(component.GetWorld()); |
| 29 | } |
| 30 | |
| 31 | //------------------------------------- |
| 32 | // TransformSystem::OnComponentRemoved |