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
- Red spots appear when Blending Lighting Scenarios using Adaptive Probe Volumes
- [Windows] About Unity Window needs to be opened twice to adapt to resolution
- NullReferenceException and temporary graph corruption after entering playmode if output node connection was changed
- Sprite Renderer with Animation does not reflect Sprite changes in the Scene when switching Mask Interaction
- Error "NullReferenceException: Object reference not set to an instance of an object" is present when loading 3D text mesh in Player from an asset bundle that is built with an older Editor version
Add comment