protected virtual void OnDisable() { Clear(); if (svgRenderer != null) { svgRenderer.UpdateRenderer(); } }
// This method is invoked by Unity when rendering to Camera void OnWillRenderObject() { if (svgRenderer == null || svgRenderer.lastFrameChanged == Time.frameCount) { return; } svgRenderer.UpdateRenderer(); }
// This method is invoked by Unity when rendering to Camera void OnWillRenderObject() { if (svgRenderer == null || svgRenderer.lastFrameChanged == Time.frameCount) { return; } if (svgTransform == null || lastMatrix == svgTransform.matrix) { return; } svgRenderer.UpdateRenderer(); }