tk2dFontData.OnDestroy C# (CSharp) Method

OnDestroy() public method

public OnDestroy ( ) : void
return void
    void OnDestroy()
    {
        // if material is from a sprite collection
        if (needMaterialInstance && spriteCollection == null)
            DestroyImmediate(materialInst);
    }