I have done what is in the lecture and tried to add the “mover” for the wall. When I go hit the “+Add” button and search for mover, it is not there in the list.
In Visual Studio when I compiled the code for this lecture, I got these messages and don’t understand them:
It won’t show up until you successfully compile that class for the first time.
The errors in VS Code are just from IntelliSense not knowing how that file is compiled. Whenever you add new files you need to do Tools > Refresh VS Code Project within Unreal so it updates the compileCommands with that file and thus inform IntelliSense.
As for your error, I suggest you compile from VS Code with Unreal closed.
Thanks, was trying to figure out why the changes from Live Coding and the editor kept disappearing when I reopened projects. Closing the editor and rebuilding from VSCode fixed it.
So to be clear, adding C++ components while Live Coding only adds them temporarily. To make them stick, we have to rebuild the project in VSCode for those C++ components to stay compiled (and attached to the Actors).
That’s any change not just addition of components. They’ll be lost on restart until you compile again, unless you compile with Unreal closed, it’s just worse for blueprints using new C++ components as they’ve effectively lost the class they’re using which would break them.