You’re putting function definitions and making function calls through pointers in the header file? I know VS2013 will allow it, but is that valid C++? Doesn’t all that belong in the cpp file?
Any code you can have in a .cpp file you can have in a .h file. You could declare and define every function of a class in the .h file if you wanted to. It will increase your compile time dramatically though if you add all your code to .h files as it will have to parse that code for every other file that includes the header. However, the compiler tends to have an easier time inlining functions that are written in the header.
one more question about components…
My class extends AActor and ive added an component… but how can i attach the component to the actor ?
For now I can move the Actor but the component is not moving…