Click or drag to resize

CustomShadingOptionDescriptionTShadingOption Constructor

Namespace:  HightlanderSolutions.MeshCheckerEditorExtension.MeshAnalysisFramework.UserInterface
Assembly:  MeshCheckerLibrary (in MeshCheckerLibrary.dll) Version: 2.3
Syntax
C#
public CustomShadingOptionDescription(
	Vector2 size,
	CustomShadingOptionDescriptionTShadingOptionContentDrawerDelegate contentDrawer
)

Parameters

size
Type: Vector2
The size of a description popup.
contentDrawer
Type: HightlanderSolutions.MeshCheckerEditorExtension.MeshAnalysisFramework.UserInterfaceCustomShadingOptionDescriptionTShadingOptionContentDrawerDelegate
The content drawer method.
Examples

This example shows how to use drawer with a content drawer method.

/// <summary>
///     The description drawer.
/// </summary>
private readonly CustomShadingOptionDescription<NormalsShadingOption> Description =
   new CustomShadingOptionDescription<NormalsShadingOption>(new Vector2(800, 80), DescriptionDrawer);

private void DescriptionDrawer(Rect position) 
{
    // Draw some description...
}

Anonymous method also can be used.

/// <summary>
///     The description drawer.
/// </summary>
private readonly CustomShadingOptionDescription<NormalsShadingOption> Description =
   new CustomShadingOptionDescription<NormalsShadingOption>(
       new Vector2(800, 80), position => 
       {
           GUI.Label(position, "Some description");
       });

See Also