5. Import 2D Avatar Assets
TL;DR
Open the Importer window
In the header tab, choose
MYTY Kit > Import 2D Avatar Asset
to open theImporter 2D Avatar Asset
window
Open the trait mapping file
Click the
open
button next to theTrait mapping file
input box.Locate the
Trait mapping file
that you downloaded from 2. Trait Mapping and clickOpen
.
Set the location of PSBs
When you open the
Trait mapping file
, alist of related PSB files
will be generated. For eachfile name
, clickBrowse
and enter the location of thePSB 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.
Change the settings of imported PSB assets
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.
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)
.
For more information on the PSB Importer, refer to the official Unity manual
Avatar Selector with Trait Finder
How to use AvatarSelector
You can use the Hierarchy windowโs
AvatarSelector
object to preview eachNFT Avatar ID
.Try changing the
Avatar ID
in theAvatarSelector
's Inspector window. The Avatar ID can be changed even when the project is playing.
How to use Trait Finder
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.
Last updated