-
Notifications
You must be signed in to change notification settings - Fork 852
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Unity][S3] No way to measure download progress #547
Comments
Thanks @AndrewRH for reporting this -- I am dealing with the same problem. Did you ever figure out a way to make this work? |
Hey! I'm in need of the same functionality. Both Unity WWW and UnityWebRequest classes support progress indication and there's already upload progress callback in AmazonS3Client for Unity. Does anyone with a better understanding of AWS S3 sdk has an idea how I could implement this myself? |
I'd be nice to have this, as well as cancellation support. |
i am also having the same problem. Is there any workaround for this? |
Also having the same problem, this seems like a pretty big oversight. Sometimes grabbing a relatively small file takes a long time and without a way of showing that it's still working, people just assume it's broken (including myself sometimes). |
The problem still does not seem to have an official solution. How did you guys manage to solve it ? Could using AWS for .Net instead of AWS for Unity be a solution ? (I don't even know if this is possible) |
+1. We're having to resort to compiling the .NET sdk as a DLL to use download progress in Unity, but this seems silly considering there's a Unity library. |
A lighter solution using only the Unity sdk is given by @DaleEmrose here : amazon-archives/aws-sdk-unity#68 (pointed by this repository's FEATURE_REQUESTS.md file). |
@olafolafsson awesome! Would love any tips. The current unity AWS SDK is distributed as a DLL and wouldn't want to go back to the old version just for this. |
Ideally when Unity 2018.1 ships with official support for .NET Standard 2.0 (yay Apparently this SDK targets .NET Standard 1.3: https://docs.aws.amazon.com/sdk-for-net/v3/developer-guide/welcome.html |
@olafolafsson nevermind, figured it out! The suggested solution worked great, thanks :) |
For future visitors of this page : in UnityMainThreadDispatcher.cs, for UnityRequests, you can use the variable Is that what you did @sayangel ? Glad the link helped you ! ;) Took me a while just to find it... ! |
What was the solution? I cannot modify UnityMainThreadDispatcher.cs because it is a dll in aws-sdk-unity_3.3.359.0 |
Same here, |
Hello dear friends, the same thing happened to me. I could not make the changes because they are now delivered in the form of .dll the AWS SDK. So, using the latest AWS SDK version of .NET (3.3.505.1), re-package it for unity by adding the changes to get the% progress of the download. https://github.com/alejandroesteban/AWS_CUSTOM It works in version 2019.1.0f2. |
Thx @alejandroesteban, I was about to use http download with Unity's WebRequest, but I guess it would require the buckets to be public, which sometime may not be the case I want... I will give your suggestion a try first... |
Hi! Thanks to @alejandroesteban I managed to get download progress working. But I can't figure out how to make upload progress work. I also have an issue since importing @alejandroesteban's package, where I sometimes get this error when downloading files:
It works with the official AWSS3 package. |
Would also love a fix for this! |
Any updates ? |
Is there an official feature request thread on aws forum for this, maybe to up vote or just +1. |
Hi guys! Are there any updates on download progress callback for AWS Unity SDK (AmazonS3Client.GetObjectAsync)? or maybe someone has valid link/package for solution by @alejandroesteban (in his github project several dlls are missing, replacing them from original sdk will not work)? |
We have noticed this issue has not recieved attention in a year. We will close this issue for now. If you think this is in error, please feel free to comment and reopen the issue. |
I think this would be a great feature for the unity sdk |
Since our support for Unity has moved to using the .NET Standard 2.0 version of the SDK in Unity you can use the existing WriteObjectProgressEvent to track progress. |
|
@normj Could you please give us a download link to the dlls where this is fixed? |
@hasnainv We recommend using the .NET Standard 2.0 assemblies of the SDK with Unity, available at https://sdk-for-net.amazonwebservices.com/latest/v3/aws-sdk-netstandard2.0.zip More info: https://docs.aws.amazon.com/sdk-for-net/v3/developer-guide/unity-special.html |
Has there been any solution to this? I am not sure if anyone here has recommended a solution yet but I am facing the same issue were other libraries support progress callbacks but AWS SDK does not include this? Or am I just missing something simple? How do I measure download progress in Unity using AWS SDK? I can't find anything, progress works fine on uploads. What am I missing??? |
Using GetObjectAsync() in the Unity package there is no callback to measure download progress as there is with PostObjectAsync(). There seems to be WriteObjectProgressEvent in the normal .Net S3 package but this is missing from the Unity package.
The text was updated successfully, but these errors were encountered: