Click or drag to resize

CheckerMaterial Class

This static class is a manager of checker material instance.

Manager controls usage of material and creates material instance when needed. That's why you must release it in Deinitialize() or MonoBehaviour.OnDisable() call. If don't - it is possible to get memory (resources) leak in editor.

Inheritance Hierarchy
SystemObject
  HightlanderSolutions.MeshCheckerEditorExtension.CheckerCheckerMaterial

Namespace:  HightlanderSolutions.MeshCheckerEditorExtension.Checker
Assembly:  MeshCheckerLibrary (in MeshCheckerLibrary.dll) Version: 2.3
Syntax
C#
[PublicAPIAttribute]
public static class CheckerMaterial

The CheckerMaterial type exposes the following members.

Methods
  NameDescription
Public methodStatic memberDrawSettings(Rect, Action)
Draw checker texture settings zone
Public methodStatic memberDrawSettings(Rect, RectOffset, Action)
Draw checker texture settings zone
Public methodStatic memberCode exampleGet
Get checker material.

Do not destroy it manually, just Release(Guid) when the need has gone.

Public methodStatic memberGetHeight
Get height of settings drawing zone
Public methodStatic memberGetHeight(RectOffset)
Get height of settings drawing zone
Public methodStatic memberCode exampleRelease
Release checker material.

CheckerMaterial will check if another request exists. If not - it will destroy checker material instance.

Top
See Also