Currently trying to make a LogicComponent but it doesn’t seem to be working. In the logs when I create it it gives me
ERROR: Could not create unknown component type 383225A1
The header and source for it is basic enough and seems fine to me
Header:
class Player : public LogicComponent {
URHO3D_OBJECT(Player, ur::LogicComponent);
public:
Player(ur::Context *context);
static void RegisterObject(ur::Context *context);
virtual void Start();
virtual void FixedUpdate(float deltaTime);
private:
};
Source:
#include "Player.hpp"
Player::Player(ur::Context *context) : ur::LogicComponent(context) {
context->RegisterFactory<Player>();
}
void Player::RegisterObject(ur::Context *context) {
}
void Player::Start() {
}
void Player::FixedUpdate(float deltaTime) {
}
What’s causing it I believe is URHO3D_OBJECT, let me link what it’s complaining about: http://prntscr.com/fqf2vo
Quite strange.
Has anyone else encountered this happening before and found any solutions?