Updated to Cinemachine 2.7.5, Received Console Error

Working in Unity2019.2.5f1. I’m new to Cinemachine with my current game and recently updated my package from 2.3.4 to 2.7.5 after learning the previous version had a bug when building that was resolved in an update. Since then, I’ve been getting a console error I can’t seem to get rid of and I’m hoping someone can advise me! I’m attaching screenshots of the error in Unity and posting the text below. Below is also a list of things I’ve tried so far. Please let me know if I can provide any other helpful information! Thank you so much for your help! :slight_smile:

So far I’ve tried:

  • Reopening and closing and Unity a few times

  • Googling for answers but didn’t find this error specifically

  • Updated twice in case once was somehow corrupted

  • Reimported all assets

Error:
DirectoryNotFoundException: Could not find a part of the path ‘D:.…\Library\PackageCache\com.unity.cinemachine@2.7.5\Samples~\Cinemachine Example Scenes\Shared\Models\UnityCharacter\Models\Materials’.
System.IO.__Error.WinIOError (System.Int32 errorCode, System.String maybeFullPath) (at <599589bf4ce248909b8a14cbe4a2034e>:0)
System.IO.FileSystemEnumerableIterator1[TSource].HandleError (System.Int32 hr, System.String path) (at <599589bf4ce248909b8a14cbe4a2034e>:0) System.IO.FileSystemEnumerableIterator1[TSource].CommonInit () (at <599589bf4ce248909b8a14cbe4a2034e>:0)
System.IO.FileSystemEnumerableIterator1[TSource]..ctor (System.String path, System.String originalUserPath, System.String searchPattern, System.IO.SearchOption searchOption, System.IO.SearchResultHandler1[TSource] resultHandler, System.Boolean checkHost) (at <599589bf4ce248909b8a14cbe4a2034e>:0)
System.IO.FileSystemEnumerableFactory.CreateFileNameIterator (System.String path, System.String originalUserPath, System.String searchPattern, System.Boolean includeFiles, System.Boolean includeDirs, System.IO.SearchOption searchOption, System.Boolean checkHost) (at <599589bf4ce248909b8a14cbe4a2034e>:0)
System.IO.Directory.InternalGetFileDirectoryNames (System.String path, System.String userPathOriginal, System.String searchPattern, System.Boolean includeFiles, System.Boolean includeDirs, System.IO.SearchOption searchOption, System.Boolean checkHost) (at <599589bf4ce248909b8a14cbe4a2034e>:0)
System.IO.Directory.InternalGetFileSystemEntries (System.String path, System.String searchPattern, System.IO.SearchOption searchOption) (at <599589bf4ce248909b8a14cbe4a2034e>:0)
System.IO.Directory.GetFileSystemEntries (System.String path, System.String searchPattern) (at <599589bf4ce248909b8a14cbe4a2034e>:0)
System.IO.DefaultWatcher.DoFiles (System.IO.DefaultWatcherData data, System.String directory, System.Boolean dispatch) (at <9f8c4786222746238eb929db40bf8dd1>:0)
System.IO.DefaultWatcher.DoFiles (System.IO.DefaultWatcherData data, System.String directory, System.Boolean dispatch) (at <9f8c4786222746238eb929db40bf8dd1>:0)
System.IO.DefaultWatcher.DoFiles (System.IO.DefaultWatcherData data, System.String directory, System.Boolean dispatch) (at <9f8c4786222746238eb929db40bf8dd1>:0)
System.IO.DefaultWatcher.DoFiles (System.IO.DefaultWatcherData data, System.String directory, System.Boolean dispatch) (at <9f8c4786222746238eb929db40bf8dd1>:0)
System.IO.DefaultWatcher.DoFiles (System.IO.DefaultWatcherData data, System.String directory, System.Boolean dispatch) (at <9f8c4786222746238eb929db40bf8dd1>:0)
System.IO.DefaultWatcher.DoFiles (System.IO.DefaultWatcherData data, System.String directory, System.Boolean dispatch) (at <9f8c4786222746238eb929db40bf8dd1>:0)
System.IO.DefaultWatcher.DoFiles (System.IO.DefaultWatcherData data, System.String directory, System.Boolean dispatch) (at <9f8c4786222746238eb929db40bf8dd1>:0)
System.IO.DefaultWatcher.DoFiles (System.IO.DefaultWatcherData data, System.String directory, System.Boolean dispatch) (at <9f8c4786222746238eb929db40bf8dd1>:0)
System.IO.DefaultWatcher.DoFiles (System.IO.DefaultWatcherData data, System.String directory, System.Boolean dispatch) (at <9f8c4786222746238eb929db40bf8dd1>:0)
System.IO.DefaultWatcher.DoFiles (System.IO.DefaultWatcherData data, System.String directory, System.Boolean dispatch) (at <9f8c4786222746238eb929db40bf8dd1>:0)
System.IO.DefaultWatcher.DoFiles (System.IO.DefaultWatcherData data, System.String directory, System.Boolean dispatch) (at <9f8c4786222746238eb929db40bf8dd1>:0)
System.IO.DefaultWatcher.UpdateDataAndDispatch (System.IO.DefaultWatcherData data, System.Boolean dispatch) (at <9f8c4786222746238eb929db40bf8dd1>:0)
System.IO.DefaultWatcher.Monitor () (at <9f8c4786222746238eb929db40bf8dd1>:0)
System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) (at <599589bf4ce248909b8a14cbe4a2034e>:0)
System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) (at <599589bf4ce248909b8a14cbe4a2034e>:0)
System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) (at <599589bf4ce248909b8a14cbe4a2034e>:0)
System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) (at <599589bf4ce248909b8a14cbe4a2034e>:0)
System.Threading.ThreadHelper.ThreadStart () (at <599589bf4ce248909b8a14cbe4a2034e>:0)
UnityEngine.UnhandledExceptionHandler:m__0(Object, UnhandledExceptionEventArgs)

You might be hitting a path length limitation in Windows. Try moving your project to a directory closer to the root.

1 Like

Thank you so much! That must have been it!