5. Import 2D Avatar Assets
Last updated
Last updated
In the header tab, choose MYTY Kit > Import 2D Avatar Asset
to open the Importer 2D Avatar Asset
window
Click the open
button next to the Trait mapping file
input box.
Locate the Trait mapping file
that you downloaded from 2. Trait Mapping and click Open
.
When you open the Trait mapping file
, a list of related PSB files
will be generated. For each file name
, click Browse
and enter the location of the PSB file
in question.
If the PSB file and the trait mapping file are in the same folder, the location of the PSB file will be automatically entered.
2. Once the locations of all PSB files
have been entered, click the Import
button to import all assets.
3. Import is complete. Press OK
to close window.
Imported PSB files can be found in the Project window. Choose Assets > MYTYAsset > ImportedAvatarAssets
.
2. Detailed settings of an imported PSB file
can be seen in the Inspector
window.
PSB files that have editable sprites have a right-arrow icon on top of the file icon.
3. In the Inspector windowโs Layer Import
section, check the Include Hidden Layers
and Use Layer Group
checkboxes.
This includes all hidden layers of the PSB file, and enables the use of the layer structure.
4. In the Inspector windowโs Platform Settings
section, change the Max Size
to 8192
.
Max Size is the maximum resolution of images imported to Unity. It is recommended to set this to an optimum of 8192.
5. Apply changes by clicking the Apply
button, located under the Inspector windowโs Advanced
section.
1. In the PSB fileโs Inspector window, change Texture > Filter Mode
to Point(no filter)
.
For more information on the PSB Importer, refer to the official Unity manual
You can use the Hierarchy windowโs AvatarSelector
object to preview each NFT Avatar ID
.
Try changing the Avatar ID
in the AvatarSelector
's Inspector window. The Avatar ID can be changed even when the project is playing.
Click the โ icon next to the Find with
box, search for the trait name you want to find, and select it.
If you click the Find next
button, the avatars containing the trait are displayed on Scene window in ID order.
Please configure your Avatar ID to the smallest number before clicking Find next.
2. In the PSB fileโs Inspector window, change Platform Settings > Max Size
to 8192
.
3. Save changes by clicking the Apply
button below the Inspector windowโs Advanced
section.
Have a question or an idea? If you have a question to ask or an idea to share, participate in the MYTY Kit Community. Weโd love to hear from you.