Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


FixupEmissiveFlag

Properly sets up the globalIllumination flag on the given Material depending on the current flag's state and the material's emission property.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule

FixupEmissiveFlag(Material)

Properly sets up the globalIllumination flag on the given Material depending on the current flag's state and the material's emission property.
public static void FixupEmissiveFlag(Material mat)

Parameters

The material to be fixed up.

FixupEmissiveFlag(Color, MaterialGlobalIlluminationFlags)

Returns a properly set global illlumination flag based on the passed in flag and the given color.
public static MaterialGlobalIlluminationFlags FixupEmissiveFlag(Color col, MaterialGlobalIlluminationFlags flags)

Parameters

Emission color.

Current global illumination flag.

Returns

Type

Description

MaterialGlobalIlluminationFlagsThe fixed up flag.