Search Issue Tracker

Fixed in 2017.1.0f3

Fixed in 5.6.X, 2017.1.X



Found in


Issue ID




Enabling Mesh Renderer during rendering causes error in Console tab

Graphics - General


Steps to reproduce:

1) Download attached project '' and open in Unity
2) Open scene 'ReproScene' and press Play
3) Click on IndividualSoldier gameObject in Hierarchy tab
4) Click on Scene view and press F to focus on that gameObject
5) Check the Console tab and you will see that each frame error will be thrown :
Enabling or adding a Renderer during rendering; this is not allowed. Renderer '2WK_heavy_infantry_06_combat_walk_StaticFromSkinned' will not be added.

Expected result: No errors in Console tab
Actual result: Error 'Enabling or adding a Renderer during rendering; this is not allowed. Renderer '2WK_heavy_infantry_06_combat_walk_StaticFromSkinned' will not be added.
UnityEditor.DockArea:OnGUI()' when object is visible on the Scene or Game views

Reproduced with:
5.6.0b8, 5.6.0f3, 2017.1.0b1

Not reproduced with:
5.5.3p1, 5.6.0b7

Regression from:

Fixed in: 5.6.2p1, 2017.1.0f1

Comments (13)

  1. serviceacbekasi

    Feb 11, 2021 07:05


  2. mercygaleria

    Jul 28, 2020 10:14;u=245304;u=19154;u=556429;;u=245305;;u=19155;u=556432;;u=556433;u=245302;;u=556434,,,,

  3. jongallant

    May 20, 2017 23:40

    Or is there a way for me to get access to TMPro source? Ultimately that would be ideal.

  4. jongallant

    May 20, 2017 23:40

    What about those that do not have access to TMPro source? Is there an estimated time for a patch for this for TMPro?

  5. Stephan-B

    May 10, 2017 21:07

    Any TextMesh Pro users who have access to source code running into this issue can make the following (temporary) changes.

    Make the following changes in the TMP_UpdateManager.cs file at line 47.

    // Change from
    Camera.onPreRender += new Camera.CameraCallback(this.OnCameraPreRender);

    // Change to
    Camera.onPreCull += new Camera.CameraCallback(this.OnCameraPreRender);

    This will shift the generation of the text objects to before the camera is rendered to before culling. As a result, text objects which would not have been generated / updated in the past due to culling (ie. not being visible) will now still be generated.

    This is a temporary fix until the proper fix allowing us to use Camera.onPreRender is available.

    If anyone runs into unforeseen issues with this change, please let me know by posting in either the existing TextMesh Pro Unity forum threads or Unity UI & TextMesh Pro or on the TMP user forum.

  6. hadesfury

    May 10, 2017 14:52

    Happening in 5.6.0p4 ... really annoying !

  7. Iiva

    May 06, 2017 09:50

    this cause huge freeze on iOS

  8. IlyaNikitin

    May 05, 2017 07:41

    Now i have the same issue with this too. I'm Enabling/Disabling MeshRenderers through animation. This regression is really frustrating...

  9. kloogens

    May 02, 2017 14:03

    I'm having this problem with 5.6 and the LODs for my skinned meshes. Worked before, then I "upgraded", now everything is broken. So sick of the constant avalanche of unity bugs.

  10. Stents

    May 01, 2017 07:45

    "This happens to me using 5.6.0p1 while enabling renderers through the animator in an animation."

    This is also a major issue for us, and is preventing us from updating until it is resolved.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.