avatarSetup
The Avatar generation of the imported model.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Property
- Namespace: UnityEditor
- Assembly: UnityEditor
public ModelImporterAvatarSetup avatarSetup { get; set; }
Remarks
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 autoGenerateAvatarMappingIfUnspecified to true .