Search Issue Tracker

Fixed in Unity 2017.1

Votes

36

Found in

5.4

Issue ID

815861

Regression

No

CanvasRenderer.OnTransformChanged is called on disabled UI objects

UI

-

-

Priority: 2Necessary for shipping a final release

-

Severity: 3Secondary functionality broken

When a transform with children CanvasRenderers is changed/moved CanvasRenderer.OnTransformChanged is called for all of them even if they are disabled causing huge CPU spikes.

The project attached contains a scene with 1000x4 such objects. Profiler shows a lot of time wasted in CanvasRenderer.OnTransformChanged every frame.

Comments (6)

  1. 43f15bb44162db0f4a2051e5f985036f?d=mm

    ken48

    Mar 23, 2017 16:59

    Thanks, Unity! It works in 5.5.2p4

  2. 43f15bb44162db0f4a2051e5f985036f?d=mm

    ken48

    Mar 23, 2017 14:02

    Unity 5.6.0f1 - nothing has changed :(((
    CanvasRenderer.OnTransformChanged - 4000 calls

  3. 5d9e56b66ae1991c869c16d1ad41dfa5?d=mm

    Froghuto

    Jan 10, 2017 15:06

    This makes using the UI system in VR projects (ui's that move with the camera) impossible. Please fix this!

  4. 640feeedba15991b3ffcdec409c1d5d2?d=mm

    Lszt

    Jan 06, 2017 11:04

    Issue exists on Unity 5.3 too and probably before this. Please it could be nice to do something or at least review this.

  5. 43f15bb44162db0f4a2051e5f985036f?d=mm

    ken48

    Dec 16, 2016 06:17

    There is not so good but working workaround. You can place inactive children from moving node to static one.

  6. 24b87b58d4dc93a3e66fb5f21dcdf0b5?d=mm

    zbyhoo

    Nov 08, 2016 17:29

    Is there ANY workaround for that? I have really big performance problems because of that on iPad 3.

All about bugs

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