In unity, using animation rigging, i'm using a rig layer for the head to aim at the…
- User
In unity, using animation rigging, i'm using a rig layer for the head to aim at the camera look point, a transform i already created which is center point of the camera. The rig layer of the head is using a multi aim constraint, constraining the head to the look point. Upon launching the game, I get the following error : Ambiguous Transform 'Root/Hips/Spine/Chest/Neck/Head' and 'RigLayer_BodyAim/Head' found in hierarchy for human bone 'Head'. Transform name mapped to a human bone must be unique. 0x00007ff7405f692d (Unity) StackWalker::GetCurrentCallstack 0x00007ff7405fb9f9 (Unity) StackWalker::ShowCallstack 0x00007ff7415cce71 (Unity) GetStacktrace 0x00007ff741c8671e (Unity) DebugStringToFile 0x00007ff740930eab (Unity) AvatarBuilder::BuildAvatarConstantFromTransformHierarchy 0x00007ff7409270ad (Unity) Animator::SetupAvatarDataSet 0x00007ff74091afd4 (Unity) Animator::CreateObject 0x00007ff7409184f3 (Unity) Animator::BuildJobs 0x00007ff740929506 (Unity) Animator::UpdateAvatars 0x00007ff74048db29 (Unity) DirectorManager::ExecuteProcessCallbacks 0x00007ff74048e311 (Unity)
DirectorManager::InitializeClass'::2'::PreLateUpdateDirectorUpdateAnimationBeginRegistrator::Forward 0x00007ff740186e6c (Unity) ExecutePlayerLoop 0x00007ff740186fe0 (Unity) ExecutePlayerLoop 0x00007ff74018d875 (Unity) PlayerLoop 0x00007ff741152c1f (Unity) PlayerLoopController::InternalUpdateScene 0x00007ff74114a343 (Unity) PlayerLoopController::EnterPlayMode 0x00007ff74115a926 (Unity) PlayerLoopController::SetIsPlaying 0x00007ff74115e020 (Unity) Application::TickTimer 0x00007ff7415d37ea (Unity) MainMessageLoop 0x00007ff7415d9080 (Unity) WinMain 0x00007ff7429b800e (Unity) __scrt_common_main_seh 0x00007fff0c267034 (KERNEL32) BaseThreadInitThunk 0x00007fff0c6e2651 (ntdll) RtlUserThreadStart - Assistant
The error message you're seeing suggests that Unity has detected two transforms with the same or similar name that are both mapped to the human bone 'Head' on your avatar, which is causing ambiguity. In Unity's Animation Rigging and Animator system, it is critical to have unique names for each bone in the avatar, especially when those bones are part of the humanoid rig.