Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
136512892 committed Sep 27, 2022
1 parent 451777d commit 12ae57b
Show file tree
Hide file tree
Showing 260 changed files with 933 additions and 12,866 deletions.
Binary file modified .vs/AvatarClothes/v17/.suo
Binary file not shown.
5 changes: 5 additions & 0 deletions Assets/Example.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public class Example : MonoBehaviour

[SerializeField] private SkinnedMeshRenderer head, body, top, bottom, footwear, hair, glasses, beard;
private Material currentHeadMat;
private Material cacheHeadMat;

private void Start()
{
Expand Down Expand Up @@ -44,6 +45,7 @@ private IEnumerator InitOutlook()
int index = instance.transform.GetSiblingIndex();
head.sharedMesh = outlookConfig.data[index].headMesh;
head.sharedMaterial = currentHeadMat != null ? currentHeadMat : outlookConfig.data[index].headMaterial;
cacheHeadMat = outlookConfig.data[index].headMaterial;

body.sharedMesh = outlookConfig.data[index].bodyMesh;
body.sharedMaterial = outlookConfig.data[index].bodyMaterial;
Expand Down Expand Up @@ -138,10 +140,13 @@ private IEnumerator InitBeard()
beard.sharedMesh = beardConfig.data[index].beardMesh;
beard.sharedMaterial = beardConfig.data[index].beardMaterial;
currentHeadMat = null;
if (cacheHeadMat != null) head.sharedMaterial = cacheHeadMat;
break;
case AvatarBeardData.Type.Texture:
head.sharedMaterial = beardConfig.data[index].beardMaterial;
currentHeadMat = beardConfig.data[index].beardMaterial;
beard.sharedMesh = null;
beard.sharedMaterial = null;
break;
}
}
Expand Down
8 changes: 0 additions & 8 deletions Assets/New Folder.meta

This file was deleted.

8 changes: 0 additions & 8 deletions Assets/New Folder/05.fbm.meta

This file was deleted.

Binary file not shown.

This file was deleted.

Binary file removed Assets/New Folder/05.fbm/Wolf3D_Teeth.jpg
Binary file not shown.
96 changes: 0 additions & 96 deletions Assets/New Folder/05.fbm/Wolf3D_Teeth.jpg.meta

This file was deleted.

Binary file removed Assets/New Folder/05.fbm/baseColor.jpg
Binary file not shown.
96 changes: 0 additions & 96 deletions Assets/New Folder/05.fbm/baseColor.jpg.meta

This file was deleted.

Binary file not shown.
Loading

0 comments on commit 12ae57b

Please sign in to comment.