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

MaterialEditor.LightmapEmissionProperty(string)

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

Description

This function will draw the UI for the lightmap emission property. (None, Realtime, baked)

Additional resources: MaterialLightmapFlags.


Declaration

public void LightmapEmissionProperty();

Description

Draws the UI for the lightmap emission property of the selected materials, using automatic layout.

The lightmap emission property controls whether the emission of a material contributes to realtime global illumination, baked global illumination, or neither. For more information, refer to MaterialGlobalIlluminationFlags. This overload uses automatic layout. To set the position and size of the control, use the overload that takes a Rect.


Declaration

public void LightmapEmissionProperty(int labelIndent);

Parameters

Parameter Description
labelIndent The number of levels to indent the label by.

Description

Draws the UI for the lightmap emission property with an indented label, using automatic layout.

The lightmap emission property controls whether the emission of a material contributes to realtime global illumination, baked global illumination, or neither. For more information, refer to MaterialGlobalIlluminationFlags. This overload uses automatic layout. To set the position and size of the control, use the overload that takes a Rect.


Declaration

public void LightmapEmissionProperty(Rect position, int labelIndent);

Parameters

Parameter Description
position The position and size of the control.
labelIndent The number of levels to indent the label by.

Description

Draws the UI for the lightmap emission property with an indented label, at a specified position.

The lightmap emission property controls whether the emission of a material contributes to realtime global illumination, baked global illumination, or neither. For more information, refer to MaterialGlobalIlluminationFlags.