DepthTexture.OnDisable C# (CSharp) Method

OnDisable() protected method

protected OnDisable ( ) : void
return void
    protected void OnDisable()
    {
        if (mat)
        {
            DestroyImmediate(mat);
        }
    }