"Level Manager" trying to update deprecated code
Hi guys, I am new to unity, and I am currently trying to learn code via some Udemey videos. I am running into some deprecated code on line 12. I know that I need to update line 12 to...
View ArticleWebGL build: ncaught exception: abort(-1)
Have error, when running WebGL build:> uncaught exception: abort(-1) at> jsStackTrace@blob:null/9ac3ef7a-83a3-4af3-be56-16a54a997202:1:24208>...
View ArticlePlayerPrefs.DeleteKey() doesnt work.
I have been in unity for about 2 years and im encountring this problem. Which the player prefs key just wont delete. if anyone can point me out what im missing it would be awesome. while...
View Article[Google Cardboard SDK] Error Importing Package CS0246
I just downloaded "gvr-unity-sdk-master.zip" from Google Cardboard official website. I extracted it on my computer, but when I try to import the package "GoogleVRForUnity.unitypackage" into Unity it...
View ArticleList Emptying Itself?
I'm currently making an inventory system and I've ran into a problem with a GameObject list which I've used to keep track of my items. I'm receiving the error message "ArgumentOutOfRangeException:...
View ArticleUCE0001 error
I have typed this script, and the editor keeps saying I need to add a ";", but I have. The strange this is. the error says it's in the middle of the line, after "material", not at the end were the...
View ArticleNameSpace player health
Hi I have that code: using UnityEngine; using System.Collections; using UnityEngine.UI; public class HUD : MonoBehaviour { public Sprite[] HeartSprites; public Image HeartUI; private Character...
View ArticleScript error, cannot fix whatsoever!
Hi there, I asked a question earlier today about browsers and working in a game, but I received an answer! (Thanks to the guy who helped a lot!~) But I have an issue with it. It gives me an error that...
View ArticleFailed to run script updater.
Kinda frustrating. Can anyone help with this?? Failed to run script updater. Please, report a bug to Unity with these details System.IndexOutOfRangeException: Array index is out of range. at...
View ArticleInsert Semicolon at end when i already have one?
i have a problem and that is that i have a semicolon at the end and unity is giving me an error saying: Assets/Scripts/scriptswitch.js(1,6): UCE0001: ';' expected. Insert a semicolon at the end. i am...
View Article(17,37): error CS0841: A local variable `spawnPointIndex' cannot be used...
I trying to spawn my enemy ai's but I ran into a problem . I gotten an error saying I did not declare spawpointindex . Here is my script : using UnityEngine; using System.Collections; public class...
View ArticleI can't raise/lower my terrain
So I'm able to access the edit buttons and the little blue preview marker is appearing just fine, but when I click with my mouse to change the terrain nothing happens. I've tried other methods to fix...
View ArticleHow do i fix Error CS0029?
Hello i am Getting this Error CS0029 with `spherePoints = new Vector3[(sphereAmount + 1)];`, I after i changed`private Vector3[] spherePoints` to `private Transform[] spherePoints`, does anyone know...
View ArticleObject Reference not set to an instance of an Object Help
I keep getting this error and I've had this error through the duration that I've been making my game but I've never really look notice of it since it didn't seem to effect my game. However I believe...
View ArticleThe referenced script on this Behaviour is missing! non-existant GameObject
I was testing out a gameobject I created that, among other things, would destroy any other gameobject that touched it that used the interface, "Resource." shortly after I allowed it to destroy a test...
View ArticleCan any one help I keep getting this error :
` `Assets/Standard Assets/2D/Scripts/Platformer2DUserControl.cs(3,27): error CS0234: The type or namespace name `CrossPlatformInput' does not exist in the namespace `UnityStandardAssets'. Are you...
View ArticleUnity3d Script does not work anymore
I was working on a simple tank game. When the script I was using before suddenly stop working. I keep receiving the NullReferenceException: Object reference not set to an instance of an object error. I...
View ArticleBCE0044: expecting ''', found '\r'.
Hi guys, i have everytimes this problem..! Im trying to do a MainMenu, and when i script the ''Start the Game'' button, this does'nt work. I see the same problem with other people, but the answer...
View ArticleScene 'Assets/First level.unity' (-1) couldn't be loaded because it has not...
Hi guys, to day i crated 2 scenes, the first is 'First level' where is my robot and his adventure, and the second is 'MainMenu². where you can Start the Game, and Quit the Game. All was okey, i could...
View ArticleIs there a way to stylize EditorGUI.ObjectField?
Is there a way to stylize EditorGUI.ObjectField? I have an object field that accepts my subtype of scriptable object like this: variable = EditorGUI.ObjectField(_rect, variable, typeof(MySOSubtype),...
View Article