Faulty NullReferenceException?
I'm working on a music-based project and am trying to do the following initialization: int currentFrame = rhythmTool.CurrentFrame; And whenever I run my project, Unity throws an exception pointing...
View ArticleAnother Mono to .Net Serialization Issue - I think.
Unity version: 5.1.2f1 Win 7 standalone desktop deployment We are trying to integrate a lesson data tracking system into our driving simulator application that tracks driver logins, driving violations,...
View ArticleProblem activate/ deactivate GameObject and array
Hi guys, I have weird problem. I'm making a shooter game and pooling some missiles. This is the process: - Get the pooled missile; - this clone searches for enemies on screen; - Sets a random target...
View ArticleUNetWeaver error and Failure generating network code.
Hello, im having a pretty big problem with recently found error. i was working at my project and it freezed for a second like always when its getting new saved code from editor. and this time it got me...
View ArticleNullReferenceException
Bom e o seguinte eu fui colocar o sitema de particulas na bala da minha arma mas dai deu erro de instantiate no script do player me ajudem por favor using UnityEngine; using System.Collections; public...
View ArticleFindWithTag returns NullReferenceException
Hello, I have readed a lot of forums about this, and lots of answers, but I can not still solve this problem. When I have 1 door in my scene, everything is OK, but when I add another one, I am getting...
View ArticleBuilding For IOS on a Mac Error: UnauthorizedAccessException: Access to path...
Our game is complete and tested, and we're now attempting to build/compile and package it to be put up on the AppStore. Last time we did all that we got errors while uploading to the AppStore because...
View ArticleWhy does SQLite throw InvalidOperationException in Unity 5.3?
Hello, I am having a little issue trying to use SQLite in Unity 5.3. I have been following the SQLite setup provided here...
View ArticleAppCallbacks constructor throws FileNotFound exception and then crashes...
Hi I'm trying to build Windows Store UWP's app with the last version of unity. Unity make the build, and running it in desktop works. In the emulators works too. But when i build for ARM's cpu on the...
View ArticleInspector removing MeshRenderer generates error
If you create a custom inspector with a button that tries to removes/destroy the MeshRenderer component an exception is generated in editor/engine code that I cannot prevent. MeshRenderer mr =...
View Articlecrash to error "The exception unknown exception" after 1-2 hour
Our build is currently running fine but the app crashes every 30 minutes - hour with the following error: ![alt text][1] [1]: /storage/temp/71635-error.png Anyone know what this error means/ know if...
View ArticleMake a relation between color and distance between objects' x coordinates
I'm trying to make the object to change color, it becomes whiter the closer it gets to the object "cubetarget", and i want to substract the x coordinates of the two objects and divide by 3, because the...
View ArticleGetting NullReferenceException when changing velocity for a Rigidbody2D
I'm trying to program a simple Goomba-type enemy in my 2D game that simply walks forward until it hits a wall and then turn around. I wrote it with a RigidBody2D and changed it's velocity, see code...
View ArticleBeginners question with Unity and App42 - Struggling with handling call back...
Hi, The code below is a simple example. I'm tried several ways to handle the exception and none seem to be working. In the example below, the callBack variable returns no data. Sorry for the beginner's...
View ArticleIAP generates exception when calling m_StoreController.InitiatePurchase(product)
Hello, I got an **exception** when calling **m_StoreController.InitiatePurchase**(product). Following the Unity IAP demo, here is a fragment of my implementation of IAP: **public** **void**...
View ArticleObject reference not set to an instance of an object when it actually is?
So I'm getting the error. NullReferenceException: Object reference not set to an instance of an object Which I know means it's not assigned correctly. The problem is, it looks like it's all set up...
View ArticleFacing Null Reference Exception
there is no error a couple of days before and I build the apk successfully. but now this time it shows the null reference exception. NullReferenceException: Object reference not set to an instance of...
View ArticleMissingMethodException on tvOS after update to Unity 5.4.0f3
Hi, my project had no problem on tvOS in Unity 5.3.6f1. but when I upgrade the project to Unity5.4.0f3 this MissingMethodException occured. UnityEngine.Apple.TV.Remote.reportAbsoluteDpadValues = false;...
View ArticleIndexOutOfRangeException: Array index is out of range / EnemiesSpawner.cs:18)
I am getting this error IndexOutOfRangeException: Array index is out of range. EnemiesSpawner.Spawn () (at Assets/EnemiesSpawner.cs:18) It keeps popping up . When do I spawn my enemies they spawn out...
View ArticleEnemy ai's won't spawn in scene / IndexOutOfRangeException: Array index is...
Sometimes my enemy ai's will spawn sometimes they won't spawn in the scene. I have two spawn points in two different locations in my scene and I have two different enemy ai's . I just want to spawn...
View Article