Click or drag to resize

CheckerMaterialRelease Method

Release checker material.

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

Namespace:  HightlanderSolutions.MeshCheckerEditorExtension.Checker
Assembly:  MeshCheckerLibrary (in MeshCheckerLibrary.dll) Version: 2.3
Syntax
C#
public static void Release(
	Guid requestorId
)

Parameters

requestorId
Type: SystemGuid
Id of requestor. It must be equal to the requestorId argument in Get(Guid) call.
Examples
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);
}
See Also