How to create a simple custom code to fall back on previous saves upon failure?
1. How can I detect if the saving process was interrupted (mobile ran out of battery during saving etc.)? 2. How can I then fall back on the previous save file that wasn't interrupted or something?...
View ArticleException: Gradle install not valid (please help me. I can't get aab)
Exception: Gradle install not valid UnityEditor.Android.GradleWrapper.GetBaseCommand (System.Int32 jvmHeapSize) (at :0) UnityEditor.Android.PostProcessAndroidPlayer.ExecuteWarmup (System.String...
View Articleint array overflow exception
Hey guys, simple issue here although I don't understand where its coming from. I make an int array for a procedural mesh but when creating the array it throws me an overflow exception. the code : int...
View ArticleWhy is the try catch method in Unity not preventing my app from...
I have two methods `SaveToiCloud` and `GetFromiCloud` that are doing what they say. I removed on purpose any null checks to see if the try and catch could do their job alone. However in Unity it is not...
View ArticleWhy I'm getting only sometimes : MissingReferenceException: The object of...
I'm using unity 2019.2.5f1 personal The problem happen sometimes when I click the PLAY button in the editor to STOP the game ! Or when switching to main menu by hit the escape key. Sometimes it happens...
View ArticleARFoundation integrated in ios native app as library crashes with...
I built an **AR iOS** project using **ARFoundation 1.5.0**, **ARKit XR plugin 2.2.0**, with **Unity 2018.4.8f1** version and **XCode 11**. As **standalone** iOS app it works. Then I tried to...
View ArticleHow to fail build in Unity 2017.4?
I'm using a class that implements **IPreprocessBuildWithReport** interface. **BuildFailedException** is thrown when certain conditions occur (conditions defined by me, actually). In Unity 2018.4 this...
View ArticleNullReferenceException: Object reference not set to an instance of an object...
So I cannot for the life of me figure out what I'm doing wrong here, I have looked everywhere and haven't found anything to help me. Essentially I have two sliders, one for Health the other for Mana....
View ArticleMaking a Script that places Objects at random possition but not at the same...
I want to make a script for a game that places a set of Objects at random positions in a grid. The spawningprocess and grid are already set up but my problem is that sometimes objects spawn at the same...
View Article"ArgumentException: method arguments are incompatible" for Analytics Event...
Attempt to add my scene object to Analytics Event Tracker as a parameter to drive dynamic values results in no available fields to select in Editor and immediate exception. What problem could...
View ArticleRetrieving Data from websocket for Unity WebGL game leads to an exception :...
I've been trying to retrieve data from websocket to my unity webgl game. It's working fine and validating successfully to authorize the user. But As soon as calling the function to retrieve the data...
View ArticleUnauthorizedAccessException | I Need Help Here.
**Hi, I'm Oleg. Today I want to build a progect in Unity 2017.4.36f1 (64-bit) and then me in the Colsole appeared Error about UnauthorizedAccessException: Access to the path "D:\" is denied. Please...
View ArticleSerializationException: End of Stream encountered before parsing was completed
Hello everybody, hours of research and debugging couldn't help me, which is why you are my last hope. The error "SerializationException: End of Stream encountered before parsing was completed" occurs...
View ArticleThe Given Key cannot be found in the Dictionary and I have no idea why....
I am getting the error of: KeyNotFoundException: The given key was not present in the dictionary. System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) (at...
View ArticleFunction gets null but send is not null
Hi! I just trying to send object in a fucntion but it's get null, while value "focus" gets that meaning. What's wrong? //some code if (Input.GetMouseButtonDown(0)) { Ray ray =...
View Articlehow to Find Objects Of Type but with But with an exception
Hi, I am working on a script that is supposed to find the closest object to a group of objects in the game ... Of course with determining the type of these objects using another script ... In any case...
View ArticleProblem with Lists and Remove
Hey guys, I have a public list made of objects. Does objects have a name. Now i want to remove all objects from the list without an name. However this throws the exeption "invalidoperationexception...
View ArticleAssetBundle.LoadFromFile throws exception instead of just returning null, why?
I want to try and load a resource from an external asset bundle, but, if that bundle is not available, I want to load from the internal Resource directory. According to the docs I should just be able...
View Articlejava.lang.ClassNotFoundException: android.support.v4.content.FileProvider
Hello everyone, I am trying to open a single pdf file using the FileProvider class. I have seen many similar issues, but have not been able to resolve the issue. If I try to run an application without...
View ArticleXmlException: Root element is missing when deserializing
I am trying to deserialize an xml file. My code is based on answers I've read, I googled for a solution end everyone keeps stating to check the xml to see if it has a root but I have no problem with...
View Article