You can easily convert VRChat character and outfit prefabs into XAvatar and XWear data.
First, make sure you have "XWear Packager" installed.
You can download and install it from the link below.
For more details, refer to the XWear Packager page.
Download: https://vroid.notion.site/XWear-Packager-8284c73c208e440ba8dd8033349d5978
How to convert to XAvatar
Proceed with the following steps in a project that has XWear Packager installed.
First, import the data you want to convert to XWear into Unity.
- Go to Assets > Import Package > Custom Package and select the file you want to import.
Alternatively, you can drag and drop the file directly into the Project view.
- A window will open. Click "Import".
This will add the file to your Project view.
You may keep all options checked, as the imported files can be deleted later.
Now, let's convert the imported data to XWear.
- Drag and drop the prefab of the data you want to convert from the Project view to the Hierarchy.
- Click "VRoid" on the toolbar and launch XWear Packager.
- Place the GameObject of the costume you want to convert into "Export target".
Drag and drop the file from the Hierarchy to "Export target".
Alternatively, click the ● at the right end of "Export target" to open the selection menu and choose the avatar you want to convert.
- Set the export format to ".xavatar (base models)".
- Enter license information.
You have the option to enter license information for your XAvatar file.
This information will be displayed when the file is imported into VRoid Studio's dress-up feature or with XWear Packager.
Item Name:
Input the item name.
The system will automatically populate this field with the name of the GameObject added to "Export target", but you can change it if necessary.
Creator:
Input the creator’s name.
License URL:
If applicable, input the URL of the item's Terms of Use.
This can be a BOOTH product page or another URL leading to the item's Terms of Use.
- Fix any errors.
If any errors or warnings are displayed, click "Auto-fix".
This will start the correction process.
Once the process is complete, the error messages will disappear.
- Click "Execute export" and select where to save your file.
You can save it anywhere.
When the process is complete, a dialog will confirm completion and the .xavatar file will be saved at the chosen location.
Advanced Settings
Advanced settings allow for the following configurations.
- Set GameObjects not to export
- Bundle costumes
Set GameObjects not to export
Set this option if your export includes GameObjects you don't need.
You can choose from three settings.
Export all:
Exports all objects included in the "Export target" field.
Exclude inactive GameObjects:
Does not export any inactive objects.
Exclude inactive or unaffected bones:
Does not export any inactive objects or unaffected bones.
Bundle costumes
This feature lets you save multiple costumes as a single XAvatar file.
This is useful when you want to distribute several files as a bundle.
- Click +
- Drag and drop the GameObjects to bundle into the "Included costumes" area.
- If necessary, enter license information, fix any errors, and execute the export.
This process allows you to create a single XAvatar file with bundled costumes.