Hello. Using topdown template i made simple pickups, set the onclicked callback, but when i pick it up and call Destroy() the mesh disappears but collision remains (there is invisible obstacle) and my character tries to run around it. How to properly remove the pickup after being picked up?
My pickup is made of USphereComponent for collision and UStaticMeshComponent. USphereComponent (CollisionSphere) is RootComponent, Mesh is atatched to it. The invisible collision is caused not by sphere but by mesh (checked it by scaling the mesh it in editor)
I also tried using PickupMesh->DestroyComponent(), PickupMesh->SetCollisionProfileName(“NoCollision”);
Even SetActorLocation outside map leaves that obstacle. I noticed that its not necessarily destroy() problem. When i relocate it to somewhere up the collision is still in spawning point!