Power Rename
PowerRename is a Unity editor extension that streamlines GameObject renaming in the hierarchy through flexible, convention-based transformations. Apply prefixes, suffixes, sequential numbering, case conversions (camelCase, snake_case, kebab-case), regex replacements, and whitespace cleanup using an intuitive pipe format syntax. Batch rename multiple GameObjects while maintaining consistent naming conventions across your project.
cat.natsuneko.power-rename 
Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/power-rename.git?path=Assets/NatsunekoLaboratory/PowerRename README Markdown
Copy this to your project's README.md
## Installation
Add **Power Rename** to your Unity project via Package Manager:
1. Open **Window > Package Manager**
2. Click **+** > **Add package from git URL**
3. Enter:
```
https://www.pkglnk.dev/power-rename.git?path=Assets%2FNatsunekoLaboratory%2FPowerRename
```
[](https://www.pkglnk.dev/pkg/power-rename)README
PowerRename for Unity
PowerRename for Unity is Unity editor extension for renaming GameObjects in hierarchy.
You can flexible renaming by specifying the renaming convention in pipe format.
Rename Conventions
Append Prefix
Append specified string as prefix.
| Value | Before | After |
|---|---|---|
go_ |
GameObject |
go_GameObject |
Append Sequential Number to Prefix
Append sequential number with digit as prefix.
| Digits | Start Index | Before | After |
|---|---|---|---|
3 |
1 |
GameObject |
001GameObject |
Append Sequential Number to Suffix
Append sequential number with digit as suffix.
| Digits | Start Index | Before | After |
|---|---|---|---|
3 |
1 |
GameObject |
GameObject001 |
Append Suffix
Append specified string as suffix.
| Value | Before | After |
|---|---|---|
_go |
GameObject |
GameObject_go |
Remove leading space
Remove leading spaces.
| Before | After |
|---|---|
GameObject |
GameObject |
Remove Prefix
Remove specified characters from prefix.
| Length | Before | After |
|---|---|---|
3 |
go_GameObject |
GameObject |
Remove Suffix
Remove specified characters from suffix.
| Length | Before | After |
|---|---|---|
3 |
GameObject_go |
GameObject |
Remove trailing space
Remove trailing spaces.
| Before | After |
|---|---|
GameObject |
GameObject |
Replace by Regular Expression
Replace matched strings.
| Pattern | To | Before | After |
|---|---|---|---|
\(\d+\) |
(empty) |
GameObject (1) |
GameObject |
Replace by String
Replace matched strings.
| From | To | Before | After |
|---|---|---|---|
(1) |
(empty) |
GameObject (1) |
GameObject |
To kebab-case
Convert to kebab-case
| Before | After |
|---|---|
GameObject |
game-object |
To lowerCamelCase
Convert to lowerCamelCase
| Before | After |
|---|---|
GameObject |
gameObject |
To lowercase
Convert to lowercase
| Before | After |
|---|---|
GameObject |
gameobject |
To snake_case
Convert to snake_case
| Before | After |
|---|---|
GameObject |
game_object |
To Train-Case
Convert to Train-Case
| Before | After |
|---|---|
GameObject |
Game-Object |
To UpperCamelCase
Convert to lowercase
| Before | After |
|---|---|
gameObject |
GameObject |
To UPPERCASE
Convert to UPPERCASE
| Before | After |
|---|---|
GameObject |
GAMEOBJECT |
To UPPER_SNAKE_CASE
Convert to UPPER_SNAKE_CASE
| Before | After |
|---|---|
GameObject |
GAME_OBJECT |
Combination Examples
I want to 3-digit numbers to suffix, starts with 0, and remove existing suffix
- Replace by Regular Expression (Pattern:
\(\d+\), To:(empty)) - Remove trailing space
- Append Suffix (Value:
_) - Append Sequential Number to Suffix (Digits:
3, Start Index:0)
| Before | After |
|---|---|
GameObject |
GameObject_000 |
GameObject (1) |
GameObject_001 |
GameObject (2) |
GameObject_002 |
Extend
If you want to add other rename conventions, create C# script into PowerRename directory and implement IRenameConvention interface.
I want to link animation files as well
Please use Animation Auto Assignment
License
MIT by @6jz
No comments yet. Be the first!