Click or drag to resize

CheckerMaterialGet Method

Get checker material.

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

Namespace:  HightlanderSolutions.MeshCheckerEditorExtension.Checker
Assembly:  MeshCheckerLibrary (in MeshCheckerLibrary.dll) Version: 2.3
Syntax
C#
[CanBeNullAttribute]
public static Material Get(
	Guid requestorId
)

Parameters

requestorId
Type: SystemGuid
Id of requestor. It must be passed to Release(Guid) when the need has gone.

Return Value

Type: Material
Returns instance of checker material.
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