Version: Unity 7.0 Alpha (7000.0)
LanguageEnglish
  • C#

MaterialEditor.LightmapEmissionFlagsProperty

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public void LightmapEmissionFlagsProperty(int indent, bool enabled);

Parameters

Parameter Description
indent The number of levels to indent the property by.
enabled Set to true if emission is enabled for the material. Set to false otherwise.

Description

Draws the UI for setting the global illumination flags of the selected materials.

Use this method in a custom material editor to let users choose whether the emission of the selected materials contributes to realtime or baked global illumination. This overload also updates the flags to match the emission color of each material.


Declaration

public void LightmapEmissionFlagsProperty(int indent, bool enabled, bool ignoreEmissionColor);

Parameters

Parameter Description
indent The number of levels to indent the property by.
enabled Set to true if emission is enabled for the material. Set to false otherwise.
ignoreEmissionColor Set to true to leave the flags as they are, regardless of the emission color. Set to false to update them to match the emission color of each material.

Description

Draws the UI for setting the global illumination flags of the selected materials, with the option to ignore the emission color.

Use this method in a custom material editor to let users choose whether the emission of the selected materials contributes to realtime or baked global illumination.