5. Import 2D Avatar Assets

Open the Importer window

  • In the header tab, choose MYTY Kit > Import 2D Avatar Asset to open the Importer 2D Avatar Asset window
Choose MYTY Kit > Import 2D Avatar Asset

Open the trait mapping file

  1. 1.
    Click the open button next to the Trait mapping file input box.
  2. 2.
    Locate the Trait mapping file that you downloaded from 2. Trait Mapping and click Open.

Enter location of PSBs

  1. 1.
    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 filein 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.
A list of PSB files related to a trait mapping file. You can enter each PSB file’s location with the Browse button.
2. Once the locations of all PSB files have been entered, click the Import button to import all assets.
A list of PSB files and their locations. You can use the Import button to import the files to the Project panel.
Import is complete. Press OK to close window.
3. Import is complete. Press OK to close window.

Change the settings of imported PSB assets

Tutorial video - How to change the settings of imported PSB assets
  1. 1.
    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.
A PSB file icon with a right-arrow icon.
Change the settings of imported PSP assets in the Inspector window. (Steps 3, 4, and 5)
3. In the Inspector window’s Layer Importsection, check the Include Hidden Layersand Use Layer Groupcheckboxes.
This includes all hidden layers of the PSB file, and enables the use of the layer structure.
Check all three checkboxes in the Layer Import section.
4. In the Inspector window’s Platform Settings section, change the Max Sizeto 8192.
Max Size is the maximum resolution of images imported to Unity. It is recommended to set this to an optimum of 8192.
Change the Max Size to 8192 in Platform Settings
5. Apply changes by clicking the Apply button, located under the Inspector window’s Advanced section.
Save changes by clicking the Apply button in the lower right.

Is the image’s outline jagged?

How to change settings for anti-aliasing a jagged PSB.

1. In the PSB file’s Inspector window, change Texture > Filter Mode to Point(no filter).
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.
How to change settings for anti-aliasing a jagged PSB.
For more information on the PSB Importer, refer to the official Unity manual

Avatar Selector

  • 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.
A demonstration the Avatar Selector
The Avatar Selector component.
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.
😄