Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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?alt text

alt text

Product Version: UE 4.9
sc1.jpg (600.6 kB)
sc2.jpg (27.8 kB)
more ▼

asked Oct 15 '15 at 12:18 AM in Rendering

avatar image

1 1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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

more ▼

answered Nov 14 '18 at 01:40 PM

avatar image

6 1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question