Flipbooks and NavMesh
I have a flipbook that uses just ONE frame and I've tried with "First Frame Collision" setting and "Each Frame", but for the NavMesh it does not exist as an obstacle.
Other objects and Pawns collide fine, though.
If I simply spawn the sprite of that single frame, it gets detected by the NavMesh.
Am I doing something wrong?
asked Aug 24 '17 at 10:54 AM in Using UE4
Ok, old question. And nobody seemed to pay any mind to it.
Still, I've found the solution, so... in the unlikely scenario somebody needs it, here it is:
It's actually fairly simple, it's just a bool inside UActorComponent you can see using the UActorComponent::CanEverAffectNavigation() and set through the predictable SetCanEverAffectNavigation(bool b) of the same class.
I'm not sure why by default it works for sprites, but you have to set it for flipbooks. That's not really that important.
Happy coding, everyone.
answered Oct 31 '17 at 03:05 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here