SpiecsEngine
 
Loading...
Searching...
No Matches

◆ OnConstruction()

void Spices::NativeScriptComponent::OnConstruction ( )
virtual

This interface defines the behaves on specific component added.

Reimplemented in Spices::CameraController, and Spices::MeshController.

Definition at line 27 of file NativeScriptComponent.cpp.

28 {
29 m_RealNScriptComp->m_Owner = m_Owner;
30
31 m_RealNScriptComp->OnConstruction();
32 }
entt::entity m_Owner
This component's Owner entity.
Definition Component.h:67
std::shared_ptr< NativeScriptComponent > m_RealNScriptComp
Real component.

Referenced by OnComponentAdded().