# SetNormalMapEncoding

> Sets the normal map encoding for the given build target.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.0/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

## SetNormalMapEncoding(BuildTargetGroup, NormalMapEncoding)

Sets the normal map encoding for the given build target.

> **Warning:**
>
> **Deprecated.** Use SetNormalMapEncoding(NamedBuildTarget buildTarget, NormalMapEncoding encoding) instead

```csharp
public static void SetNormalMapEncoding(BuildTargetGroup platform, NormalMapEncoding encoding)
```

### Parameters

**** (\[BuildTargetGroup]\(/engine/6000.0/script-reference/unityeditor/buildtargetgroup)): The platform build target group whose normal map encoding you want to set.**** (\[NormalMapEncoding]\(/engine/6000.0/script-reference/unityeditor/normalmapencoding)): The desired normal map encoding.

### Remarks

The normal map encoding is configurable on Android, iOS and tvOS. On all other platforms it is ignored.

BuildTargetGroup is marked for deprecation in the future. Use [NamedBuildTarget](/engine/6000.0/script-reference/unityeditor/build/namedbuildtarget.md) instead.

## SetNormalMapEncoding(NamedBuildTarget, NormalMapEncoding)

Sets the normal map encoding for the given build target.

```csharp
public static void SetNormalMapEncoding(NamedBuildTarget buildTarget, NormalMapEncoding encoding)
```

### Parameters

**** (\[NamedBuildTarget]\(/engine/6000.0/script-reference/unityeditor/build/namedbuildtarget)): The [NamedBuildTarget](/engine/6000.0/script-reference/unityeditor/build/namedbuildtarget.md) (only Android, iOS and tvOS).**** (\[NormalMapEncoding]\(/engine/6000.0/script-reference/unityeditor/normalmapencoding)): The desired normal map encoding.

### Remarks

The normal map encoding is configurable on Android, iOS and tvOS. On all other platforms it is ignored.

BuildTargetGroup is marked for deprecation in the future. Use [NamedBuildTarget](/engine/6000.0/script-reference/unityeditor/build/namedbuildtarget.md) instead.
