Error: Unable to load GameInstance Class '/Script/MyProject.MyGameInstance'. Falling back to generic UGameInstance.

Hi, I’m stucked an error “Error: Unable to load GameInstance Class ‘/Script/MyProject.MyGameInstance’. Falling back to generic UGameInstance.”

MyGameInstance DID works well on Unrea Editor 5.3. The code is below.

UMyGameInstance::UMyGameInstance(const FObjectInitializer& ObjectInitializer)
{
    UE_LOG(LogTemp, Warning, TEXT("MyGameInstance Constructor"));
}

void UMyGameInstance::Init()
{
    Super::Init();
    UE_LOG(LogTemp, Warning, TEXT("MyGameInstance Init"));
}

But it’s failed when running on console like this “D:\UE_5.3\Engine\Binaries\Win64\UnrealEditor.exe D:\MyProject\MyProject.uproject -game -log”

I set MyGameInstance class in Project Settings → Maps & Modes → Game Instance.
And I built sereval times my project on VSI. But it didn’t work.

I’m using Windows 11 and UE5.3.
Thanks in advance :slight_smile: