Skip to content

save more than 40 recent projects #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
15 tasks done
unitycoder opened this issue Apr 9, 2021 · 5 comments
Closed
15 tasks done

save more than 40 recent projects #27

unitycoder opened this issue Apr 9, 2021 · 5 comments
Labels
enhancement New feature or request

Comments

@unitycoder
Copy link
Owner

unitycoder commented Apr 9, 2021

some ideas what needs to be done:

  • Take unity recent projects from registry (like it does already)
  • Load your existing own dictionary or list, of all recent projects (up to 100-200, depending if it starts to get too slow)
  • Merge unity registry and full list, can do that because project path is unique, so can check duplicates
  • Sort list by date before adding as source (or enable datagrid modified column sort as default)
  • Display full merged list (or unity 40 list), depending on your setting
  • Add settings checkbox: show only unity registry projects or keep x amount of projects history
  • trim list to max length (after sorting by date)
  • add new items to preferences list, but when? on datagrid refresh, if added project, or on exit? (and need to filter duplicates)
  • duplicate project: backslashes vs forward slashes
  • handle moved folders (remove from custom history?, but then if want to have show missing projects..) *they get filtered out most of the time, because on sorting, null modified dates go to last (before trimming project list)
  • enabled setting only takes effect after restart app?
  • bug: missing project displays target platform, even though it hasn't any, and if search, it doesn't display platform *it was sorting issue?
  • needs option to remove single items from list, since now some random project might end up on the list (of 1000 projects), even if its never used again.. (restore old "delete project from list" context menu? it deletes item from registry OR from custom list.. i think it works now, since projects are sorted) *Unity Hub moves next registry items to removed project items places, and then leaves only 0-38 items on the registry list, but they are not sorted.
  • handle situation: project is in both registry and custom list, should remove from custom list then? *i think this is already in, at GetProjects.scan()
  • handle situation: if have enabled show missing projects? might get lots of them, if have 1000 projects in history.. *can remove projects from context menu

Extras later:

  • multi-threading might be needed to scan project properties
  • window where user can remove projects from that custom full list (or clear preferences list button)
  • Checkbox/Combobox to select which types of projects to display (Hobby, Work, Prototypes? This could be useful to quickly filter out all quick projects (based on folder path))
  • OR, user could tag/favorite some projects, that then get added to custom list (always available, even if not listed in registry)
  • listbox in settings, to insert unity project root paths (so all folders get scanned and added from those folders, always)
  • option to AutoRemove projects after x days?, save lastopened.txt in non-git folder, cannot use last modified date to remove, or can we?
  • need to see where this project is coming from (from unity registry or from custom list), otherwise feels strange to see different list and order in hub

old text
current limitation comes from unity, they only save 40 recent project items into registry.

Computer\HKEY_CURRENT_USER\Software\Unity Technologies\Unity Editor 5.x
RecentlyUsedProjectPaths-0 to RecentlyUsedProjectPaths-39

could save them to separate dictionary, project path as index key?
but will there be issues merging unity registry recent items, with custom saved list ?
(since there will be duplicates, deleted projects, and need to sort by date also)

or manually save into unity registry, with new added item numbers?
(but does it mean if you open new project, you need to modify 40+ reg keys to append item as first?)

@unitycoder
Copy link
Owner Author

unitycoder commented Aug 17, 2021

looks like Unity Hub already supports reading more than 40 recent projects,
if you manually modify registry to add extra entries, those get listed in Hub (if path is valid):
image

although it has 40 set as maximum loop value
image

*seems to be slightly bugged, last item got duplicated after adding more projects to list from hub

@unitycoder unitycoder added the enhancement New feature or request label Feb 21, 2022
@unitycoder
Copy link
Owner Author

unitycoder commented Aug 10, 2022

🎉Jackpot!🎉

listed 158 projects (unity registry entries merged with custom folder directory list), and it wasn't too slow:
image

@unitycoder
Copy link
Owner Author

added in 83b744d

need to test a bit, if it causes any issues.

@unitycoder
Copy link
Owner Author

this is live in the prerelease build
https://github.com/unitycoder/UnityLauncherPro/releases/tag/1.0.38

@unitycoder
Copy link
Owner Author

hub 3.5 beta now supports +40 projects,
https://unity.com/unity-hub/release-notes#350-beta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant