Unreal crash while Spawning actor c++
hi everyone, there is a problem that i couldn't solve for days, HELP! i am trying to Spawn an Actor to the world and when i spawn the actor while game is running Unreal crashes. to be specific, i when my player overlaps a BoxComponent i want to spawn an Actor. let's call it obstacle. here is the code for spawning.
i tried some similar thing before and i assume its becuz collision stuff. so here is a photo of Obstacle's mesh and colliders. here is where the obstacle should be Spawned(this is Floor which contains Some Collision to prevent the Player from falling.
thank you x_X.
asked May 20 '19 at 11:08 AM in C++ Programming
i am pretty sure that this crash does not relate on my code cuz i attached debugger to the editor and when ue4 crashes there is nothing to do with the code, debugger shows nothing wrong about codes. so i was thinking to change the collision setting. i set the collision of where the obstacle will spawn, and it works.
i literally have no idea why it happens and is it a bug or nah! but it works fine, if you have spawn actor problems, and ur sure there is nothing to do with yr code, without wasting seconds change the collision settings. when my obstacle's box component, overlapped by the floor's box component, becuz of collision stuff of floor, box components of obstacle and floor cuzed the crash O_o
Follow this question
Once you sign in you will be able to subscribe for any updates here