Search Issue Tracker
Fixed in 2017.1.0f3
Fixed in 5.3.X, 5.4.X, 5.5.X, 5.6.X
Votes
0
Found in
5.4.3p4
Issue ID
886258
Regression
No
[UI] CanvasRenderer.OnTransformChanged is called twice per CanvasRenderer
In the attached project there is a Canvas set to Screen Space - Camera rendering mode with the Main Camera selected as the camera to render to. There are two CanvasRenderers as children of the Canvas. The Main Camera has a script (Rotator.cs) attached that rotates the camera every frame in Update(). See in the profiler that CanvasRenderer.OnTransformChanged is most of the time called twice per CanvasRenderer instead of once.
Also see attached image: OnTransformChangedProfilerPic.png
To repro:
1) Open attached project
2) Run in Editor or build to standalone
3) Attach profiler
4) See in profiler that CanvasRenderer.OnTransformChanged is most of the time called twice per CanvasRenderer in the Scene
-------------------------------------------------
Fixed also in 5.6.1p1, 5.5.3p4 & 5.4.5p2
Comments (1)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Caret in "Add Default Preset" text field is vertically misaligned in Preset Manager
- Unused separation line is present at the bottom of the create GameObject sub menu when right clicking Scene in the Hierarchy
- Text cursor and text highlighting is misaligned and cut off in the search bar when typing something and highlighting text in the "Add Default Preset" window
- [Android][UI Toolkit][GameActivity] Swipe‑typed word overrides a last entry with an InputField with a large amount of characters
- Texture Map Viewer shows "Loading..." text instead of indicating users that Baked Texture Maps are missing
2rusbekov
Oct 02, 2017 05:18
Issue still in 2017.1.p1