English / Deutsch | Print version Plop Linux  
Twitter
twitter

<< Previous
Unreal Engine - Native on Linux - Unreal Editor

Table of Contents

Next >>
Mate Desktop

Unity Editor - Native on Linux - The Unity 3D Game Engine


You have to install libsecret before you can start the Unity Hub.


How to install


Download Unity Hub from https://unity.com/

Download libsecret https://ftp.gnome.org/pub/gnome/sources/libsecret/0.20/libsecret-0.20.2.tar.xz

• Install libsecret

tar xfvJ libsecret-0.20.2.tar.xz

cd libsecret-0.20.2

./configure --prefix=/opt && make

sudo make install

cd .. && rm -rf libsecret-0.20.2

• Unity Hub

chmod 755 UnityHub.AppImage


Run


Just start ./UnityHub.AppImage

At first, you have to download the latest Unity Editor with Unity Hub.


Conflict ALSA / Pulse


Create the file '~/.pulse/client.conf' with the content

autospawn = no


Fix error


On error 'Bail out! Gtk:ERROR:gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Icon 'image-missing' not present in theme Rodent (gtk-icon-theme-error-quark, 0)', be sure that '/usr/share/mime' is a symlink to '/opt/share/mime'.

If it is not a symlink then copy the contents from '/usr/share/mime' to '/opt/share/mime'.
Remove the directory '/usr/share/mime'.
Create a symlink with 'ln -s ../../opt/share/mime /usr/share/mime'.
Finally run 'update-mime-database /usr/share/mime'.

Check also the environment variable XDG_DATA_DIRS. Example: XDG_DATA_DIRS="/opt/share:/opt/share"



Outdated - Unity 5 Editor


The Editor of the Game Engine Unity 5 is able to run native on Linux (64-bit). It's not longer required to run it with wine.

On Plop Linux, you have to install PostgreSQL and Node.js to run the Unity Editor.

On troubles, see the file ~/.config/unity3d/Editor.log for more information.


How to install


Download the latest Unity Editor for Linux from the forum thread on the Unity Website Unity on Linux: Release Notes and Known Issues. Currently its unity-editor-5.4.0f3+20160727_amd64.deb.


Download postgresql-9.4.5.tar.bz2 or the latest version from https://www.postgresql.org/download/.

• Install PostgreSQL

tar xfjv postgresql-9.4.5.tar.bz2

cd postgresql-9.4.5

./configure --prefix=/opt && make

sudo make install

cd .. && rm -rf postgresql-9.4.5


Download node-v4.4.7.tar.gz or the latest version from https://nodejs.org/en/download/.

• Install Node.js

tar xfzv node-v4.4.7.tar.gz

cd node-v4.4.7

./configure --prefix=/opt && make

sudo make install

cd .. && rm -rf node-v4.4.7


• Install the Unity 5 Editor

dpkg -x unity-editor-5.4.0f3+20160727_amd64.deb unity5

sudo cp -avr unity5/{opt/*,usr/*} /opt

sudo chown root:root /opt/Unity/Editor/chrome-sandbox

sudo chmod 4755 /opt/Unity/Editor/chrome-sandbox

rm -rf unity5

Now you are able to start the Unity 5 Editor from the Application menu under Accessories/Unity.


Optional: Start from the command line


You can create a small script to start the Unity Editor from the command line.

File: /opt/bin/unity

/opt/Unity/Editor/Unity "$@"

Don't forget to sudo chmod 755 /opt/bin/unity



<< Previous
Unreal Engine - Native on Linux - Unreal Editor

Table of Contents

Next >>
Mate Desktop


© 2020 by Elmar Hanlhofer