How Node::GetComponent lua binding works?
It works with any types of components. I need to implement this for some my classes. For example I has this function:
StatesEngine::StateObject is basic class such as Urho3D::Component.
I can use all Urho3D::NavigationMesh functionality if I call:
But if I call it I can use only StatesEngine::StateObject functions.
In Node.pkg I see only:
// template <class T> T* GetComponent() const;
Component* GetComponent(const String type, bool recursive = false) const;
In my StateObjectsManager.pkg:
Is it ancient magic of Urho3D?