[4.11] Skeletal Mesh Disappearing on Possess

Hi,

The first player’s Skeletal mesh will disappear once the pawn is possessed (This happens if the pawn is spawned by the gamemode, or spawned manually). This only ever happens to the first player. If another pawn is possessed by a different player, then their mesh will appear fine.

The error occurs in PIE, and when the pawn without a mesh is selected, the skeletal mesh component still has a valid skeletal mesh assigned to it. However nothing will render.

This was not an issue in 4.10.0.

Hi PB-,

  • Does this occur in a clean, blank project with no additional content or is it limited to one project?
  • What steps can I take to reproduce this on my end?
  • What is the blueprint setup you are using for your possession mechanic?

Hi ,

I’ll need to get back to you on testing it on a blank project, however I’ve found the issue that was causing the mesh to disappear.

I’m not entirely sure why, but when “Possess” is called on our pawn, “Actor Hidden in Game” is being set to true on the Blueprint Actor. Forcing this back to false on the tick of the actor solved the issue.

If it is still helpful: The Spawning & Possession are achieved by checking if there is a valid player controller in the slot assigned to a character select spawn BP, if there is we use “Spawn Actor from Class” to create the pawn, we move the pawn to a set location, then after a one second delay, we possess the pawn. At this point, if it is Player Controller 0, a few frames (seem) to pass and then it will stop rendering.

Hope that helps!

Do you have any logic in the blueprint that hides/unhides the actor that could be accidentally firing when you possess it?

There shouldn’t be anything in our blueprints that will do this. To be sure, I did go back through what we were doing with “Event Possessed”, and disconnecting all of our logic in there still caused this error. It’s also something that was not happening in 4.10.0.

Do you have a sample project where this is occurring that I can take a look at? I’ll be happy to see what may be occurring.

Hi PB-,

We have not heard from you in several days. I am marking this as answered for tracking purposes. If you are still experiencing this error, please comment with the requested information.