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 Vincenzo Albery · Aug 08, 2010 at 10:06 AM · circlegizmosdrawing

Draw a circle arround objects

Hello Everybody,

i want draw a circle around objects in the game... I researched many techniques about that example : gizmos, projector... Which is good for the best performance and fps ?

I working about 3D Tower Defences game and i want know my objects defence radius.

How can i make that? I wait your ideas

Thank you for your help

Regards

Vincenzo

Comment
Add comment
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

2 Replies

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

Answer by Peter G · Aug 08, 2010 at 01:07 PM

I'm not sure of the best performance method, but here are a couple ideas. I would avoid projectors if you can because they can cause many draw calls.

  1. A four vert. plane with a radius texture would be very efficient. This is probably the fastest method to implement and for performance. The only drawback is that it is difficult to line up on uneven terrain. And, another benefit, if you are using Unity IPhone, the planes can be batched together.

  2. Gizmos don't show up in builds so they would be almost useless in the actual build.

  3. You could use a GUI Texture and several cameras to achieve the same look. The 4 vert plane idea is probably faster, but if you have uneven terrain then the Texture would always be drawn on top of the ground.

  4. You could use the shader tricks tutorial example where it lerps in a texture based on distance from a point. That takes some programming knowledge, but would let you do some other effects also, and the defense radius would be exactly on the ground.

  5. You could use a projector, but they often cause lots of draw calls. It would cause you defense radius to fit tightly to the ground though.

Comment
Add comment · 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
0

Answer by trooper · Oct 05, 2014 at 09:23 AM

Sphere around object with a transparent texture of an arrow or line or whatever you want.

Comment
Add comment · 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

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

1 Person is following this question.

avatar image

Related Questions

Draw mesh and gizmo directly from EditorWindow 1 Answer

Drawing circles on canvas's panel 0 Answers

3d Line Drawing in editor with z-sorting 2 Answers

I need help with GL drawlines in unity 1 Answer

Drawing an arrow on a circle 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