Search Issue Tracker
Fixed in 3.0.1-preview.2
Fixed in 2.0.1-preview.2
Votes
0
Found in [Package]
preview.2 - 3.0.0, preview.1 - 2.0.0, preview.1 - 1.3.0, preview.1 - 1.0.5
Issue ID
1223323
Regression
No
[2D] NullReferenceException is thrown on selecting "Restore Default Pose" Property under "IK Manager 2D(Script)
On selecting "Restore Default Pose" property under "IK Manager 2D(Script)" causes the editor to throw NullReferenceException, refer attached video.
Steps to repro:
1. Create a new Project
2. Windows > Package Manager > 2D IK > Install
3. Hierarchy > right-click > Create Empty
4. Inspector > Add Component > Limb Solver 2D (Script)
5. Inspector > Add Component > IK Manager 2D (Script)
6. Select "Restore Default Pose" Button.
Actual Result:
NullReferenceException is thrown on selecting "Restore Default Pose" Property under "IK Manager 2D (Script)"
Expected Result:
Restore Default Pose property is selected without any errors.
Tested with Unity versions:
2020.2.0a1, 2020.1.0a25, 2019.3.3f1, 2018.1.0b13
Package found version: preview.2 - 3.0.0, preview.1 - 2.0.0, preview.1 - 1.3.0, preview.1 - 1.0.5,
Environment:
Windows10 and macOS 10.14
Stack trace:
NullReferenceException: Object reference not set to an instance of an object
UnityEngine.Experimental.U2D.IK.IKChain2D.RestoreDefaultPose (System.Boolean targetRotationIsConstrained) (at library/packagecache/com.unity.2d.ik@3.0.0-preview.2/runtime/ikchain2d.cs:151)
UnityEditor.Experimental.U2D.IK.IKManager2DEditor.DoRestoreDefaultPoseButton () (at library/packagecache/com.unity.2d.ik@3.0.0-preview.2/editor/inspectors/ikmanager2deditor.cs:159)
UnityEditor.Experimental.U2D.IK.IKManager2DEditor.OnInspectorGUI () (at library/packagecache/com.unity.2d.ik@3.0.0-preview.2/editor/inspectors/ikmanager2deditor.cs:136)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass58_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <e859a479319a4a5a8d9711977e98d28e>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
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
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
Resolution Note (fix version 2.0.1-preview.2):
A fix for this issue will be available on 2D IK 2.0.1-preview.2 package version and above