Skip to main content
Version: 4.3.0

Hair Eraser

The Hair Eraser generative effect utilizes generative adversarial networks (GANs) to remove short to medium-length hair with one click.

before       after

You can create a wig effect by adding a Hair Eraser object, followed by a Hair Segmentation object.

note

With Hair Eraser applied, Portrait Segmentation will still detect the user’s true silhouette.

The generative effect is applied to match the skin and provide a seamless look. A generative effect will always apply to Face 0—the first detected face.

Add Hair Eraser

tip

Adding multiple Generative Effects objects may slow down the performance of your effect. It is recommended that you limit the usage of generative effects. Multiple generative effects targeting the same facial area should not be used together.

To add a Hair Eraser object:

  1. Go to the Hierarchy panel
  2. Click the + Add object button [+]
  3. Go to Generative Effects
  4. Select Hair Eraser
add hair eraser

Hair Eraser in the Hierarchy Panel

The Hair Eraser object, in addition to its corresponding Generative Effects Camera object, appears in the Generative Effects render group in the Hierarchy panel. Learn more about render groups.

hair eraser hierarchy

Hair Eraser in the Assets Panel

You can also find the Hair Eraser asset under the Generative Effects folder in the Assets panel.

hair eraser assets

To manually add a Hair Eraser asset:

  1. Go to the Assets panel
  2. Click the Add asset button [+]
  3. Go to Generative Effects
  4. Select Hair Eraser

Components

The Hair Eraser object is made up of the following components, found in the Inspector panel: