Hi, i want to use The StaticLoadClass function to keep the class in a variable for later use. The problem is, i have no idea how the paths work in unreal engine. This is what i have written, and it throws the error
CharacterClass = StaticLoadClass(UObject::StaticClass(), nullptr, TEXT("/Game/Attrition/Character/AttritionCharacter.AttritionCharacter_C"));
if(!CharacterClass) UE_LOG(LogTemp, Error, TEXT("%s() Failed to find CharacterClass - if it was moved, please update the reference location in C++"), *FString(__FUNCTION__));
The project’s name is attrition and this is the folder where te character class is located:
Attrition\Source\Attrition\Character\AttritionCharacter.cpp
Thanks for any input