Game Development Reference
In-Depth Information
Create an Editor folder for all editor scripts
Next, we'll create a Batch Rename utility from the ScriptableWizard class. This class
is an ancestor from which we derive new classes. All derived classes will work much
like a pop-up utility dialog that can be launched from the Unity main menu. Their
purpose is to present a set of options from which the user can choose before pressing a
confirmation button that performs a one-time process. In other words, classes derived
from ScriptableWizard are ideal for performing automated, one-time operations on
single or multiple objects.
More information on the ScriptableWizard class can be found in
the online Unity documentation at http://docs.unity3d.com/
ScriptReference/ScriptableWizard.html .
The following code sample 8-1 lists the complete source code for a Batch
Rename utility:
01 //------------------------------------
02 using UnityEngine;
03 using UnityEditor;
04 using System.Collections;
05 //------------------------------------
06 public class BatchRename : ScriptableWizard
07 {
 
Search WWH ::




Custom Search