Open oscar-jfs opened 2 years ago
This looks like something went wrong while the package manager was downloading the package. Could you try to clear the Library/PackageCache folder in your project and try again?
Hey Luke, thanks for getting back so quick. I just tried this and it has not fixed the issue. I still get errors, although only 2 errors this time:
[Package Manager Window] Cannot perform upm operation: Unable to add package [https://github.com/Unity-Technologies/multiplayer-community-contributions.git?path=/Transports/com.community.netcode.transport.photon-realtime]:
Cannot checkout repository [https://github.com/Unity-Technologies/multiplayer-community-contributions.git] on target path [Transports/com.community.netcode.transport.photon-realtime]:
Error when executing git command. warning: unable to unlink 'Transports': Directory not empty
fatal: cannot create directory at 'Transports': Directory not empty
[NotFound].
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()
[Package Manager Window] Error adding package: https://github.com/Unity-Technologies/multiplayer-community-contributions.git?path=/Transports/com.community.netcode.transport.photon-realtime.
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()
I was able to add the package from file by downloading it as a zip from github, but this is not ideal as I'm sure there will be updates need in future
I'm not sure why this happens to you but this looks like it's a Unity bug and not related to the specific package here. It is trying to download the package via git but it fails the cloning process for some reason.
I've tried with both Unity 2021.2.17f1 and 2020.3.31f1 on different projects and machines, but the problem persists. Not sure if it is unity or what but it means that the instructions on the readme do not work: https://github.com/Unity-Technologies/multiplayer-community-contributions/blob/main/Transports/README.md Are you able to repro?
How can I fix this to import the package correctly and use Photon transport with Netcode for Gameobjects?
Full errors here: