Avatar SDK Local Compute Unity plugin  3.1.0
Realistic avatar generation toolset for Unity3D
How To Recolor Textures

Avatar SDK Local Compute unity plugin v3.1.0 allows recoloring body and haircut textures at runtime:

Haircut recoloring

Add the HaircutRecolorer component to an object with a haircut mesh renderer. Basic properties should be automatically detected.

haircut_recolorer.jpg
  • Enable Recoloring: disable it to revert an initial color.
  • Color: target color, to which a haircut is recolored.
  • Recoloring By Material: material that is used to recolor a texture. We don't recommend to change it.
  • Material To Recolor: material which mainTexture is recolored. By default it is taken from a sharedMaterial of a haircut MeshRenderer.
  • Texture To Recolor: a texture that is recolored.
  • Color Picker: ColorPicker UI control for selecting a color. Can be None.

HaircutRecolorer uses an average color from the texture as a default color. If you invoke HaircutRecolorer.DetectDefaultColor method by passing an avatar code, it will tries to find the "Hair Color" value in Model Info file and will use it as a default color. If itsn't found, an average color will be used.

Skin recoloring

Add SkinRecolorer component to an avatar object. Basic properties should be automatically detected.

skin_recolorer.jpg
  • Enable Recoloring: disable it to revert an initial color.
  • Color: target color, to which a skin is recolored.
  • Recoloring By Material: material that is used to recolor a texture. We don't recommend to change it.
  • Material To Recolor: material which mainTexture is recolored. By default it is taken from a sharedMaterial of a head MeshRenderer.
  • Texture To Recolor: a texture that is recolored.
  • Color Picker: ColorPicker UI control for selecting a color. Can be None.

SkinRecolorer uses an average color from the texture as a default color. If you invoke SkinRecolorer.DetectDefaultColor method by passing an avatar code, it will tries to find the "Skin Color" value in Model Info file and will use it as a default color. If itsn't found, an average color will be used.
For better results we recommend to use a default skin color from the Model Info.