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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How do I set actor to be in front of other objects?

I want to be able to have my actor overlap with other objects, but always be seen. How can I set the graphical priority of actors? So that it will always be rendered.

Product Version: UE 4.8
Tags:
more ▼

asked Aug 20 '15 at 09:14 PM in Blueprint Scripting

avatar image

r4rev2
68 14 17 19

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

1 answer: sort voted first
more ▼

answered Aug 21 '15 at 01:01 AM

avatar image

MrGrr
986 34 3 41

avatar image r4rev2 Aug 21 '15 at 02:08 AM

That isn't exactly what I wanted. I forgot to mention my project is a paper 2D project. All I want is the actor to appear in the front even though he is on the exact same layer.

avatar image MrGrr Aug 21 '15 at 02:57 AM

Oh. just change the Z depth offset for the sprite

Eg, if all sprites are at Z depth 0 and your player sprite is at Z depth 1 or 10 or 1million it will be in front of other sprites with a lower Z depth.

avatar image r4rev2 Aug 21 '15 at 04:11 PM

What exactly is that under? I can't find how to do what you're saying.

avatar image erinacea Aug 21 '15 at 05:40 PM

It's the Z value of the object's transform. For example, in my project I'm placing all floor sprites at -100, walls and other features at -50 and the character at 0. Like MrGrr said, you could use any values as long as the Z value for the background object is smaller than foreground object.

avatar image r4rev2 Aug 21 '15 at 09:37 PM

Would that be under the actor's blueprint? Or the sprites themselves?

avatar image erinacea Aug 22 '15 at 10:20 AM

Just drag two of your sprites (or SpriteActors if you've created Blueprints for them) into your level. Set them both to the same x/y values. Then change their Z values and compare what happens.

avatar image izikhuang Apr 27 '16 at 02:06 AM

May I know which parameter I should change if I want one actor always draw in front of others ? Thanks a lot...

(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