2

I was working on starting some work with Photon engine, and ne dependancy was the unity package version of Cecil. There is an API reference to it, but I cannot find it in the package manager or anywhere online. Can someone help me figure this out, I have only really used unity for around 3 years and I am very new to this engine.

Edit: I am using Unity v2021.1.5, if that is relevant

Thanks!

1 Answers1

4

I think you are rather referring to com.unity.nuget.mono-cecil.

As this is a package link you (try to) can install it into your project even if it is not appearing in the Package Manager.

In the Package Manager Window simply click the Add package from git URL ... and enter

com.unity.nuget.mono-cecil

and then hit Add.

derHugo
  • 83,094
  • 9
  • 75
  • 115
  • 1
    I get errors when I do that; `[Package Manager Window] Cannot perform upm operation: Unable to add package [com.unity.nuget.mono-cecil ]: Package name 'com.unity.nuget.mono-cecil ' is invalid. [InvalidParameter].` – Therealmrstarfish Mar 15 '22 at 12:20
  • Hm works for me on `2021.2.8f1` .. and should be the same in other versions since `2018.4` afaik – derHugo Mar 15 '22 at 13:16
  • Do I need git to be connected to unity or something? I haven't been doing [good] version management, and thus haven't used git with unity. – Therealmrstarfish Mar 15 '22 at 13:43
  • I just tried in Unity `2021.1.5f1` and it works there for me as well. `[com.unity.nuget.mono-cecil ]` looks like there is a space at the end? Make sure there are no typos in the package url ;) – derHugo Mar 15 '22 at 14:02
  • Ah, silly me! I will give it a shot once my editor launches. Thanks, and I'll let you know if it works. – Therealmrstarfish Mar 15 '22 at 15:29