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 Team-Beachbum · Jan 05, 2015 at 09:08 PM · editorselectionusermulti

Editor script multi-selection?

How would I have an editor script restore a user selection in OnSelectionChange() if the user actually changes the selection? I've tried recreating the selection and sending it to Selection.objects = blablabla.ToArray() but that didn't work either... nor does it throw any complaints.

Has anyone figure out a way to store a user selection to be recalled later?

Thanks!

Comment
Add comment · Show 4
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 Team-Beachbum · Jan 06, 2015 at 10:28 PM 0
Share

Any takers? I could use some help with this.

avatar image Team-Beachbum · Jan 14, 2015 at 03:47 AM 0
Share

Should I repost this question for more visibility? I'm at a loss as to how to solve this and feel like there's just a lack of functionality with Unity's selection handling.

Can storing/recalling a multi-selection even possible?

avatar image richyrich · Jan 14, 2015 at 03:55 AM 0
Share

Given that there is a SaveSelection() and also LoadLastSavedSelection() given as examples in the docs, people might be wandering what else you want to know - which is not very clear. http://docs.unity3d.com/ScriptReference/EditorWindow.OnSelectionChange.html

avatar image Team-Beachbum · Jan 15, 2015 at 02:26 AM 0
Share

Richyrich,

Thank you for your response! It's better to hear that someone doesn't understand my problem than the sound of crickets. At least I now know that I was being too vague, a problem I sometimes have when trying not to insult the intelligence of others by UNDER-explaining! sigh

I've seen several examples of this being done but none of them worked for me. I have seen that page in the docs you sent. (Thanks for sending, btw.) I had tried a variation on that code that I felt should have worked, but didn't. Unfortunately for me, I didn't even think to go back and try that bit of code. Seeing it now, I have a feeling that I can only use Selection.instanceIDs. Oddly, nothing else worked (Selection.objects, Selection.gameObjects, etc.).

I'll give it another go. Thanks again!

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Auto-Selecting something else in Scene-View? 0 Answers

Selecting a range of hex tiles within radius of main tile 1 Answer

How can I set a selection-sphere in the editor 1 Answer

Preventing editor deselect on MacOS 1 Answer

Editor selection order 2 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