- Home /
The question is answered, right answer was accepted
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?
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 =]
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.
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 =]
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!
"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..
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.
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) );
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...
However the whole field isn't really necessary
Why is the field not necessary? $$anonymous$$ind to do a quick explanation?
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();
}
}
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.
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.
Hmm, i thought they fixed this issue a long time ago... $$anonymous$$aybe it was a bad combination of converting / deleting the post.
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.
@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.
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:
It is a retarded question haha just delete it from recycle bin (Almost word to word) - XxJasob420xX
...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.
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
Comment piece 2
Follow this Question
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