avatarSetup
The Avatar generation of the imported model.
읽는 시간 1분최근 업데이트: 한 달 전
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 .