Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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 /
This question was closed Apr 15, 2013 at 07:12 AM by Chronos-L for the following reason:

The question is answered, right answer was accepted

avatar image
1
Question by Chronos-L · Mar 23, 2013 at 02:12 AM · interfacekeydeleteinteraction

Permanently Delete Assets from Project View

How to permanently delete an assets from my project?

I have tried Google, but with no results.

I am looking for a delete similar to Shift-Del in Windows. I have tried Del and Shift-Del in Unity project, but my assets are simply moved to recycle bin. I can empty the deleted assets from my recycle bin, but I hope that I can do a permanent delete straight from project view.

Any thoughts on this one?

Comment
Add comment · Show 6
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 AlucardJay · Mar 23, 2013 at 06:50 AM 1
Share

Don't know what just happened to half the comments then (including my last one), but just to confirm : sure, I am a big user of Shift+Del, so I totally understand how it can be useful especially for how you want to use it, am following this hoping you can get a clear informed answer. Good Luck =]

avatar image Chronos-L · Mar 23, 2013 at 07:07 AM 0
Share

@alucardj,

I was trying my best not to sound offensive, maybe sometimes I will sound a bit tensed-up or not satisfied.

But XxJason420xX start to write offensive comments, even clai$$anonymous$$g that "I am not trying to be friendly, it is a retarded question". then he start accusing me of being obnoxious.

I had no choice but to report him and had his answer removed by a moderator, while you converting all these to comments for my question.

avatar image AlucardJay · Mar 23, 2013 at 07:17 AM 0
Share

no problem at all, you were decent in your response. I have actually been going right off in the past few days (hence the me too comment). Still hoping you get an answer =]

avatar image AlucardJay · Mar 23, 2013 at 09:16 AM 0
Share

Last reply also not showing ....

No problem at all Chronos-L, you responded tactfully, very restrained after being provoked, well done. I have been going off the past few days myself (is my frustration to 'copy-paste, this doesn't work' people showing?!). Still hoping you get an answer.

Edit : Bunny83, you are absolutely Awesome!

avatar image XxJason420xX · Mar 24, 2013 at 03:32 AM 0
Share

"I am not trying to be friendly, it is a retarded question" I never said that!! and i deleted my answer it didn't get removed. Pull your head out of your ass..

Show more comments

2 Replies

  • Sort: 
avatar image
3
Best Answer

Answer by Bunny83 · Mar 23, 2013 at 09:10 AM

You can use this utility window i've just written ;)

The default hotkey is CTRL+E since SHIFT+DEL is already used by Unity and i couldn't figure out how to specify the delete key as hotkey ;) ("del" didn't work. It shows as "DEL" but it does not work. Probably because delete handled in a special way).

Tested only on my Windows PC (WinXP 32Bit). If you use a mac, feel free to post a comment if it works.

Comment
Add comment · Show 5 · 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 Chronos-L · Mar 23, 2013 at 09:43 AM 0
Share

Wow. This is great. It is even better than just a straight-forward permanent delete.

There is a little warning from a obsolete EditorGUILayout.ObjectField() in line 48.

I change it from:

 var newObject = EditorGUILayout.ObjectField( asset, typeof(UnityEngine.Object), GUILayout.Width(75) );

to:

 var newObject = EditorGUILayout.ObjectField( asset, typeof(UnityEngine.Object), GUILayout.Width(75) );
 
avatar image Bunny83 · Mar 23, 2013 at 10:48 AM 0
Share

Ahh, yes :) I didn't check the warnings. However you posted the same line two times ^^

The fix is to insert an "false," after type parameter:

 var newObject = EditorGUILayout.ObjectField( asset, typeof(UnityEngine.Object), false, GUILayout.Width(75) );

However the whole field isn't really necessary. I.ll fix the linked script...

avatar image Chronos-L · Mar 23, 2013 at 11:21 AM 0
Share

However the whole field isn't really necessary

Why is the field not necessary? $$anonymous$$ind to do a quick explanation?

avatar image Bunny83 · Mar 23, 2013 at 11:54 PM 0
Share

Uhm, well, the editor window is actually just a confirmation dialog. So it would be sufficient to just display the delete and cancel button. The listing of the files is just a gimmick. What files you delete is specified by your current selection. I just put an ObjectField in to be able to ping a certain file when clicking it.

You could even delete the assets without confirmation, but i guess that wouldn't be nice. If you accidentally press the hotkey, the selected objects are lost forever. At the beginning i had used an auxiliary window (ShowAuxWindow) so the window closes automatically when it's unfocused. That way you could reduce the whole window into a one-button-window ;)

If you want to know how it looks like, just change this:

     window.ShowUtility();

to

     window.ShowAuxWindow();

and removed all content from OnGUI except:

 void OnGUI()
 {
     GUI.color = Color.red;
     if (GUILayout.Button("Delete selected files forever"))
     {
         Delete();
     }
 }
avatar image Chronos-L · Mar 24, 2013 at 12:36 AM 0
Share

I think I am going to keep the utility script as it is. I kinda like the way it lists out all the assets I am going to delete.

avatar image
0

Answer by Chronos-L · Mar 23, 2013 at 09:46 AM

Answer/Announcement/Answer-Counter-Nullifier

hen I reported on a inappropriate answer and get it removed from my question, the answer-counter for this question dropped to -1, now I have 1 answer from another user. The counter get back to 0 instead of 1.

This answer/announcement is posted here to set the answer-counter back to 1, so that I can show that this question has 1 answer to it.

Comment
Add comment · Show 8 · 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 Bunny83 · Mar 23, 2013 at 10:50 AM 0
Share

Hmm, i thought they fixed this issue a long time ago... $$anonymous$$aybe it was a bad combination of converting / deleting the post.

avatar image Bunny83 · Mar 23, 2013 at 10:53 AM 1
Share

Ok, i just posted a comment, converted it to an answer and deleted it. Now we have the correct answer count ;)

I guess the problem is that a post keeps it's original type. So when posting an answer (+1) but then convert it to a comment (-1) and then delete the comment which is still marked as an answer internally it will decrement once more (-1).

I just did the opposite: post a comment, convert to answer (+1) and delete the answer. Since the answer is actually a comment it won't decrement the counter.

avatar image Chronos-L · Mar 23, 2013 at 11:44 AM 1
Share

@alucardj, I might seemed cool, but I was really upset for a short moment when that kid start acting inappropriately.

But I realized that I should not start any unnecessary back-and-forth argument over the Internet with some random fellas that I barely knows. Doing that will make me sink to their level, or even lower.

Ins$$anonymous$$d I start a ritual to lay down a curse on them so that they will suffer eternal damnation... Na, just kidding. I told myself it is not worth it to be mad with some random impolite fellas that happens to cross path with me.

These fellas will get what they deserve soon enough had they live their life with the way they behave.

avatar image Chronos-L · Mar 24, 2013 at 04:15 AM 1
Share

Just received this in my inbox: "I am not trying to be friendly, it is a retarded question" I never said that!! and i deleted my answer it didn't get removed. Pull your head out of your ass.. - from xxjason420xx

You may not say it in word by word, but that how I interpret it. Here's what the original comment set look like:

  1. It is a retarded question haha just delete it from recycle bin (Almost word to word) - XxJasob420xX

  2. ...try not to use offensive word, you might try to sound friendly, but it sounds offensive to me.... - $$anonymous$$e trying to ease off the tension

  • am not trying to be friendly, it is a retarded question* - XxJasob420xX ($$anonymous$$ay not be exact, but it looks pretty offensive)

I have no comment on this, the previous conversation is gone for good, no point in arguing if there is no evidence to back it up.

Somehow the comments to my question is not showing up due to some internal bug. So does @xxjason420xx's defense over the matter. I will unsubscribe this question, leave it alone and move on.

avatar image Chronos-L · Mar 24, 2013 at 05:02 AM 1
Share

When I unsubscribe the question, I realized that all comments and answers (removed or not) are mailed to my email as notification. So, to defend myself, I will post what's is actually going on here.

Yes, @xxjason420xx, you are right. You did not say "I am not trying to be friendly, it is a retarded question". You said "I didn't type it to sound friendly LOL I typed it because it is a retarded question".

In between comment #1 and comment #2, I post a comment explaining that I have tried the usual way and I emphasized that I want to do it from project-view, as what I have said in my question. In the same time, I try to fend off the fact that he is not using a polite tone in this discussion; I said something like "...try not to use offensive word, you might typed it to sound friendly, but it looks offensive to me..."

Comment piece 1

alt text

Comment piece 2

alt text

screenshot.24-1.png (9.5 kB)
screenshot.23.png (6.2 kB)
Show more comments

Follow this Question

Answers Answers and Comments

13 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

Related Questions

GTFO Computer terminal style interface 0 Answers

How I create game for pc and get inventory for an app on my cell phone? 0 Answers

How to make binary array toggle,How to make binary array switch/toggle? 0 Answers

No Buttons Click when Play Exported WebGL version of the Game 0 Answers

How to make cursor locked but active in Unity 2017? 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