Closed guidodelphora closed 4 months ago
It looks like you haven't added the R3 Unity package. You can add it from the package manager https://github.com/Cysharp/R3.git?path=src/R3.Unity/Assets/R3.Unity Check the Unity section in the readme.
Hey ! Thanks for the quick answer but I'm using it through all the Game so it's not that :/ Also, if it would be that, the Observable and Subscribe would also throw an error, but it's just the .AddTo
Hey ! Thanks for the quick answer but I'm using it through all the Game so it's not that :/ Also, if it would be that, the Observable and Subscribe would also throw an error, but it's just the .AddTo
Yes, you can use the core API of R3 without installing the R3 Unity package. In addition to R3, there are platform-specific packages available as well. For Unity-specific features (such as the AddTo(gameobject) extension), you should also add the R3.Unity package. These are two different things. You can check the Unity section in the Readme for more details.
Ohhh oh okok. I see, my fault and thanks ! At first I didn't understand but now I get it.
I'm trying to use the .AddTo method as I read in the documentation but I'm getting an error.
Argument type '_Game.Features.Humans.Scripts.HumansController' is not assignable to parameter type 'System.Collections.Generic.ICollection<System.IDisposable>'
The code is the following