DirectoryNotFoundException in Unity Mac OS - unity3d

I just installed Unity v2021.3.17f1.
After creating my first project i get this error:
DirectoryNotFoundException: Could not find a part of the path '/Users/kamranimanitabar/Desktop/Softwares/2021.3.17f1/Unity.app/Contents/UnityReferenceAssemblies/unity-4.8-api/Facades'.
Any help will really appretiated.

Related

UWP UnauthorizedAccessException After Unity Upgrade to 2021.3.15f from 2020.3.38f

Im Having a issue after i upgraded to 2021.3.15f from 2020.3.38f.
The application crash on starts and im getting this in the log :
Uploading Crash Report UnauthorizedAccessException: Access to the path 'c:\data' is denied.
This is happened when I use:
Directory.CreateDirectory(sceneFilesPath);
To create a folder.
My code was working in the previous version and i had no issue.
The only thing i did was upgrade to the new unity version.
Also check the capabilities i have them all.
And the path is correct when i debug it.
Does anyone have any idea?
Also i have seen that unity is now using net standard 2.1 instead of net standard 2.0 Could this change affect the build !
Cheers
Using DirectoryInfo do the job but i still have no idea why this was working before ?

The type or namespace name 'UniRx' could not be found on Unity

I pretty much looked everywhere... but couldn't find anything that could debug my problem.
The only thing I do in a script is "using UniRx" to have the following error : The type or namespace name 'UniRx' could not be found.
What i tried:
On Unity, downloading from Package Manager with "Add Package with git URL"
On Unity, downloading from Package Manager with the normal way: Download -> import (into folder Plugins)
On each part, i also tried:
"Reimport All"
Closing and opening back Unity Hub then Unity
I found nothing much on google except for having this problem only on Visual Studio (which is not my actually problem since Unity itself doesn't accept UniRx)
But those who have that problem, i read that you need to "Assets" -> "Open C# Project"
Can anyone help me with my problem on Unity ? Searched for hours but still stuck :(
Unity Version: 2021.3.3f1
Well seems like my problem was like fafase said... I totally forgot about assemblies since i don't use Unity much and since it's been a long time i didn't continue my project.

More than one file was found with OS independent path 'META-INF/androidx.localbroadcastmanager_localbroadcastmanager.version' Unity 2019.3

Im move my Unity project from 2019.2 to 2019.3. After move Android build show error "More than one file was found with OS independent path 'META-INF/androidx.localbroadcastmanager_localbroadcastmanager.version'" Im try set in mainTemplate " exclude 'META-INF/androidx.localbroadcastmanager_localbroadcastmanager.version'", but it not help. How fix this.

mscorlib.dll is an invalid CIL image

I downloaded the new beta version of Unity (5.5.0b2) and when I open any project I always get an exception in the console that says:
The file C:\Program Files\Unity 5.5.0b2\Editor\Data\MonoBleedingEdge\lib/mscorlib.dll is an invalid CIL image
I really don't have any clue to what this means and what to do about it, I can't even enter play mode, any advice on how to solve this?
I'm currently on Windows 7 64 bit, the Unity version installed is 64 bit, too, I tried installing it on the main hard drive and the secondary but the error is still there.
I installed version 5.4.0f3 and replaced the folder MonoBleedingEdge of the version 5.5.0b2 with the one found in the previous version.
The folder is located at Unity 5.5.0b2\Editor\Data.

DllNotFoundException: libgfxunity3d

I'm new to unity and I am trying to use a plugin named Scaleform and I'm following the steps indicated in readme file, I've created a new project, imported the plugin, selected Main Camera object and attached the specified script to it, but when I want to play, I get this error:
DllNotFoundException: libgfxunity3d
SFCamera.OnDestroy () (at Assets/Plugins/SF/SFCamera.cs:163)
I googled and all I got was this: http://forums.autodesk.com/t5/Scaleform-Unity-Development/dll-not-found-exception/td-p/4242779
I've downloaded and installed DirectX too, but still no change! :(
Does anyone know what should I do?
Thanks!
We also ran into this problem on Windows. Ultimately, reinstalling the DirectX runtime did fix it for us (the person who had the problem was missing the d3dx9_43.dll that the Scaleform dll depends on).
You might also check and make sure you have put the right key into the appropriate location in your inherited camera script. (In the example, I believe it is called MyCamera.cs.)
Finally, you should check that your build target matches the version of the Scaleform trial you have installed. If your Unity build setting is Android, for example, you need to have the Android runtime for Windows, not the Windows runtime proper.
I downloaded the Depends application from http://www.dependencywalker.com/ and loaded libgfxunity3d.dll. I was missing msvcr100.dll, IEShims.dll and wer.dll. I threw those dlls into the System32 directory and my program ran great. Hope this helps!