Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 FutchProductionsSyndicate · Jul 12, 2011 at 09:54 PM · objectrendertransparentdepthcrosshair

Transparent object appear on top of all others

I've searched around a little, and im wndering if there is a shader/button that will allow me to have a object alays appear on top of other objects, similar to the 3D Text(without the 3D Text shader)?

This if for a targeting reticule. I thoug it would be easier to have a always-on-top texture lock to the target, instead of gui. Thanks for any help!

[EDIT] This is for a missle lock on, so it will track to the target, and can easily be animated

Comment
Add comment · Show 2
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 Chris D · Jul 12, 2011 at 09:59 PM 0
Share

http://answers.unity3d.com/search.html?redirect=search%2Fsearch&q=crosshair

avatar image FutchProductionsSyndicate · Jul 12, 2011 at 10:04 PM 0
Share

I'm not looking for a crosshair, i meant a missle lock on, that tracked to the target(im my case a car) and could be animated.

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by Chris D · Jul 12, 2011 at 10:09 PM

I think I'm missing something...
>>I want to have a plane parented to the target that alyways looks at the camera, that can move around with the target, and be animated.

Why not do exactly that? Check out the lookAt functions.

Edit
is this the kind of thing you're after?
http://answers.unity3d.com/questions/17841/always-render-a-object-on-top-of-another.html

also: http://answers.unity3d.com/questions/11594/how-do-i-specify-the-render-order-of-gameobjects.html

Comment
Add comment · Show 1 · Share
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 FutchProductionsSyndicate · Jul 12, 2011 at 10:28 PM 0
Share

Perfect! I already had the lookAt stuff figured out, just had to get it on top, thanks!

avatar image
0

Answer by Eric5h5 · Jul 12, 2011 at 09:59 PM

Use a GUITexture.

Comment
Add comment · Show 3 · Share
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 FutchProductionsSyndicate · Jul 12, 2011 at 10:03 PM 0
Share

GUI texture would be more diffifult than what i want. I want to have a plane parented to the target that alyways looks at the camera, that can move around with the target, and be animated.

avatar image Eric5h5 · Jul 12, 2011 at 10:18 PM 0
Share

GUITexture wouldn't be more difficult, it would be easier. To have the GUITexture move around with the target, use WorldToViewportPoint.

avatar image Waz · Jul 12, 2011 at 10:21 PM 0
Share

GUITexture has the disadvantage of not working nicely with Stereoscopics (3D glasses), but otherwise it's definitely the easier approach.

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

How to call OnGUI() on class object 1 Answer

Need Help > Why my 3D modelling became transparent 1 Answer

Rendering order of objects in different depths not correct. 1 Answer

How to make object turn transparent then solid again through a time duration? 1 Answer

Transparency shader that also writes to Camera Depth Texture 0 Answers


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