Game Development Reference
In-Depth Information
•
Lines 45-60
: The
OnWizardCreate
function is invoked as an event when
the user presses the
Rename
button from the
Batch Rename
window. The
button is called
Rename
in this case because of line 20. The
OnWizardCreate
function iterates through all selected objects in the scene, if any, and renames
them in sequence according to the
Base Name
,
Start Number
, and
Increment
fields, as shown here:
The Batch Rename tool
To use the Batch Rename tool, just select a group of objects in the scene and then
click on the
Batch Rename
option in
Edit
from the application menu. The
Base
Name
field defines a string that needs to be prefixed to all object names, and the
Increment
field defines the amount by which an integer counter should increase
that is prefixed to the base name. The
Start Number
value is the point from which
all incrementing begins, as shown in the following screenshot: