add skin color modifier
This commit is contained in:
@@ -4,6 +4,7 @@ using UMA;
|
||||
using UMA.CharacterSystem;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine.UI;
|
||||
using static UnityEngine.Rendering.DebugUI;
|
||||
|
||||
public class CharacterDescriptor : MonoBehaviour
|
||||
{
|
||||
@@ -79,4 +80,10 @@ public class CharacterDescriptor : MonoBehaviour
|
||||
_dna["belly"].Set(value);
|
||||
_avatar.BuildCharacter();
|
||||
}
|
||||
|
||||
public void ChangeSkinColor(Color color)
|
||||
{
|
||||
_avatar.SetColor("Skin",color);
|
||||
_avatar.UpdateColors(true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user