I compile, close, and open the project in Unreal, but when I search for it with the right mouse button, it finds nothing… why?
When compiling in Visual Studio there are errors, but not related to my function, there were already some errors just after opening Visual Studio without me having written anything of my own… I don’t know if this could be the problem or not, but if so, why are there already errors?
and payed attention to do all of things correctly, with the help of @Chatouille and @3dRaven, but nothing changed. Only after the restart of the pc the function appear in the blueprint… IDK why, but now it’s appeared. So, thanks all
Are you writing your code in a main module or are you making a plugin? Your code seems fine for main game code, but for a plugin you should at least make sure it’s enabled in your project.
Can also suggest to try the classic solution for a lot of ue’s weird problems:
remove “binaries”, “intermediate”, “saved” folders from your project
regenerate *.sln
“rebuild all” Usually it doesn’t really help, but sometimes it does