CheckerMaterialGet Method |
Do not destroy it manually, just Release(Guid) when the need has gone.
Namespace: HightlanderSolutions.MeshCheckerEditorExtension.Checker
private Material CheckerMaterialInstance; public void Initialize() { // Generate requestor id Guid RequestorId = Guid.NewGuid(); // Get checker material instance CheckerMaterialInstance = CheckerMaterial.Get(RequestorId); } public void ProcessSomething() { // Apply material to something } public void Deinitialize() { // Release checker material CheckerMaterial.Release(RequestorId); }