MCPcopy Create free account
hub / github.com/Illation/ETEngine / OnComponentAdded

Method OnComponentAdded

Engine/source/EtFramework/Systems/TransformSystem.cpp:23–29  ·  view source on GitHub ↗

----------------------------------- TransformSystem::OnComponentAdded Register transform components in the render scene when they are added to the ECS

Source from the content-addressed store, hash-verified

21// Register transform components in the render scene when they are added to the ECS
22//
23void 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

Callers

nothing calls this directly

Calls 2

AddNodeMethod · 0.80
GetWorldMethod · 0.80

Tested by

no test coverage detected