Giter Club home page Giter Club logo

ravbug / unityhubnative Goto Github PK

View Code? Open in Web Editor NEW
338.0 12.0 19.0 50.53 MB

A native alternative to the heavy Electron Unity Hub, written in C++

License: Other

Makefile 5.83% C 29.84% Shell 2.53% C++ 48.86% CMake 1.07% M4 1.23% Python 0.49% Batchfile 0.06% Inno Setup 0.01% Perl 0.20% Module Management System 0.26% HTML 0.90% Objective-C 6.69% CSS 0.07% Objective-C++ 1.11% Roff 0.83% SAS 0.01% Smalltalk 0.01% WebAssembly 0.01% Assembly 0.02%
unity3d unityhub native cpp lightweight wxwidgets-applications game-development game-engine alternative launcher

unityhubnative's Introduction

Unity Hub Native

UnityHubNative is a lightweight C++ / wxWidgets alternative to the unnecessarily heavy official Unity Hub, built using wxWidgets. This means that, instead of using heavy web components like the official Electron hub, it uses native GUI components on all platforms.

It launches many times faster, uses far less memory and CPU, and is a fraction of the total size of the offical Unity Hub.

image

Supports Mac dark mode!

Features

  • Add an existing project to the list using the Add Existing button
  • Open projects by double-clicking them in the list, or by selecting them and pressing Enter
  • Create new unity projects with templates, for any modern Unity version you have installed, with the Create New button
  • View Unity installs by double clicking them in the list views in the Editor Versions section
  • Manage Unity installs
  • Manage Unity licenses
  • Update projects to a Unity version of your choosing

UnityHubNative does not have every feature that the official hub has, but it has most of them. UnityHubNative serves as a shortcut to get into your projects faster.

Installation

This application is self-contained.

  1. Open the Releases section, and download the version for your platform.
  2. Place the executable anywhere. (Recommended /Applications on Mac, C:\Program Files on Windows, and /usr/bin on Linux)
  3. Double click to run

Application data files

This application stores its own files in an application data directory. If the application is behaving unexpectedly or is not working at all, try removing the folder at these locations:

  • macOS: ~/Library/Application Support/UnityHubNative
  • Windows: %APPDATA%/UnityHubNative
  • Linux: ~/UnityHubNative

Compiling it yourself

Use CMake:

mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build . --config Release --target install

Issues

Please report all problems in the Issues section of this repository. Make sure to include as many details as possible, otherwise I won't be able to fix it.

unityhubnative's People

Contributors

jim-kirisame avatar lucafagnoni avatar manefunction avatar ravbug avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

unityhubnative's Issues

[BUG] Unity Hub Native doesn't save my project lists

I don't know how to describe my issue but when I try to add a unity project to the hub and close it after I'm done working and close it the next time you try to open it there's no projects I have to manually add my unity projects to the every time I start working. It seems like even the hub saves it on my AppData folder it doesn't load my project lists from that but just started with an empty list.
Here's the files that I've found from my UnityHubNative folder residing in my appdata folder
*Sorry for my bad english
projects.txt
editorPaths.txt
*

Add existing editor

Is your feature request related to a problem? Please describe.
when an editor is already installed there is no way to use it

Describe the solution you'd like
"add existing editor"

Describe alternatives you've considered
n/a

Additional context
When installing unity from Nintendo SDK it's done from an exe installer, not the hub

multi select add existing

currently the browser is in single folder selection mode
it could be in multi selection and that would allow to add entire folders or drives to Hub Native.
power that the webapp from unity doesn't have ;)

[BUG] Creating project folder failed!

Describe the bug
Every time I try to create a new project, I get a pop-up window that says "Creating project folder failed!" and no other error messages or logs. The hub also successfully creates the project folder, but it's empty. I made sure to choose a location that doesn't already contain a folder with the same name as the project.

To Reproduce
Steps to reproduce the behavior:

  1. add "C:\Program Files\Unity\Hub\Editor\2021.1.25f1\Editor" to install search paths
  2. click "Projects" -> "Create New"
  3. name the project
  4. set location to a folder than doesn't already contain a sub-folder with the same name as the project
  5. select "3d-5.0.4.tgz"
  6. click "Create"

Expected behavior
I expected the hub to put files in the project folder and not say something failed.

Computer information:

  • OS: Windows 10 Home version 20H2 OS build 19042.1348
  • IDE version (if applicable): Visual Studio 2019

[BUG] install 2021.3.11f1 doesn't work

repro:
go in the editor version tab
click install new (the window is collapsed by the way, so it needs to be resized - another bug)
search 11 (unlike project the search here requires pressing enter - another bug)
select 2021.3.11 then click on install selected
= nothing
should ne installing that version

it's in nativehub 1.5 with the awesome new multi project select and live search

[BUG] Cleanup for 1.5

Describe the bug

  • Close Window menu doesn't work on Windows
  • Incorrect string telling users to use the official hub when creating new project if no Unity instances are found
  • some menus do nothing if the state of the app is invalid, instead of disabling themselves or displaying a warning dialog

Scaling issue with Taskbar Icon

I am noticing there is a rendering issue on the UHN taskbar icon. I can only see a couple white dots for the logo.

I think all that is needed is an updated scaling for this logo.

I am using windows 11. Here is a photo of what I see.
rBz4zQPUVT

Allow installation of Unity beta/alpha versions

Not sure if this is even possible since I can't find those versions on the Unity download archive, but maybe someone can figure out where the official hub is grabbing its links from?
Keep up the great work and thanks for creating this!

Requesting Linux version

Hey there,
I was quite excited to come across this, as it looks great but then I saw there was no Linux version yet. : ( I will be keeping an eye on it for whenever it does come out!

Thanks,
-MH

Option to hide unity learn

I will probably never use the unity learn tab and when I still want to I would open a browser.
Its not a major issue but I would love it if I can hide this tab :)

Linux AppImage seems to be broken, failing to integrate with AppImageLauncher

Description of the Problem

The Linux AppImage seems to be broken. I can run it just fine, but there is no icon, and it fails to be integrated to the system with AppImageLauncher. The logs suggest that both the icon and the desktop entry aren't working.

This has been verified to not be an issue with AppImageLauncher, as I've tested other AppImages and they integrate to the system just fine.

To Reproduce
Steps to reproduce the behavior:

  1. Download the latest Linux release of UnityHubNative.
  2. Have AppImageLauncher installed in your system.
  3. Unzip and make the UnityHubNative AppImage executable.
  4. Run the AppImage, and integrate it to the system.

Expected behavior
The AppImage gets integrated to the system as usual.

Screenshots and/or logs
Screenshot from 2023-08-02 17-47-42
Screenshot from 2023-08-02 17-48-06

When running from a terminal, we get the following logs:

$ ./UnityHubNative.AppImage 
WARNING: No icons found at "usr/share/icons"
WARNING: Using .DirIcon as default app icon
ERROR: Unable to load image.
ERROR: No icon was generated for: /home/henrique/Applications/UnityHubNative_856452fd4606b11d68f9e6b7d15a6679.AppImage
ERROR: appimage_register_in_system : Missing Desktop Entry
Directory '/home/henrique/.local/share/mime/packages' does not exist!

Computer information:

  • OS: Ubuntu 22.04.2 LTS

Additional context
Just for comparison, these are the logs when integrating the draw.io AppImage to the system. There is a bunch of other icon extraction logs in here, one for each icon size. I've ommited them for simplicity.

Extracting usr/share/icons/hicolor/1024x1024/apps/drawio.png to "/home/henrique/.local/share/icons/hicolor/1024x1024/apps/appimagekit_c316550eb423e6c34d30fe7c366e5806_drawio.png"
WARNING: Unable to resize the application icon into a 128x128 image: "Unable to load image.". It will be written unchanged.
WARNING: Unable to resize the application icon into a 256x256 image: "Unable to load image.". It will be written unchanged.
gtk-update-icon-cache: Cache file created successfully.
Directory '/home/henrique/.local/share/mime/packages' does not exist!

Prevent the bloated official UnityHub from launching automatically?

I suspect this may be something that can't be controlled, but I find that what happens is:

  • I launch UnityHubNative on Mac and it's deliciously fast. I tell it to open my project.
  • My project launches correctly in Unity, hooray!
  • But then the official UnityHub opens automatically too 😫

I guess this is something on the Unity side, I don't suppose there is anything we can do to prevent it? (I guess I could just delete it! But I'd like to keep it around just in case...)

minimize to tray on close

Is your feature request related to a problem? Please describe.
when closed, the app is really closed so we have to relaunch it each time

Describe the solution you'd like
add an option "minimize to tray on close"

[BUG] Can no longer find new Unity versions to install

Describe the bug
When opening the Install New Editor Version popup, no versions show up, and instead you get an Unable to access Unity versions popup.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Editor Versions tab and click on the Install New button

Additional context
Apparently Unity recently changed the URL to access Unity versions. (See GameCI fixing the same issue here game-ci/versioning-backend#43)

[BUG] Sort order is wonky and doesn't allow selecting a sort order

The projects list seems to be initially sorted by order that the projects were added, and then on future launches seems to reverse the sort order every time.

I have a lot of projects, and while most of the time, I want them sorted by modified, I sometimes want them sorted by name. I never want them sorted by order added, and I certainly don't want the list to be different every time.

Please allow sorting by clicking on column headers, and remember the selected sort order.

Screen.Recording.2024-02-08.at.12.12.29.PM.mov

Larger default window size

The default window size is cutting off some content, I propose to make the default window a bit larger as can be seen in the screenshots.
default
proposed

New Project window improvements

It would be useful if the new project window could remember the previous project location.

It would also be useful if the templates were at least sorted by name, and use a more friendly name as they do in the official Unity Hub if possible.

It would also be useful if the window were sized so that the templates list didn't wrap into multiple columns, showed more of the project path, and ideally remembered the previously used size.

Screenshot 2024-02-08 at 12 55 36 PM Screenshot 2024-02-08 at 12 55 16 PM

Ideally:

Screenshot 2024-02-08 at 1 05 59 PM

[BUG] UnityHubNative doesn't retain any setting.

UnityHubNatve version used is 1.5
Anytime I close and reopen the application no project, installed editor version or install search path is retained.
Both Unity Hub and UnityHubnative are installed in my D:/ drive, my pc is running Windows 11 Home 21H2 build 22000.1281.

always on search

with over 50 projects, finding the one is a struggle. always on search was implemented in unity bloat 3.0, that's what's missing here.

Indicate "Apple Silicon" when installing Editor Version

hey there, thanks for this great tool.
Unity Hub is extremely slow on apple silicon macs, so this has been great.

however, it would be great if the processor architecture could be displayed when installing versions.
this is what Unity's hub does:
2023-01-12 - 11-15-08@2x

Unity Hub Native doesn't indicate if it's apple silicon or intel:
2023-01-12 - 11-13-54@2x

Thanks

[BUG] search stuck

repro (i think):
enter search term that returns 1 project
hibernate or sleep laptop
revive
eras search term
= still only one project shown
should be : all project shown

image

Please do not remove a project from list if its not found

I have a Unity project on an external drive and sometimes the drive is not connected to the computer ( Then its on the laptop )
And when I open unity hub native the when the drive is not attached to open any other project on my computer it will remove the project from the list in unity hub native.

I would prefer it if the project stayed in the list and just was grayed out.
I could then later attach the drive and the project will still be visible in the list.

Now I have to add the projects back every time and its a bit tedious.

Hope this can be added, thanks.

And if I want to remove a project I can already do that manually.

[BUG] New project overwrites existing project with same name with *no warning*

See video.

Here I have a project named "New Unity Project" and I add a cube to the sample scene and save. Then I go to create a new project in UnityHubNative, leave the name at the default "New Unity Project" and it proceeds to overwrite the existing project with that name with no warning, I assume replacing all files from the template (you can see the sample scene goes from today 12:29 back to Nov 2020 and the added cube is gone).

This is very destructive. There should be a warning about overwriting an existing project.

Screen.Recording.2024-02-08.at.12.25.51.PM_1.mp4

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.