UE4 Closes after freezing
I cannot get the Maze to generate, when I enter the game ( using alt+p) it freezes, and after a few secs, UE4 closes abruptly.
I’ve been working on like 2 hours ,and i think my error relies when i set the tileX and tileY,(but as I cannot debug it, i’m not really sure),
to generate the maze i do :
EventBeginPlay->GenerateMaze(with tileX = 23, and tileY = 23)
I hope someone knows how to fix this.
If you need more info about my error ,tell me.
Thanks in advance.
EDIT:
I’ve managed to debug it, UE4 crashes here:
AStaticMeshActor* BlockTile = SpawnBP<AStaticMeshActor>(GetWorld(), TileBlockBP, GenSpawnLoc, GenSpawnRot);
TileBlockBP has a correct pointer,(it isnt null)
EDIT2:
It looks like SpawnBP isnt even called, when I call SpawnBP UE4 toggles a breakpoint here:
int32 Error = GetLastError();
And the breakpoints at the SpawnBP dont get called.
I don’t know why
, please help
Help is appreciated.