public ModelImporterAvatarSetup avatarSetup ;

Descripción

The Avatar generation of the imported model.

This property depends on the value of ModelImporter.animationType:

- ModelImporterAnimationType.None or ModelImporterAnimationType.Legacy sets this property to ModelImporterAvatarSetup.NoAvatar because Avatar generation does not support the None or Legacy animation types.

- ModelImporterAnimationType.Generic supports any value.

- ModelImporterAnimationType.Human requires an avatar to import its animation. You must use either ModelImporterAvatarSetup.CreateFromThisModel, ModelImporterAvatarSetup.CopyFromOther or set ModelImporterAvatarSetup.autoGenerateAvatarMappingIfUnspecified to true .