Game Development Reference
In-Depth Information
This would, in theory, allow you to select multiple objects in the hierarchy panel and
then to rename them automatically according to a numbered convention. The only
technical problem with this is that Unity doesn't natively support such a feature.
But we can code it ourselves, as shown in the following screenshot:
Creating a Batch Rename editor add-on
To begin customizing the Unity Editor, first create a folder named
Editor
inside
the project. This is important.
Editor
is a special folder recognized by Unity as a
place to house all the editor customizing scripts. Thus, if you plan on changing the
Unity Editor, be sure all customizing scripts are inside the
Editor
folder. It doesn't
matter whether your project features multiple folders named
Editor
; the only thing
that matters is that there's at least one
Editor
folder and an editor script inside it, as
shown here: