Hello. Im trying to spawm object using SpawnActor mecthod, but it failed every time and returnes nullptr. I’ve debugged it and found that it fails here
if (Actor->IsPendingKill() && !SpawnParameters.bNoFail)
{
UE_LOG(LogSpawn, Log, TEXT("SpawnActor failed because the spawned actor %s IsPendingKill"), *Actor->GetPathName());
return NULL;
}
So I have 2 questions:
- Why my new actor is marked as PendingToKill right after it was spawned?
- I cant see this log in my editor. I’ve checked editor setting and I didn’t found SpawnActor log category. Have a missed something?
UPD:
1.It happens because of my code. So, it’s okay.
2. Still have no idea(
Thank you!