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 manavkataria · Mar 07, 2012 at 11:46 PM · mouseguitexturealphadynamiccircle

Drawing Sector around GameObject in GameView: GUITexture or 3D Object

What is an efficient way to draw a sector around a gameobject as shown below?

From the forums I read about drawing via Gizmos (not applicable in GameView), Projections, GUITextures and drawing a Textured 3D cylinder/sphere GameObject (would it work?) to probably achieve this effect.

Between GUITexture vs 3D cylinder/sphere approach what would be better?

Projections I read, might take up too many draw calls.

alt text

Comment
Add comment · Show 1
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 manavkataria · Mar 07, 2012 at 11:50 PM 0
Share

An equivalent of Handles.DrawSolidArc for the GameView?

1 Reply

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

Answer by Berenger · Mar 08, 2012 at 12:37 AM

For what I understand, Projectors (that's what you mean by projection ?) redraw the things they touch, so that's a lot of draw calls. I'd say go with a plane shaped as a triangle with a transparent unlit shader.

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 manavkataria · Mar 09, 2012 at 02:46 AM 0
Share

Thanks Berenger! Those pointers are helpful! I've never done rendering before so I'll look this up, experiment and get back to you if I have trouble.

A triangle shaped plane would be a mesh created via a script, right?

avatar image Berenger · Mar 09, 2012 at 03:34 AM 0
Share

Script or 3D App yes. But it could also be the default plane with a white triangle on a black background texture and a transparent shader.

If you're interested, here is a script I did a few weeks ago for an AI cone sight. It's generating a ... whatever the geomertic term for pie slice is, and use raycast to be occluded by obstacles. It's commented in french though, you might need google translate :p

avatar image manavkataria · Mar 10, 2012 at 12:26 PM 0
Share

Thank you! We've made some progress with your idea! What is the best way to make the length of the SolidArc dynamic? I can think of scaling the plane. If there's another, kindly lend your thoughts.

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

OnMouseExit Problems vs. RaycastAll 2 Answers

Move GUITexture with mouse 2 Answers

I want to place guitexture with a mouse. 0 Answers

Limit Mouse Look to Circle 1 Answer

Camera movement question 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