CheckerMaterial Class |
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.
Namespace: HightlanderSolutions.MeshCheckerEditorExtension.Checker
[PublicAPIAttribute] public static class CheckerMaterial
The CheckerMaterial type exposes the following members.
Name | Description | |
---|---|---|
DrawSettings(Rect, Action) |
Draw checker texture settings zone
| |
DrawSettings(Rect, RectOffset, Action) |
Draw checker texture settings zone
| |
Get |
Get checker material.
Do not destroy it manually, just Release(Guid) when the need has gone. | |
GetHeight |
Get height of settings drawing zone
| |
GetHeight(RectOffset) |
Get height of settings drawing zone
| |
Release |
Release checker material.
CheckerMaterial will check if another request exists. If not - it will destroy checker material instance. |