VE Studio Enterprise-class Maintenance Training Development. VE Studio is the world’s most proven development platform for creating 3D virtual training solutions. Editor Scripting can help you customize and extend the Unity editor to make it easier to use on your projects. This tutorial covers the basics of editor scripting, including building custom inspectors, gizmos, and other Editor windows. Select your Unity version Last updated: March 14, 2019. Time to build custom attribute for code and Unity Editor! Time to create a ReadOnly attribute! Creating custom attributes in Unity is not a big thing. A rather pretty small one 😉. It’s this one useful trick you want to have under your sleeves. Introduction to Editor Scripting This tutorial has been verified using Unity 2019.4.10f1 LTS.
From Unity - Game engine, tools and multiplatform:
- Unity is a flexible and powerful development platform for creating multiplatform 3D and 2D games and interactive experiences. It's a complete ecosystem for anyone who aims to build a business on creating high-end content and connecting to their most loyal and enthusiastic players and customers.
Not to be confused with Canonical's Unity (which is now maintained by the UBPorts Foundation and renamed to Lomiri).
Installation
Unity has made available a program called Unity Hub that is designed to streamline your workflow by providing a centralized location where you can manage your Unity Projects and simplifies how you find, download, and manage your Unity Editor installs. The application comes available as an AppImage. To install the Unity Hub simply install the unityhubAUR package.
Old packages
Historically, there were other packages, but all of them are out of date and should not be used :
- unity-editorAUR
- unity-editor-betaAUR
- unity-editor-ltsAUR
- unity-editor-androidAUR
- unity-editor-beta-androidAUR
- unity-editor-lts-androidAUR
tail -f /tmp/Unity.log
Android Remote
Unity Remote is an Android app to help test input for Android devices. It achieves this by sending a compressed screenshot to the device each frame.
Prepare computer
Install packages
Install the android-udev package, which will ensure you have correct udev rules for your device.
Install the android-sdkAUR package.
Configure the Editor
Open the editor, navigate to Edit -> Preferences and set the correct paths to the Android SDK and the JDK.
Tip:- The Android SDK is usually in
/opt/android-sdk
. - The JDK varies by the version you are using, if you want to use the default set it to
/usr/lib/jvm/default
.
The navigate to Edit -> Project Settings -> Editor and set Unity Remote Device
to Any Android Device
.
For more help see the Unity documentation.
Prepare Android
Install Unity Remote 5 from the Play Store. Alternatively you can download and build it yourself from the Asset Store.
It is also recommended to set your Android device to PTP mode.
For more help see the Unity documentation.
Test
If you have Unity opened, close it.
Connect the phone to the computer and launch Unity Remote.
Open the Editor and press play. You should now see your game transmitted to your Android device.
If it does not work or you have questions, see the Unity Documentation.
Visual Studio Code
For those using the Visual Studio Code as their script editor, there are a few additional steps you need to do to get it running without displaying errors similar to:
To eliminate these errors you need to install the following packages: dotnet-runtime, dotnet-sdk, mono-msbuild, and mono. Finally remember to install the C# extension from the VS Code Marketplace by pressing Ctrl-P and entering:
You will also want to make sure to set the option for the C#/Omnisharp extension to use the globally installed mono in your path. Add this line to your configuration:
Troubleshooting
Crash logs are available at $HOME/.config/unity3d/Editor.log
Unity crashes on first launch before/while signing in
This is a rare bug where Unity's configuration gets created wrongly. You can try resetting it by:
Unity crashes when trying to load project
Unity Editor Download
Users have reported that unsetting GTK_IM_MODULE
prevents the crash.
Unity crashes if ~/.config/user-dirs.dirs is missing
See how to generate the xdg files here: XDG user directories
Unity crashes with DllNotFoundException
In unity 2019 and newer, if you see a message along the lines of:DllNotFoundException: Unable to load the unmanaged library (x) Reason: libtinfo.so: cannot open shared object file: No such file or directory
, try installing ncurses5-compat-libsAUR.
Unity fails to build project to webGL plataform
IL2CPP needs libtinfo-5.so library for the building process and ncurses5 provides it. So make sure to install ncurses5-compat-libsAUR if you want to build to webGL.
Minor stuttering while playtesting (NVIDIA)
Vsync does not seem to work correctly with NVIDIA graphics cards / drivers. Solution: In nvidia-settings go to 'OpenGL Settings' and turn off 'Sync to VBlank'.
The behaviour occured/noticed when used 'transform.Rotate' in combination with 'Input.GetKey'.
Error: Multiple Unity instances cannot open the same project
Unity probably did not shutdown properly, in this case you should navigate to your project folder and delete Temp folder.
Android Remote not working / Running Android build fails with 'Unable to forward network traffic to device'
Try this workaround :
- Close Unity.
- Shutdown adb daemon with
adb kill-server
- Plug in the android device.
- Find your device ID with
adb devices
- Use
adb -s 'deviceID' forward 'tcp:34999' ' '
replacing'deviceID'
with the correct one.
That's it now you can open unity and test it, an error 'socket bind failed' will appear that you can safely ignore.
No window opens: Desktop is 0 x 0 @ 0 Hz
If using Wayland, try using the Xorg backend of SDL by setting the environment variable SDL_VIDEODRIVER=x11
.
Brotli Invalid ELF Header
If you see an error similar to:
Either replace the brotli macosx egg with a linux egg at ~/.cache/Python-Eggs/Brotli-0.4.0-py2.7-macosx-10.10-x86_64.egg-tmp
, or switch from brotli to gzip:
Package Details: unity-editor 1:2019.2.19f1-1
Package Actions
- View PKGBUILD / View Changes
Git Clone URL: | https://aur.archlinux.org/unity-editor.git (read-only, click to copy) |
---|---|
Package Base: | unity-editor |
Description: | The world's most popular development platform for creating 2D and 3D multiplatform games and interactive experiences. |
Upstream URL: | https://unity3d.com/ |
Keywords: | |
Licenses: | custom |
Submitter: | ljrk |
Maintainer: | jurf |
Last Packager: | spacepluk |
Votes: | 152 |
Popularity: | 0.177712 |
First Submitted: | 2015-08-26 18:08 |
Last Updated: | 2020-01-24 13:13 |
Dependencies (24)
- desktop-file-utils(desktop-file-utils-git)
- gcc-libs(gcc-libs-multilib-x32, fastgcc, gcc-libs-multilib-git, gcc-libs-git)
- gconf(gconf-gtk2)
- glu(glu-git)
- gtk3(gtk3-cosy, gtk3-adwaita-3-32-git, gtk3-git, gtk3-ubuntu, gtk3-no_deadkeys_underline, gtk3-patched-filechooser-icon-view, gtk3-typeahead, gtk3-classic)
- intel-tbb (intel-tbb-gcc6, tbb)
- lib32-gcc-libs(lib32-gcc-libs-git, lib32-gcc-libs-gitb)
- libgl (glshim-git, libhybris-ext-libgl-git, libhybris-libgl-git, mesa-libgl-noglvnd, swiftshader-git, nvidia-340xx-utils, libglvnd-git, amdgpu-pro-libgl, libglvnd)
- libpng12(libpng12-git)
- libpqxx(libpqxx-git)
- npm(nodejs6-bin, nodejs-nightly)
- nss(nss-hg)
- xdg-utils(mimi-git, sx-open, busking-git, xdg-utils-git, linopen, xdg-utils-terminal-true-git, xdg-utils-mimeo, xdg-utils-handlr, xdg-utils-slock, mimi-bachoseven-git, mimejs-git)
- jq(jq-git)(optional) – needed for UnityHub integration helpers --register/--deregister
- unity-editor-android(optional)
- unity-editor-doc(optional)
- unity-editor-facebook(optional)
- unity-editor-ios(optional)
- unity-editor-mac(optional)
- unity-editor-webgl(optional)
- unity-editor-windows(optional)
- unityhub(optional)
- visual-studio-code-bin(optional)
Required by (10)
- kode-studio-bin(optional)
spacepluk commented on 2020-01-29 09:11
I'm thinking about turning these packages into metapackages that only pull the appropriate dependencies, so that they can used side by side with the unityhub package.
The current solution doesn't make much sense for anyone that's actually building games with this. This is because you want to have control over which version of unity you are using for each project and the packages do a poor job at that. It also has the nice side-effect of reducing the packaging work, plus it aligns better with what upstream is offering.
Any thoughts?
Nickelbawker commented on 2020-12-16 03:14
Ah, sweet this works fine with the 242 AUR Unity hub. Just tested it out.
partizan commented on 2020-05-05 15:19
@spacepluk this is literally what i just done locally. I think it's a great idea.
spacepluk commented on 2020-04-14 13:46
I would try again with the dependencies of unity-editor installed.
alx365 commented on 2020-04-14 13:39
I did actually use that before but today it didn't start launching so i decided to download this :)
spacepluk commented on 2020-04-14 13:05
@axl365 I recommend you use unityhub. I have to turn this packages into meta packages to fetch the dependencies but I haven't had the time to do it.
alx365 commented on 2020-04-14 12:58
When i start it, unity says i have to have a license and i have to install unity. So how do I use this?
docquantum commented on 2020-03-24 00:04
spacepluk commented on 2020-01-29 09:11
I'm thinking about turning these packages into metapackages that only pull the appropriate dependencies, so that they can used side by side with the unityhub package.
The current solution doesn't make much sense for anyone that's actually building games with this. This is because you want to have control over which version of unity you are using for each project and the packages do a poor job at that. It also has the nice side-effect of reducing the packaging work, plus it aligns better with what upstream is offering.
Any thoughts?
xploreitcorp commented on 2019-08-19 05:24
Download Unity Editor For Windows
very helpful and informative blog. Thank you for
Unity Editor
your information.If you are searching for Angular
training in kochi visit ushttps://www.xploreitcorp.com/angular-training-kochi/'>Angular training in
kochi,Angular courses in kochi ||
Toric commented on 2019-07-30 03:26
is there any way to target mono 3.5? installing the AUR package https://aur.archlinux.org/packages/referenceassemblies-3.5-bin/, but it still says that target framework 3.5 is not installed...