Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Wdarkfenix · May 14, 2015 at 03:46 PM · camerarenderingculling mask

Can i make an Object A appear always in front of an object B, but have an object C both in front of A and behind B?

So that's a little confusing so let me explain:

  • I have a bunch of indicators that are simply skinned planes, which I use to help the player aim his attacks.

  • I have the player and all other enemy entities.

  • And lastly I have my terrain where they all sit

Is it possible to make all the indicators appear always over the terrain, and all the enemies and player appear always over the indicator, but make the terrain block the enemies or player when needed?(e.g. if they are behind a hill) Edit: Hope you find the image clarifies this alt text

explanation.png (16.2 kB)
Comment
Add comment · Show 8
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image LostInCode404 · May 15, 2015 at 03:19 AM 0
Share

Well that's confusing for me also. i simply don't understand what are you trying to do. Can you give a diagram or your script so i can understand your problem. I want to solve your problem but can't do it without complete information

avatar image BMRX · May 15, 2015 at 03:35 AM 0
Share

Yeah it would be nice if you drew a picture of some sort describing what you're trying to achieve. I think I get the idea but I would like to be sure.

avatar image A3tra3rpi · May 16, 2015 at 05:06 PM 0
Share

I think i understand what you are trying to achieve. To render top of another object it must have bigger rendering queue number, so it renders after other: Player > indicator > terrain and player. The problem is that that player and terrain need to be rendered same time to hide each other when needed and same time only player rendered top of the indicator. I didnt wrote this as an answer because i have no idea how to achieve this...

avatar image Wdarkfenix · May 16, 2015 at 10:24 PM 0
Share

I added a new image hope it helps

avatar image $$anonymous$$ · May 16, 2015 at 10:36 PM 1
Share

Seems like you would be fine having the indicator always on top of the terrain. And just moving the entity either at the very back or foreground...

  • Entity (Background): Layer -1

  • Terrain: Layer 0

  • Indicators: Layer 1

  • Entity(Foreground): Layer 2

Show more comments

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Pause camera / Use last camera image on buffer 0 Answers

Masking elements with non-rendered layers? Culling masks, camera, render textures 0 Answers

Part of mesh disappears on certain rotation angles in first person. 2 Answers

Have Camera Render First Person Arms But Not Body. 2 Answers

What is rendered when no camera is in the scene? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges