2 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
1
This seems to be not AWS SDK specific, but it's rather a Unity specific issue.
By calling Wait
on a Task
object in your Start
method, you essentially block the main thread in Unity. Hence, the Unity engine cannot continue to work properly, which might cause crashes, freezes, and other unexpected behavior. You should never block the main thread in Unity.
Instead of Task.Wait
, you could try using a Unity Coroutine to wait for your task to complete. You could also familiarize yourself with the threading and asynchronous programming models in Unity, because they slightly differ from those in .NET.
répondu il y a 2 ans
0
Hello yes, I changed that because it was stopping the main thread. Now I called it from a Coroutine and doesn't stop the game. Thanks.
répondu il y a 2 ans
Contenus pertinents
- demandé il y a un an
- demandé il y a 2 mois
- demandé il y a 6 mois
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a 2 ans
Hi,.
Are you able to perform operations other than S3Get?
Is the authority okay?
And share the exception information when you crash.
No, I am just doing this get. The game is not crashing anymore, I now have a different problem but I created a new question for it. Thanks!