Search Issue Tracker

Fixed in 2020.1.X

Votes

0

Found in

2020.1.0a4

2020.1.0a13

Issue ID

1198750

Regression

Yes

[Animation] NullReferenceException is thrown when New Script is Added to Animation State from "Add Behaviour" in the Inspector

Animation

-

Adding New Script to Animation State causes editor to throw NullReferenceException, Refer attached video

Steps to repro:
Create a new Project
Project > right-click > Create > Animator Controller > Open
Animator Blackboard > right-click > Create State > Empty
Select "New State"
Inspector > Add Behaviour > New Script > Enter Name > Create and Add

Actual Result:
NullReferenceException errors are thrown in the console on adding New Script to Animation State.

Expected Result:
New script is added to Animation State without any exceptions

Reproducible in:
2020.1.0a13, 2020.1.0a4

Working Fine in:
2020.1.0a3, 2019.3.0b11.

Environment:
Windows 10 & macOS 10.14.

Stack trace:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.Graphs.AnimationStateMachine.StateMachineBehaviorsEditor.BuildEditorList (UnityEngine.StateMachineBehaviour[] behaviours) (at <fbf7b765d0734eb5a695036ccdd28df5>:0)
UnityEditor.Graphs.AnimationStateMachine.StateMachineBehaviorsEditor.OnInspectorGUI () (at <fbf7b765d0734eb5a695036ccdd28df5>:0)
UnityEditor.Graphs.AnimationStateMachine.StateEditor.OnInspectorGUI () (at <fbf7b765d0734eb5a695036ccdd28df5>:0)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass55_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <c68d6dc296e3436796126be8249ff304>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

  1. Resolution Note (fix version 2020.1):

    Regression introduced in 2020.1.0a4 by case 1173312

Comments (55)

  1. unity_K99WJS2TxGpRtA

    Mar 13, 2020 09:37

    These are some great tools that i definitely use for SEO work. This is a great list to use in the future..
    Notfallzahnarzt Bern https://www.dentcenter.ch/

  2. jazibraza53

    Mar 11, 2020 17:35

    Awesome article! I want people to know just how good this information is in your article. It’s interesting, compelling content. Your views are much like my own concerning this subject.
    The avenir condo https://www.the-avenircondos.com

  3. unity_K99WJS2TxGpRtA

    Mar 08, 2020 14:47

    I read a article under the same title some time ago, but this articles quality is much, much better. How you do this..
    Stay Dry Roofing Repair Near Me https://www.staydryroofing.com/

  4. unity_K99WJS2TxGpRtA

    Feb 25, 2020 15:45

    This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information...
    du lich tu tuc http://www.pokerinside.com/profiles/view/352804

  5. unity_K99WJS2TxGpRtA

    Feb 23, 2020 17:44

    This is a brilliant blog! I'm very happy with the comments!..
    <a href='http://www.ocfmc.com/a-residential-locksmith-professional/'>Residential Locksmith</a>

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.