|  | CustomShadingOptionDescriptionTShadingOption Constructor | 
Namespace: HightlanderSolutions.MeshCheckerEditorExtension.MeshAnalysisFramework.UserInterface
 Syntax
Syntax Examples
ExamplesThis 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
See Also