👩💻 Join our community of thousands of amazing developers!
代码(在GameMode::BeginPlay()中调用): void AReleaseGameMode::SpawnMainRole() { UE_LOG(LogTemp, Log, TEXT("SpawnMainRole 11111 ")); if (UMyGameInstance* WSGI = Cast<UMyGameInstance>(GetWorld()->GetGameInstance())) { UE_LOG(LogTemp, Log, TEXT("SpawnMainRole 22222")); if (ABaseCharacter* BC = GetWorld()->SpawnActor<ABaseCharacter>(WSGI->CurrentCharacter, MainRoleSpawnLoc_, MainRoleSpawnRot_)) { UE_LOG(LogTemp, Log, TEXT("SpawnMainRole 333333 ")); BC->SpawnDefaultController(); } } } 崩溃日志: [2018.01.12-16.4...