Search Issue Tracker

Duplicate

Votes

0

Found in

2021.1.0b7

Issue ID

1315472

Regression

Yes

Unity C# not automatically updating EventType.mouseUp/mouseDown to EventType.MouseUp/Down

Scripting

-

After downloading the Ann Tools package from the Asset Store I have to manually update the event type of mouseDown/mouseUp. I would have expected Unity to auto-update the code for me to make the upgrade process to 2021.1 as smooth as possible.

Steps to reproduce
- Open Unity 2021.1.0b7
- Open Asset Store. Open in Unity the following package https://assetstore.unity.com/packages/add-ons/machinelearning/ann-tools-138836
- Import the package
Notice issue >> Numerous console errors asking to update mouseUp and mouseDown event.

With Unity 2020.2.4f1, after importing the asset, the auto-updater fires asking me to back up my project. In 2021.0b7 this does not happen.

Reproducible: Windows 2021.1.0b7
Not Reproducible: Windows 2020.2.4f1

Error
Assets\ANN\Scripts\ANN\Interface\PerceptronBackPropagationInterface.cs(209,35): error CS0619: 'EventType.mouseDown' is obsolete: 'Use MouseDown instead (UnityUpgradable) -> MouseDown'

Script updater for Library\Bee\artifacts\1900b0aE.dag\Assembly-CSharp.dll failed with exitcode -532462766 and stdout: Unhandled exception. System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\WORKSPACE\TEMP\New Unity Project\Unity[^\]+(\.ref)?\.dll$'.
at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding encoding, Int32 bufferSize)
at System.IO.StreamReader..ctor(String path)
at ScriptUpdater.Program.<>c__DisplayClass8_0.<Main>b__0()
at ScriptUpdater.Program.Profile[T](Func`1 toProfile, Int64& elapsedTime)
at ScriptUpdater.Program.Main(String[] args)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at Program.Main(String[] args)

Comments (2)

  1. goodgamedevmohd1242423434443433434324343242342432

    Nov 28, 2022 12:05

    How do I

  2. Level3Manatee

    Mar 14, 2021 20:41

    I had a similar issue in 2021.1.0b11 (and previous versions) on multiple occasions ("System.IO.DirectoryNotFoundException: Could not find a part of the path '<Unity Project>\Unity[^\]+(\.ref)?\.dll$'. ") . In my case, I was able to fix it by moving the Unity installation to a path that did not contain any whitespaces.

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.