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 /
  • Help Room /
avatar image
1
Question by hale326 · May 02, 2016 at 10:36 AM · spritebug-perhapshierarchystucksceneview

Sprite stuck in scene view but not visible in hierarchy

So I'm quite new at using unity, and I was dragging a sprite from my assets into the scene view. While doing it, I accidentally pressed alt, with the result that I made 2 copies of the sprite -one when I pressed alt and the second when I released it-. Now I'm trying everything but I can't delete them, I also tried to restart unity with no result. Undo doesn't delete them, they are not visible in hierarchy and I also cannot select them. Does anyone know how to help me?

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

7 Replies

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

Answer by hale326 · May 07, 2016 at 09:24 AM

I finally solved the problem in the only way I could. So for everyone that may have the same problem in the future, I simply copied everything in the hierarchy, created a new scene and pasted everything there. That's it. The "impossible sprites" are gone in the new scene, so it must be some kind of bug the fact that for unity, they seem to not exsist. A little note for everyone: for now, NEVER drag an asset in the scene view while pressing alt if you don't want your asset to be stuck there for a long time. "Undo" doesn't solve the problem, you have to close the project without saving to go back.

Anyway, thanks to everyone that tried to help me.

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
5

Answer by mbalestrini · Jan 18, 2017 at 02:25 PM

This worked for me:

Select the sprite by doing Ctrl+a (the only way for me to be able to select it) and then Ctrl+click every object in the hierarchy to deselect it, then hit delete on your keyboard.

Copied from: https://forum.unity3d.com/threads/my-sprite-shows-in-scene-and-game-view-but-there-is-no-gameobject-and-i-cant-move-remove-it.386938/

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 eladleb4 · Feb 03, 2017 at 10:32 PM 0
Share

Thanks! We can be make it a bit easier:

  1. Ctrl+A to select all objects in the hierarchy

  2. Ctrl+C to copy

  3. Delete to delete all objects

  4. Ctrl+P to paste everything (else) back

Worked for me.

avatar image mbalestrini eladleb4 · Feb 04, 2017 at 01:22 AM 0
Share

Yeah, that's easier! But I don't know why I'm afraid that if I delete and paste everything back something might not be exactly the same :)

avatar image xDranik mbalestrini · Feb 19, 2017 at 10:21 PM 0
Share

You can select all items in the hierarchy by clicking the top most, holding shift and clicking the bottom most item. You can deselect them all in one click in the inspector this way

avatar image
2

Answer by easyBoy · Mar 17, 2017 at 02:24 AM

Better way to this

  1. Ctrl + A to select all the objects in the hierarchy

  2. Suppr to delete them all.

  3. Ctrl + Z to restore all the objects: the problematic object will not appear anymore

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
1

Answer by slake_it · Nov 06, 2016 at 02:21 AM

I've created a simple editor menu method to select the game object, then you can simply hit the delete button on the keyboard & it will be gone.

NOTES

  1. put the method in any class

  2. change the name variable to your stuck game object name

  3. copy the name from the hierarchy not the project view ( the encoding seems to be different for some reason)

  4. go to MyMenu - > select object by name - > hit delete

       [MenuItem("My Menu/Select By Name")]
                 public static void SelectByName()
                 {
                     string name = "my stuck object name";
                     GameObject myObject = GameObject.Find(name);
                     Selection.activeGameObject = myObject;
                 }
    
    
    
    
    
    
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 TobyKaos · May 02, 2016 at 12:01 PM

Try to reimport the scene on the project folder.

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 hale326 · May 02, 2016 at 09:19 PM 0
Share

Didn't work, sprites are still stuck there.

avatar image TobyKaos · May 03, 2016 at 07:07 AM 0
Share

Even Reimport all? (can be long)

avatar image hale326 TobyKaos · May 03, 2016 at 11:04 AM 0
Share

Yes, I already tried that, it's not a big project so it didn't take too long, but the situation didn't change

  • 1
  • 2
  • ›

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

77 People are following this question.

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

Related Questions

Animation render position 0 Answers

Images/Sprites are invisible in scene view 0 Answers

Getting all sprites to render inside of the Perspective camera 1 Answer

Why won't my downloaded asset appear in the scene or hierarchy? 1 Answer

Sprite Editor can't create slice 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