C++ Compile Bugs: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
[[Category:Bugs]] | [[Category:Bugs]] | ||
==UObject" has no member "BeginPlay" errors?== | |||
https://gamedev.stackexchange.com/questions/121388/why-do-i-get-uobject-has-no-member-beginplay-errors | https://gamedev.stackexchange.com/questions/121388/why-do-i-get-uobject-has-no-member-beginplay-errors | ||
Line 8: | Line 8: | ||
My solution was I was using BlueprintCallable instead of BlueprintReadWrite,I had duplicate Variable names | My solution was I was using BlueprintCallable instead of BlueprintReadWrite,I had duplicate Variable names | ||
If unreal doesn't generate a generated.h file than when you added the class to the project<br> | |||
==If unreal doesn't generate a generated.h file than when you added the class to the project==<br> | |||
it failed to compile, the generated.h files are created when you compile the projected then added<br> | it failed to compile, the generated.h files are created when you compile the projected then added<br> | ||
<p> | <p> | ||
Solution: Recompile the project and make sure it actually compiles before added header files. | Solution: Recompile the project and make sure it actually compiles before added header files. | ||
Line 23: | Line 23: | ||
You need to right click your Game Project in the Solution Explorer and select , "Set as Startup Project" | You need to right click your Game Project in the Solution Explorer and select , "Set as Startup Project" | ||
<p> | <p> | ||
(Right Click Your Project file, in this case SiELarian)<P> | |||
[[File:Unable_to_start_debugging.png]] | [[File:Unable_to_start_debugging.png]] | ||
<p> | <p> | ||
(And select Set as Startup Project) | |||
<P> | |||
[[File:Set_As_startup_project.png]] | [[File:Set_As_startup_project.png]] | ||
<p> | |||
When you open with the unreal Launcher directly you may be ask to rebuild project, just select Ok, and it should work |
Latest revision as of 16:28, 25 April 2025
UObject" has no member "BeginPlay" errors?
My solution was I was using BlueprintCallable instead of BlueprintReadWrite,I had duplicate Variable names
==If unreal doesn't generate a generated.h file than when you added the class to the project==
it failed to compile, the generated.h files are created when you compile the projected then added
Solution: Recompile the project and make sure it actually compiles before added header files.
You need to right click your Game Project in the Solution Explorer and select , "Set as Startup Project"
(Right Click Your Project file, in this case SiELarian)
(And select Set as Startup Project)
When you open with the unreal Launcher directly you may be ask to rebuild project, just select Ok, and it should work