Unity3D on Linux with Wine: Support thread

Having recently come back to Unity development, after a long period of maybe 2 years, I’ve been really missing Linux support. I’ve struggled for some time to get Unity3D working with Wine.
While it would certainly be very nice to have a native Linux version, I’m creating this thread to give general support on how to get the Unity Editor working with our favourite OS.

I believe this guide is all you’ll need to get Unity running:

  • Download Unity setup executable
  • Install PlayOnLinux
  • Click Tools->Manage Wine Versions
  • On the x86 tab, select 1.7.6 and click on the right arrow to install it
  • Click Tools->Run a local script and select the attached script
  • Follow the install instructions and relax while everything installs :wink:

Troubleshooting

  • If the program installs, but all you get is a blank screen, try changing your system time zone to a more well-known location.
  • You cannot create a new project from the create a new project dialog. Instead, you must create a new empty directory and point to it

Let me know if anyone run into any problem, I’ll do my best to help.

–Cauê

http://wiki.unity3d.com/index.php/Running_Unity_on_Linux_through_Wine

Hi Cauê,

I’m really interested to try this out! :slight_smile:

In your post you say to run the attached script. Did you mean to attach a script to your post?

Thanks,
Nathan

Oh wow. Really thought I had attached it!

Anyway, here it is - in text form:

#!/bin/bash
[ "$PLAYONLINUX" = "" ]  exit 0
source "$PLAYONLINUX/lib/sources"
 
POL_SetupWindow_Init
 
POL_SetupWindow_presentation "Unity 3D" "Unity" "http://www.unity3d.com/" "Cauê Waneck" "Unity3D"

#create prefix
export WINEARCH="win32"
POL_Wine_SelectPrefix "Unity3D"
POL_Wine_PrefixCreate "1.7.6"
#setup prefix
POL_Wine_InstallFonts
#POL_Call POL_Install_directx9
POL_Call POL_Install_dotnet20
POL_Call POL_Install_tahoma

mkdir -p $WINEPREFIX/drive_c/users/$USER/AppData/LocalLow

#registry
regfile=$(mktemp --suffix=.REG)
echo "REGEDIT4" > $regfile
echo "" >> $regfile
echo "[HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion]" >> $regfile
echo '"ProductId"="12345-oem-0000001-54321"' >> $regfile

POL_Wine regedit $regfile
#rm $regfile

POL_SetupWindow_browse "Please select the location of the Unity3D setup executable" "Unity Setup Executable"

UNITYLOC=$APP_ANSWER
POL_Wine $UNITYLOC

POL_Shortcut "Unity.exe" "Unity 3D"
 
POL_SetupWindow_Close
exit

Save it as unity.pol . You may need to set it +x

Let me know if it works for you!
Cheers!
Cauê

Hi! I use openSuse. I tried to use Unity3D, but I had many problems to start it. I gave up. Maybe some tips for me, man. More details.

Regards,

Tomza

Can you try the instructions above? Also, if it still doesn’t work, try to copy/paste the log you get when starting it - available from PlayOnLinux on the “debug” option

I used Wine, not PlayonLinux. But I can’t install it on opneSuse.
Traceback (most recent call last):
File “mainwindow.py”, line 31, in
import wxversion
ImportError: No module named wxversion
./playonlinux: line 144: python2.6: nie znaleziono polecenia

I installed wxpython. It doesn’t help.

nie znaleziono polecenia = command not found

I solved the problem. It needs to install python-wxWidgets to start installing playonlinux. And then probably you need to install other things, but python-wxWidgets is the most important to start the program.

Have you been able to get it running?

I’m going to run Unity3D today. I will tell you the results. By the way, I gave the link to this thread on my blog. I hope your solution works. My friend is in Brazil, in Rio. He loves your country. I hope I’ll visit Brazil soon, too. :slight_smile:

Oh, I see Unity Team released a new version, Unity3d 4.3 (Wow, 1 GB!!!). However, still no support for Linux Editor. I hope your solution works on openSuse. I love openSuse, and I wish to run all software I need. I’m programming in Java, but I’d like to use Unity3D again. If I could run it without problems. I hope you will help me, waneck-six. Greetings from cold Poland!

I’ve started to install Unity3d on PlayOnLinux. I did as you told. PlayOnLinux is installing Mono. Let’s wait. It’s going… going… PlayOnLinux is downloading dotnetfx,exe. .NET Framework 2.0 is installing. PlayOnLinux is downloading Windows XP-KBxxxxxx-SP3xxxx. Ok, it should emulate a true Windows :). 316 MB! I’m installing Unity3D. Installing .NET framework 4 Client Profile and Extended. The Unity3D installation finished! PlayOnLinux show me:
Error in POL_Wine
I have two Unity3D icons on my desktop: Unity and Unity3D. Unity doesn’t run Unity, but Unity3D runs the program.I gave my credentials to the Unity account. Now Unity3D is asking me for creating a new project. Well, here it can be a problem. I’ll try your solution.

I made an empty directory and pointed to it in the Unity create new project dialog. Alas, Create button doesn’t work. It’s a known problem to me. So?

I’ve just solved the problem! I hope I remember what I did step by step. I’ll try to recall.

I clicked the Unity3D shortcut on my desktop (remember that PlayOnLinux made two shortcuts for me on the desktop: Unity and Unity3D. Unity doesn’t work. I use Unity3D

Unity3D asked me for creating or opening a project. I had troubles here. I made an empty directory what was told by Cauê. It didn’t work for me :(. I had various irritating errors. temp directory couldn’t be made, another Unity3d software is running, etc. I thought I was impossible to start Unity3D on Linux.

I click Create New Project tab in Project Wizard. I chose assets for my new unity project, but the Create button didn’t work. It was inactive. But I got the empty directory New Unity Project thanks to that.

I clicked Open Project tab.

I clicked Open Other…

I pointed to the New Unity Project directory.

I clicked it to highlight

I clicked OK

And Unity3d started!

Alas, I have no assets in my project. I must test all to tell you more. And I write about that on my IT blog. I hope you will be successful too. Cauê’s script gives some errors but it works. Thanks, man!

Hey Tomza. Great to know it worked for you!
About creating a new project, I meant to point to the trick you’ve discovered above - which is to open an empty directory as if it were a consolidated project.

Maybe you are right about creating a new project. However, I created a new directory and got errors only. I couldn’t run Unity3D. I was playing with Project Wizard. And when I did what I wrote earlier, Unity3D started suddenly. I was amazed. I was trying to install Unity3D earlier, but when I got to Project Wizard, I couldn’t run the editor. I didn’t use PlayOnLinux, only Wine. And there was not your script, of course. I did all manually. Your script is very useful. It automate the process of installation. I wrote about you and your script on my blog. Many people visit my blog, so they will be redirected to this thread. I described the installation process in detail, step by step, so that all people can install Unity3D on *nix platform.
My blog:

http://tomaszzackiewicz.wordpress.com/2013/11/16/run-unity3d-on-linux-with-wine-solved/

All suggestions will be welcomed. Maybe my English isn’t too perfect, but good enough to understand all.

Thanks a ton for the script Caue :slight_smile:

I have it up and running under Manjaro and it seems to work flawlessly so far!

I’m going to check a few more projects to see if I run into any issues.

Yes, the script is great - it automates the work. Unity3D was installed on my openSuse and ran well in the beginning. However, now it’s crashed.

Wine isn’t the best solution, only for playing with Unity3D. It can’t be used for production purposes. We are waiting for Linux Editor.

Same here, waiting for a Linux Editor.

I can’t even run unity, I just get this:
1429380--75789--$Captura de pantalla - 221113 - 10:10:09.png

Any suggest for get it running?

I have manjaro, 64 bit, kernel 3.11. Thanks.

Wow! I’ve just installed openSuse 13.1. I’m really amazed. The graphics is maybe better than in Windows is. Use Cauê’s script, my tutorial, and install a new openSuse. Just look at that:

You don’t need Windows anymore!!! I hope this will be working forever.

1 Like

I got this error too. There were some errors but they weren’t critical. I wrote about it in my tutorial. But can you proceed in spite of this error. I could go further. I think you should click Siguiente. Just try it.