Not a bug

Crash after reloading API script

minibox 2 months ago updated by Peter - Soxware Developer 2 months ago 3

Similar issue:https://support.soxware.com/communities/1/topics/44-crash-on-script-update

Unity crashes when reloading a script that has been placed in UMotionEditor/Scripts/Editor to use the UMotion API and has `using UMotionEditor.API;` code in it after modifying it.

GameObject is not selected,
crashes in both cases, even if there is no project open.

Image 1436

UMotionCopyPaste.cs

Editor.log

crash.dmp

UMotion Version:
1.29p03
Unity Version:
2022.3.22f1

Answer

Answer
Not a bug

Hi minibox,
thank you very much for your support request.

Does it also crash if you place the script in a different editor folder (e.g. "Assets/Editor")

Best regards,
Peter

Answer
Not a bug

Hi minibox,
thank you very much for your support request.

Does it also crash if you place the script in a different editor folder (e.g. "Assets/Editor")

Best regards,
Peter

Thank you so much!!! It works fine.

I wasn't sure how the Editor directory works in Unity, so I placed my scripts inside UMotion and that was the problem...

Chances are that this is a Unity bug. Unity shouldn't crash when reloading scripts no matter where the script is placed. But as the workaround is fairly simple, we do not further investigate.

Best regards,
Peter