Search Unity

Favorite All Scripts Missing.... How do you restore default?

Discussion in 'Getting Started' started by particlemars, May 30, 2017.

  1. particlemars

    particlemars

    Joined:
    Nov 20, 2016
    Posts:
    30


    Accidentally delete All Scripts. How do you restore default? Right click nothing shows up.
     
  2. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    There are no default scripts.

    I think the only way to restore the scripts you deleted is to get them from your backup solution (e.g. Time Machine or whatever you might use).
     
  3. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,411
    would be interesting to know where those are saved.. maybe re-installing unity restores it?

    *founded:
    C:\Users\user\AppData\Roaming\Unity\Editor-5.x\Preferences\

    see file:
    SearchFilters

    for all scripts its
    Code (CSharp):
    1.   - m_Name: All Scripts
    2.     m_Depth: 1
    3.     m_PreviewSize: 16
    4.     m_ID: 1000000003
    5.     m_Filter:
    6.       m_NameFilter:
    7.       m_ClassNames:
    8.       - MonoScript
    9.       m_AssetLabels: []
    10.       m_AssetBundleNames: []
    11.       m_ReferencingInstanceIDs:
    12.       m_ShowAllHits: 0
    13.       m_SearchArea: 0
    14.       m_Folders: []
     
    Last edited: May 30, 2017
    Kiwasi, Ryiah and JoeStrout like this.
  4. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    Oh! You're talking about the "All Scripts" filter! Sorry, I totally missed that... I thought you (the OP) were saying you had deleted all scripts from your project.

    Well spotted, @mgear!
     
  5. particlemars

    particlemars

    Joined:
    Nov 20, 2016
    Posts:
    30
    This is bad. It's security hole. Hard drive slow down.
    Recommend new users, pros or companies to save source code files before getting freak out.

     
  6. Schneider21

    Schneider21

    Joined:
    Feb 6, 2014
    Posts:
    3,512
    I don't understand. You deleted something in your Unity install, and that's Unity's fault? I'm pretty sure if I delete files that Photoshop uses that Photoshop will no longer work properly, either. Or if I delete important system files, or edit my registry, or remove a device's drivers...

    There's only so much you can do to prevent users from breaking things for themselves. When you're talking about game development, I would think a certain degree of technical understanding with your users is a safe assumption to operate on.
     
    Kiwasi likes this.
  7. Kiwasi

    Kiwasi

    Joined:
    Dec 5, 2013
    Posts:
    16,860
    Now that makes me wonder if I can extend that favorites section with my own filters. Nice find.
     
    JoeStrout likes this.
  8. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,411
  9. 3dgreg

    3dgreg

    Joined:
    Dec 31, 2014
    Posts:
    68
    Was anyone able to figure this out? Have the sane problem with the "scripts" favorites folder missing. (The one located on the project bar under "Favorites"). All materials as well as the All Models and All Prefabs are still there.
     
  10. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    I don't know where it went, but you can (re)create it by just typing "type:script" in the search field, then right-clicking that and picking "Save as Favorite" (or something to that effect; I don't have Unity open right now).
     
  11. 3dgreg

    3dgreg

    Joined:
    Dec 31, 2014
    Posts:
    68
    Thanks for the try but that's not working.
     
  12. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    Well, it was "something to that effect." :) The correct details are: do a search for "t:MonoScript", and then click the star button next to the search field to save this as a favorite.
     
    schmosef and Deleted User like this.
  13. Deleted User

    Deleted User

    Guest

    You're a life saver! ;)
     
    JoeStrout likes this.
  14. empiresmartboy

    empiresmartboy

    Joined:
    Jan 22, 2023
    Posts:
    1
    Am having the same issue
     
  15. RichAllen2023

    RichAllen2023

    Joined:
    Jul 19, 2016
    Posts:
    1,026
    Always make a backup of important files, that way if your PC dies while you're working, you've not totally lost everything.