- Home /
[SOLVED] How can I add UniRx in my Unity project?
I am trying to use UniRx in my project. My system: - Linux Xubuntu 18.04 - Unity3D version 2019.4.10f1 - Visual Studio Code v.1.50.1
Everything is ok, but when I try to use UniRx in my code I have (in Unity GUI):
error CS0246: The type or namespace name 'IObservable<>' could not be found (are you missing a using directive or an assembly reference?)
How can I fix this?
EDIT: Sorry, how observed by @Hellium I did some error with my using statements. Now I have using system and using UniRx in the right places.
But I still have trouble, this time inside UniRx. This is one of a list of errors in Visual Studio Code:
Reference to type 'IObservable<>' claims it is defined in this assembly, but it is not defined in source or any added modules [Assembly-CSharp]
Actually IObservable is part of the System namespace. $$anonymous$$ake sure you have included it in your using too.
@Hellium Yes, of course, I have using UniRx and using System
I have UniRx in my project as a Git package. Inside this package, I have an Assembly Definition File I reference in my project Asmdef.
How have you installed UniRx?
Do you have an Asmdef in your project for your scripts?
@Hellium, thank you for the suggests. I "reset" the project and leave Unity put all the dependencies in place. Simply delete all the packages and make Unity works. Now it seems to be ok!
Thanks
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Dissolve shader script little proplemo, help me 0 Answers
Global Fog Messy Transition Between Objects and Skybox 1 Answer
nut and bolt object construction system? 0 Answers