Hello All,
I’m new to UE5 and following along with this tutorial:
I have followed all the steps from the video in Unreal Engine 5.3 and Visual Studio 2022 and all the code builds and runs fine. The issue I need help with is that at the end of the video (around 32:20), the creator runs the solution which opens Unreal Engine and then opens the BP_ThirdPersonCharacter Blueprint Class. Along with the Character Movement Component, there is now an Ability System Component that should’ve be automatically added as a result of the GAS implemented throughout the video. When I build and launch my solution, however, it opens Unreal Engine and works perfectly fine but there is no attached Ability System Component on my BP_ThirdPersonCharacter Blueprint Class. If there are any other specifics I could provide that would help someone to assist me with this issue I’d really appreciate it. I’ll also add the YouTube comment I left on the video below in case it has any other pertinent information for figuring out what I might be doing wrong.
I followed along with this tutorial in Unreal 5.3 and Visual Studio 2022 and everything seems to have worked fine in terms of adding the code for GameAttributeSet.h, GameAttributeSet.cpp, PlayerCharacter.h, and PlayerCharacter.cpp. However, when I run the solution by pressing “Local Windows Debugger” in Visual Studio, Unreal Editor opens and everything works fine but when I open the BP_ThirdPersonCharacter Blueprint Class, I don’t see any attached Ability System Component like you have at 32:20. I’ve already tried playing the game to see if it’s only added once the game is run, rebuilding the entire solution in Visual Studio, and using the context menu on the project file to “Generate Visual Studio project files” but none of that has fixed the issue.
I also added some breakpoints in PlayerCharacter.cpp to see if the functions implemented in the video were ever being called and it seems like the constructor where AbilitySystemComponent is initialized does get called (breakpoint is triggered) while Unreal Editor is launching immediately after I click “Local Windows Debugger” but none of the additional functions (PossessedBy, OnRep_PlayerState, InitializeAttributes, GiveDefaultAbilities) are ever called (breakpoints are never triggered.) Also I’m not sure if it’s because I’m in 5.3 instead of the version of Unreal used in this video or if this might be indicative of the issue but a lot of the code in the constructor relating to the camera, boom, etc. is not in my PlayerCharacter.cpp file. Also of note is that I didn’t have a C++ classes folder in the beginning so I followed the advice of blueblurguy22 in this comments section and added the classes via “Tools → New C++ Class”
I’d be happy to provide any additional information that could help pinpoint the cause of this issue as I’m very eager to continue following along with this series. If anyone has any ideas how I could fix this it would be greatly appreciated!