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
- Required SpriteMask class (ID 331) is stripped when "Strip Engine Code" is enabled
- “Maximized serialized file backup not found” error is thrown when minimizing a window in a newly opened project
- Build stack trace contains invalid lines when building with IL2CPP using scripts with delegates containing generic types in the signature
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
- Entities Hierarchy Search “Show/Hide” button’s Lens Icon is blurry when the Editor is on an external monitor
Add comment