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
1
Question by Fattie · Aug 24, 2012 at 04:39 PM · editoreditor-scriptinggizmos

Simply, display or highlight empty game objects in Editor?

NOTE - amazing tip by Balthasar. In fact gizmo balls show in the editor EVEN WHEN NOT PLAYING, they show all the time. Incredibly handy for marking scene corners, etc.

Hey 60,000 questions came up

Imagine you have say 10 empty game objects in the editor, perhaps grouped under the one empty game object.

(You could be using them as markers, to define a river, or the like.)

Of course, if you click on one in the editor, it will show that one alone using the RGB-arrow-thingy.

I'd simply like all ten to be indicated in the Editor at the same time, in some way.

To be clear, NOT when it's running, simply in the editor when you're, err, editing!

Of course, if you select two (or more) empty game objects, or a "folder" of them, it just shows one only RGB-arrow-thingy at the center of the group.

I want to see each of the ten indicated.

Perhaps there's something you can turn on, which I do not know about?

Perhaps you can run a gizmo all the time when the editor is just sitting there? Is there something that simply adds a marker for every gameObject in the scene? Some sort of "editor Scriprt" magic?

To repeat I'm simply talking about when you're in the editor (not when you hit play)

Currently ... I actually just add a small ball to each of them! heh! and programmatically delete the balls when it plays.

alt text

Caption contest: eliminate little balls

balls.jpg (17.7 kB)
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

1 Reply

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

Answer by PitchBlackCat · Aug 24, 2012 at 04:54 PM

I'd write a simple gizmo-script and attach it to every object:

 function OnDrawGizmos()
 {
   Gizmos.color = Color.yellow;
   Gizmos.DrawSphere(transform.position, f1.0);
 }
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 Fattie · Aug 24, 2012 at 05:16 PM 0
Share

What the hell ??

I am astounded to see that this does in fact displays the yellow ball EVEN WHEN IT IS NOT ON PLAY ...

$$anonymous$$y goodness, I thought DrawGizmos only operated when on Play.

Astounding. Thanks :-O

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

8 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Can't add script: The script is an editor script 2 Answers

Gizmos icons 0 Answers

Showing Handles in the Game View 1 Answer

Gizmos.DrawLine is dissapearing after returning to editor after Playing the scene 0 Answers

How to assign ScriptableObject reference via Editor script? 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