Hey, I’m coming from Unity and have years of experience with c#. However, I think that’s exactly what’s becoming a burden to me, as the entire programming part seems to be very different in Unreal. I’ve been trying to create a blueprint for hours now and could really need some help. In exchange, I’ll make a “For Dummies”-style tutorial for the future
I started off of this tutorial :
A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums!
and just like described in the official programming 101 by epic ( Introduction to Programming | Live Training | Unreal Engine - YouTube ) I created a new project, clicked on File -> Add Code to Project. I then chose one of the classes that inherit from UBlueprintFunctionLibrary because UBlueprintFunctionLibrary itself is not available (greyed out actually). Now I open the files in QtCreator, because Visual studio doesn’t see the files (which were created under XXXProject/Intermediate/ProjectFiles).
Now I copy paste the code from the text tutorial (see first link) into my new files and change the new filenames accordingly to UVictoryBPFunctionLibrary.h and UVictoryBPFunctionLibrary.cpp . I ignore the errors for now and go back to the editor. However, unlike in Unity, Unreal does not seem to notice new scripts being added to the project, so I close it and rebuild the entire editor. I start it up again. The “VictoryBPLibrary” does not appear in the Blueprint menue (even without context sensitivity).
Since I had noticed QtCreator showing quite a bunch of red underlinings in the original header script, I add some semicolons to make them go away (c# user here, can’t stand anything except for ] not having semicolons at the end ). That didn’t help, nor did it throw any errors.
Finally I added complete judderish to the cpp file and built it again… Again, no errors, the build worked just fine fine. Moving the file somewhere where VS can see it didn’t do a thing either. Right now I’m force-rebuilding everything…
So I hope I’m doing something amazingly stupid Any help would be appreciated though.