Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Error when installing GIT URL

Discussion in 'Multiplayer' started by BIT-64, Oct 9, 2023.

  1. BIT-64

    BIT-64

    Joined:
    Apr 29, 2017
    Posts:
    38
    Hello,

    I am following the tutorial from code Monkey.


    At 20:50, he says to take this GIT URL link
    upload_2023-10-8_21-43-27.png

    When I attempt to copy paste to add it in the package manager, I receive the following error.
    upload_2023-10-8_21-44-26.png

    I attempted to copy paste it with the "" before and after, without. I just keep receiving the error. In the tutorial he is using version LTS 2021.3.10, I am using LTS 2021.3.31

    I looked online but I can't find anything to fix it, any help would be greatly appreciated.

    I got my line from
    https://docs-multiplayer.unity3d.com/netcode/current/components/networktransform/
    "https://github.com/Unity-Technologi...kages/com.unity.multiplayer.samples.coop#main"

    Thank you
     
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    5,129
    You are entering this in the dialog that opens when you choose „Add from Git Url“? It won‘t work with any other „Add from..“ option.

    You may want to try omitting the #main part at the end, I think that‘s not necessary as it will probably default to the main branch.

    You can also download the entire git repository as a zip file, then choose „Add from disk“ and use the location of the sample package on your local disk.
     
  3. BIT-64

    BIT-64

    Joined:
    Apr 29, 2017
    Posts:
    38
    Hi,

    I was not able to get it going in any way shape or form, it seems to be a bug with the package, but what I did as a workaround I created a new script and copy pasted the code from github into it.

    It seems to be working.

    Thank you for your help.