Which platform and Unity version are you using?
-
-
En réponse à @petersonjm1 @cyannick et
And are you comfortable debugging C++?
1 réponse 0 Retweet 0 j'aime -
En réponse à @jon_cham @petersonjm1 et
Unity 2018.1.5 and/or 2018.2b9 / UWP Windows MR / .Net 4.x. I've an issue with 2018.1.5 and NetworkManager which is stripped from the build. But I do my test with 2018.2 right now. I'm not very experienced with C++ debugging but I can learn and try :)
1 réponse 0 Retweet 0 j'aime -
En réponse à @cyannick @petersonjm1 et
With 2018.2 you can attach managed debugger to IL2CPP player (just like mono). So you can attach VS with VSTU.
1 réponse 0 Retweet 0 j'aime -
En réponse à @jon_cham @petersonjm1 et
OK, but the exception doesn't stops the game, it's just spamming the console.
1 réponse 0 Retweet 0 j'aime -
En réponse à @cyannick @petersonjm1 et
You might be able to enable break on exception. Or at least put a breakpoint where the exception is being thrown. Assuming call stack is in the spammed message?
2 réponses 0 Retweet 0 j'aime -
En réponse à @jon_cham @petersonjm1 et
The call stack is empty because the execution doesn't stop. Do you have a documentation about how to debug with IL2CPP?pic.twitter.com/JoTepHVDaY
1 réponse 0 Retweet 0 j'aime -
En réponse à @cyannick @petersonjm1 et
I would put a breakpoint in the Exception::Raise function in libil2cpp/vm/Exception.cpp. This should be location where all exceptions are raised. You can likely see/guess what's going on.
1 réponse 0 Retweet 1 j'aime -
En réponse à @jon_cham @petersonjm1 et
OK I got it... It's a call to `Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)` that causes the exception. I'm going to try to use Application.dataPath instead.. But I'll have to find another solution because I've to read files in the My Documents folder.
1 réponse 0 Retweet 0 j'aime -
Did that use to work on .net scripting backend?
2 réponses 0 Retweet 0 j'aime
Yes, even if the game targets UWP, we've a Windows version to quickly test some features. It was a mistake to use Environment.GetFolderPath :/
Le chargement semble prendre du temps.
Twitter est peut-être en surcapacité ou rencontre momentanément un incident. Réessayez ou rendez-vous sur la page Twitter Status pour plus d'informations.