Example #1
0
 protected virtual void OnDisable()
 {
     Clear();
     if (svgRenderer != null)
     {
         svgRenderer.UpdateRenderer();
     }
 }
Example #2
0
 // This method is invoked by Unity when rendering to Camera
 void OnWillRenderObject()
 {
     if (svgRenderer == null || svgRenderer.lastFrameChanged == Time.frameCount)
     {
         return;
     }
     svgRenderer.UpdateRenderer();
 }
Example #3
0
 // 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();
 }