C
C#15mo ago
Erallie

❔ Installing System.Threading.Tasks.Dataflow in Unity

Hi. I'm developing a game in Unity and learning C# for the first time. I'm wondering how I would be able to import the Dataflow Library into Unity? Unity throws an error when I try to add the tar.gz file in the package manager. If anyone could help, that would be great! Thank you!
6 Replies
Angius
Angius15mo ago
It's a nuget package, not sure if it will work with Unity just like that. Moreover, it seems to be based on Tasks, so asynchronouse programming. Last I checked, Unity used their weird coroutines and yielding from IEnumerables instead of good and proper async/await So not sure if you'll be able to use this package, even if you manage to install it
Erallie
Erallie15mo ago
I'm only trying to do this so that I can wait for data to be delivered from one class to another Do you know if there's another way to do this? I was looking online for ways to do this Asynchronously I can use await in C# in Unity I've already done that
Angius
Angius15mo ago
In case of Unity, you probably should look into coroutines Try asking on the $unity server as well, you'll get more engine-specific help there
Erallie
Erallie15mo ago
thanks!
Accord
Accord15mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.