Search Issue Tracker

Fixed in 2018.1.X

Fixed in 2017.4.X

Votes

0

Found in

2017.4.0f1

2017.4.26f1

2018.1.0a1

Issue ID

1158558

Regression

No

RenderUpdateManager Asserts when selecting an Object with a Rect Transform and a disabled Sprite Renderer in the Scene View

uGUI

-

To reproduce:

1. Download attached “SpriteHierarch.zip" project and open in Unity
2. Open "ReproScene" scene
3. Select "SpriteWithRectTransform" gameObject and in Inspector observe that it has a Rect Transform and a disabled Sprite Renderer
4. Select the SpriteWithRectTransform in the Scene View with the Mouse Left Button
5. Select the SpriteWithRectTransform in the Scene View with the Mouse Left Button again

Expected results: No Error or Warning is Spammed in the Console window
Actual results: Console prints two Errors with each click:

"Assertion failed: RendererUpdateManager only synchronizes renderers that are added to the scene, so AssertIsTransformInfoUpToDate can only be called on renderers that are added to the scene
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)"

"Assertion failed: In order to call GetTransformInfoExpectUpToDate, RendererUpdateManager.UpdateAll must be called first.
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)"

Notes:
- This issue appears both on Windows and macOS
- This issue is fixed but I cannot find any Parent case

Reproduced on Unity 2017.4.0f1, 2017.4.28f1 and 2018.1.0b1
Not reproduced on Unity 2018.1.0b2, 2018.3.14f1, 2018.4.1f1, 2019.1.5f1, 2019.2.0b4 and 2019.3.0a4
Fixed on Unity 2018.1.0b2

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.