Why are sprites disappearing?

So I’m working on a paper 2d game and when I go into play mode certain environment sprites disappear, unless the player sprite runs over them facing to the right. When that happens the player sprite becomes like a window to the sprite that should be behind it. Any ideas why this might be happening?

I know this is a three year old post but for anyone else who has this issue this may or may not help:

If the sprites re-appear under certain circumstances then you should check your near clipping plane which you can find under your 2DSideScrollerCharacter>SideViewCameraComponent>Camera Settings.

I ran into a similar issue yesterday where I extracted my sprites from a sprite sheet and all of the settings were exactly the same. When I pressed play all the ones that were originally on the top of the sprite sheet disappeared but had no issue for the bottom ones. I originally thought it was a z plane issue but it was not. I fixed it by changing the default material applied to the sprite from the given translucentunlitspritematerial to maskedunlitspritematerial.

For new UE4 users:
You can do this by double clicking the sprite you have issues with in the content browser. Look to the right you’ll see “Default Material”. If you have the paper 2d components exposed then you’ll find it no problem. If you do not then click on the little magnifying glass underneath the name of the default mat that is currently being applied. This will bring you to the paper 2d folder that holds the other default materials. Here you can select and drag the new material over to your current default material. To get back to your content folder you will have to scroll up in the list of folders to the left and select the content folder. It should be at the top.

Using version UE 4.20.3

1 Like

Thanks, i solved my problem by using this advice “I fixed it by changing the default material applied to the sprite from the given translucentunlitspritematerial to maskedunlitspritematerial”

1 Like

dude i know it been long time too but THANK YOU SO MUCH!!!

This is insane but it works … thank you! The only problem is that you disable Alpha canal. The change in the material is simply in Blend Mode which is set to Masked instead of Translucent.

So in general I guess it’s a bug in UE, this solution works, but you loose some features.