lgsvl / simulator

A ROS/ROS2 Multi-robot Simulator for Autonomous Vehicles
Other
2.29k stars 780 forks source link

how to open project in Unity on Ubuntu #293

Closed asimonov closed 4 years ago

asimonov commented 5 years ago

hi, I follow updated instructions here https://github.com/lgsvl/simulator/blob/master/Docs/docs/build-instructions.md but I am stuck on this step:

I select the 'simulator' folder but it does not appear on that page. I can only 'add' a new project. I use the specified versions of UnityHub and Unity on Ubuntu18. If I try to start Unity standalone to open the project I get UnityHub and i am back to square one.

alexiskovi commented 5 years ago

Same issue here. I can only create new empty project, but it also disappears after re-opening Unity Hub or pressing "Add" button. So, problem is, "Add" button deleting all current projects and giving empty list, no matter it is my new project or simulator project.

unity1 unity2

daohu527 commented 5 years ago

I have follow the step and it works well, Here are some questions that are similar to yours, you can try it as below. here

asimonov commented 5 years ago

that link did not solve my issue. i tried logging out/in to unityhub but there is no difference.

EricBoiseLGSVL commented 5 years ago

@asimonov and @alexiskovi

Thanks, @daohu527 , hopefully that helps some people. If it doesn't, be sure to select the project folder that directly contains Unity Assets folder, not an empty root folder that contains it. Hope this helps.

asimonov commented 5 years ago

@EricBoiseLGSVL selecting Assets folder does not help either.

i see there are docker files provided. may work better for me. are they working?

martins-mozeiko commented 5 years ago

I think you misunderstood what Eric is saying. You need to select folder which is parent of Assets folder.

You can also try running unity directly and opening project without Hub. Launch Unity binary, select "Open Project" button and browse to simulator location.

We use Docker file to build simulator on Jenkins CI. You can try to use it, but it will be more difficult that simply opening simulator in Unity Editor.

daohu527 commented 5 years ago

Maybe you can take a look at the log file,

Q: Where can I find the Unity Hub logs?
A: Logs are here:
Windows: `%UserProfile%\AppData\Roaming\UnityHub\logs`
Mac: `~/Library/Application support/UnityHub/logs`
Linux: `~/.config/UnityHub/logs`

You can try to open the project directly with Unity and view the Unity log too.

Q: Where can I find the Unity logs?
A: Logs are here:
Windows: `%UserProfile%\AppData\Local\Unity\Editor\Editor.log`
Linux: `~/.config/unity3d/Editor.log`
martins-mozeiko commented 5 years ago

Unity Editor has one more location on Linux: ~/.config/unity3d/Unity/Editor/Editor.log Sometimes it is more useful.

alexiskovi commented 5 years ago

Thanks, will try other options. To my mind, it's Unity Hub issue, because Hub is losing links to all projects after pressing "Add", even my empty created projects.

EricBoiseLGSVL commented 5 years ago

Have you tried this?

shalinmehtalgsvl commented 5 years ago

I followed our instructions here: https://www.lgsvlsimulator.com/docs/build-instructions/ and had the same issue at step 11. I created a new project (with the New button) and then was able to add the simulator project to Unity Hub.

alexiskovi commented 5 years ago

@shalinmehtalgsvl, for my instance, "Add" button deletes all previous objects from list so I can't open any projects. I have created three projects, but after adding simulator (or any other project) Unity Hub losing all projects and shows "You have not projects here" Will try at other PC.

martins-mozeiko commented 5 years ago

Maybe try removing UnityHub folder at ~/.config/UnityHub location, maybe it cannot correctly create files there.

asimonov commented 5 years ago

I think i tried it. But will try all suggestions again when i get to my desktop


Kind Regards, Alexey Simonov

On 23 Aug 2019, at 17:41, Martins Mozeiko notifications@github.com wrote:

Maybe try removing UnityHub folder at ~/.config/UnityHub location, maybe it cannot correctly create files there.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

EricBoiseLGSVL commented 5 years ago

Anyone that has this issue, please update Unity Hub and this will be resolved