x

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"

Paper 2D, separating render depth from collision

Hey peeps,

A question for anyone using Paper 2D: is there a nice way to control what z-order sprites are rendered in while having them all on the same layer for collisions?

To elaborate, I have several sprites that need to overlap during play, but I want to make sure that sprite A is always rendered on top of sprite B, while also allowing the OnComponentBeginOverlap events to fire for both.

So far I have done this by having two sprites in every actor - a visible rendering sprite which is set to a certain depth in the level to ensure that sprites are rendered in the correct order, and a second, invisible, duplicate sprite for collisions, which is set to a depth that is the same for all other actors, allowing it to overlap with every actors collision sprite.

However, I seem to recall seeing settings around for z-order in various places, and I want to make sure I'm not missing something obvious - is there a setting for the rendering z-order of a sprite that I could specify, and so remove all my duplicated sprites since I could have sprites at the same depth while controlling their render order?

I appreciate any thoughts you might have!

Product Version: UE 4.7
Tags:
more ▼

asked Jun 16 '15 at 02:23 PM in Using UE4

avatar image

MkII
143 15 16 27

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

1 answer: sort voted first

I'm going to assume I'm doing it right then :)

more ▼

answered Jun 23 '15 at 12:42 PM

avatar image

MkII
143 15 16 27

(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