Avatar SDK Unity Cloud plugin  3.0.1
Realistic avatar generation toolset for Unity3D
How To Recolor Textures

Avatar SDK Cloud unity plugin allows you to recolor the following parts of an avatar at runtime:

  • haircut
  • skin (for head2.0 | head/mobile only)

Haircut recoloring

Add HaircutRecolorer component to the 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 call 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

Skin recoloring works only for head2.0|head/mobile avatars.
Add SkinRecolorer component to the object with a head mesh renderer. 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 call 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.