Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetNormalMapEncoding

Sets the normal map encoding for the given build target.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor

SetNormalMapEncoding(BuildTargetGroup, NormalMapEncoding)

Sets the normal map encoding for the given build target.
Warning
Deprecated. Use SetNormalMapEncoding(NamedBuildTarget buildTarget, NormalMapEncoding encoding) instead
public static void SetNormalMapEncoding(BuildTargetGroup platform, NormalMapEncoding encoding)

Parameters

The platform build target group whose normal map encoding you want to set.

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 instead.

SetNormalMapEncoding(NamedBuildTarget, NormalMapEncoding)

Sets the normal map encoding for the given build target.
public static void SetNormalMapEncoding(NamedBuildTarget buildTarget, NormalMapEncoding encoding)

Parameters

buildTarget

The NamedBuildTarget (only Android, iOS and tvOS).

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 instead.