How to extend Unity3d editor

I use Unity3d in game development. For each project, I can expand the editor. How to expand the Unity3d editor (for all projects, not for a custom project)?

+4
source share
3 answers

There is no real way to make continuous expansion (i.e. the extension that is for every new project). However, you can export the extension as a Unity package and import it whenever you create a new project. According to the documentation on the linked page:

  • In the project view, select all the asset files that you want to export.
  • Choose Assets-> Export Package ... from the menu.
  • Name and save the package anywhere.
  • Open the project in which you want to contribute assets.
  • Choose Assets-> Import Package ... from the menu.
  • Select the package file saved in step 3.

This should be the easiest way to easily import your custom extensions into each project.

+9
source

For plugins intended for use in many projects, but not changed in this project. Some people prefer to build the plugin in dll, and then put the DLL in the project, rather than its source code.

http://docs.unity3d.com/Manual/UsingDLL.html

+3
source

Depending on what you need, you can also use Property Drawers introduced in Unity 4, this allows you to override the default inspector of your property without writing a new inspector. And it works with existing types as well as with custom ones.

You can even set variables in an attribute to customize how each event is edited.

More information here: https://docs.unity3d.com/Manual/editor-PropertyDrawers.html

-one
source

Source: https://habr.com/ru/post/1500120/


All Articles