Search Issue Tracker
Fixed in 4.6.X
Votes
0
Found in
4.6.0b1
Issue ID
588654
Regression
No
Lots of exceptions are thrown when resizing Canvas with Render Mode set to World Space
Console gets spammed with:
The targets array should not be used inside OnSceneGUI or OnPreviewGUI. Use the single target property instead.
UnityEditor.DockArea:OnGUI()
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.RectTransformEditor.GetAnchorLocal (UnityEngine.RectTransform guiParent, Vector2 anchor) (at C:/BuildAgent/work/afa2580bf6048259/Editor/Mono/Inspector/RectTransformEditor.cs:777)
UnityEditor.RectTransformEditor.DrawAnchorRect (UnityEngine.Transform parentSpace, UnityEngine.RectTransform gui, UnityEngine.RectTransform guiParent, Int32 axis) (at C:/BuildAgent/work/afa2580bf6048259/Editor/Mono/Inspector/RectTransformEditor.cs:1061)
UnityEditor.RectTransformEditor.DrawSizes (Rect rectInUserSpace, UnityEngine.Transform userSpace, Rect rectInParentSpace, UnityEngine.Transform parentSpace, UnityEngine.RectTransform gui, UnityEngine.RectTransform guiParent) (at C:/BuildAgent/work/afa2580bf6048259/Editor/Mono/Inspector/RectTransformEditor.cs:910)
UnityEditor.RectTransformEditor.OnSceneGUI () (at C:/BuildAgent/work/afa2580bf6048259/Editor/Mono/Inspector/RectTransformEditor.cs:548)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
UnityEditor.SceneView.CallOnSceneGUI () (at C:/BuildAgent/work/afa2580bf6048259/Editor/Mono/SceneView/SceneView.cs:1674)
UnityEditor.SceneView.HandleSelectionAndOnSceneGUI () (at C:/BuildAgent/work/afa2580bf6048259/Editor/Mono/SceneView/SceneView.cs:1093)
UnityEditor.SceneView.OnGUI () (at C:/BuildAgent/work/afa2580bf6048259/Editor/Mono/SceneView/SceneView.cs:970)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Blank, Light-Themed "Create Node" window becomes visible on the next project open
- UI Elements/Layout inconsistencies in the Particle System component
- The Game view and Scene view fail to render when launching the Editor with a maximized Render Graph Viewer window
- "List is empty" is poorly visible in the "Create Node" window
- [Android] GameObject with a custom shader becomes invisible when deployed with the Vulkan Graphics API
Add comment