You can easily convert VRChat character and costume 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 XWear
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 ".xwear (costumes or accessories)".
- 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.
- Selecting a setup
If errors or warnings appear, click "Set up as a costume" or "Set up as an accessory" based on the item type.
In principle, you should select "Set up as a costume" for complete outfits, tops, bottoms, shoes, etc., and "Set up as an accessory" for standalone items like hats and glasses.
Click to start the setup 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 .xwear file will be saved at the chosen location.
Advanced Settings
These advanced settings allow you to set the GameObjects not to export.
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.