mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-11 13:04:17 -05:00
Bone name must be unique in the vrm instance.
This commit is contained in:
parent
902ed67335
commit
be4f7847b4
|
|
@ -58,7 +58,8 @@ namespace UniVRM10
|
|||
|
||||
BoneType = boneType;
|
||||
ControlTarget = controlTarget;
|
||||
ControlBone = new GameObject(boneType.ToString()).transform;
|
||||
// NOTE: bone name must be unique in the vrm instance.
|
||||
ControlBone = new GameObject($"{nameof(Vrm10ControlBone)}:{boneType.ToString()}").transform;
|
||||
ControlBone.position = controlTarget.position;
|
||||
InitialControlBoneLocalPosition = ControlBone.localPosition;
|
||||
InitialControlBoneLocalRotation = ControlBone.localRotation;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user