Simple asstes renaming tool by hww
The tool allows you to select and rename a group of files according to a pattern that can consist of: file name, prefix, suffix, and version or variant number.
Allows you to renumber a series of files by sorting the list of names.
The tool works according to the Studio naming convention, which you can set up through the configuration panel.
The rules can be configured in the panel (below) or from the C# source code.
The package is available on the openupm registry. You can install it via openupm-cli.
openupm add com.hww.xirename
You can also install via git url by adding this entry in your manifest.json
"com.hww.xirename": "https://github.com/hww/XiRename.git#upm"
The current state of the project Alpha. The tool has not been tested at the moment and needs to be tested and improved: the API, interface and default NamingConvention settings.
- Basic functionality
- Configurabe and safe (no enum) the objects tagging
- Update documentation
- Per project verification tool
The file name consists of tokens (name, prefix, suffix, version or variant). The order of the tokens must be determined.
fieldOrder.Clear();
fieldOrder.Add(ETokenType.Prefix);
fieldOrder.Add(ETokenType.Name);
fieldOrder.Add(ETokenType.Variant);
fieldOrder.Add(ETokenType.Suffix);
Clear all existing file types.
fileTypes.Clear();
Create a new type Textures2D with category Textures.
kind = Define("Textures2D", "Textures", ".tga, .bmp, .jpg, .png, .gif, .psd");
Let's add some prefixes and suffixes
kind.DefinePreffix("Render Target", "RT");
kind.DefinePreffix("Cube Render Target", "RTC");
kind.DefinePreffix("Texture Light Profile", "TLP");
kind.DefineSuffix("Texture (Diffuse/Albedo/Base Color", "D");
kind.DefineSuffix("Texture (Normal)", "N");