C # script error CS1729.
Error CS1729: The type `UnityEngine.Vector2 'does not contain a constructor That takes` 1' arguments script: using UnityEngine; using System.Collections; public class EnemyInseguePlayer : MonoBehaviour...
View ArticleDo not see the link to an object (It is impossible to make active)
There is a button on which hang Listener g.gameObject.GetComponent().onClick.AddListener(() => { _navigation.Buy(amount_on_island, item_weight, title, purchase_price);...
View Articlehow do I fix this error
I am making a multiplayer fps and I get this error what do I do I will provide the script below Here is the error Assets/Scripts/Misc/MainMenu.cs(23,28): error CS0501: 'MainMenu.DeleteAll()' must have...
View ArticleDecompression Error
Hey guys, when I try to import packages (both from the asset store and those I have downloaded off the internet) I get this error,"Failed to import package with error: Couldn't decompress package"....
View ArticleObject reference not set to an instance of an object.
Upon starting my game, I receive this error in the console: NullReferenceException: Object reference not set to an instance of an object Terrain_Generator.Start () (at Assets/Terrain_Generator.cs:28)...
View ArticleWhat does this weird Error means?
Well these errors. - ** Failed to create device file: 2 The system cannot find the file specified.** - ** Failed to get preparsed data: The request is not supported.** - ** Failed to get preparsed...
View Articleerror CS0266: Cannot implicitly convert type `UnityEngine.Object' to `Tile
does anyone know how to fix this?? void generateMap(){ map = new List> (); for (int i=0; i< mapSize; i++) { List row = new List(); for (int j = 0; j < mapSize; j++) { Tile tile =...
View ArticleDivision By Zero Error? C# Code Help
I'm generally new to C#, so bear with me please. using UnityEngine; using System.Collections; public class PlayerHealth : MonoBehaviour { public int maxHealth=100; public int curHealth=100; public...
View ArticleCharacter Movement Problem
**Currently my Character is controlled using left and right arrows to move left and right. I want to be able to tilt left and right to move left and right. I have tried multiple things and know u need...
View ArticleReferencing NON-monobehavior scripts - getting an error :/
ok so heres the issue, my questing is not in regards to the details but to the generality of it all. 2 scripts: 1.)the first one is a NON monobehavior script, instead its set as [System.Serializable]....
View ArticleRaycast Error Bug Help
Don't know what is wrong, I want to play an animation when the raycast is in trigger. using UnityEngine; using System.Collections; public class FirstDoorOpening : MonoBehaviour { void Update () {...
View ArticleX-Positionen angleichen / Align the X positions
Hallo Community! ich habe mir aus Spaß ein Pong-Spiel erstellt. Nun möchte ich das der rechte Schläger immer die selbe X-Position wie der Ball hat. Wenn jemand vielleicht weiß, wie man eine bessere KI...
View ArticleI am using Unity assets when I get the following error
Unhandled Exception: System.UnauthorizedAccessException: Access to the path "C:\Users\ccuk\Documents\Civil war 1\Temp\Assembly-CSharp-Editor.dll.mdb" is denied. at System.IO.FileStream..ctor...
View ArticleEOF error in my javascript code
Hello everyone, Before I start withe my problem: I'm very new to the Unity scene and don't have a ton of Javascript experience in general. I have been writing some code for a triple jump 2D sprite in...
View ArticleError CS0103, The name GetComponet does not exist in the current context.
So, I'm making a script for my animation controller to transition from idle to shooting but it's giving me that error and I am not sure why. using UnityEngine; using System.Collections; public class...
View Article>= cannot be applied to operands of type 'string' and 'int'?
I am trying to make a ad pop up when the player dies/loses 3 times. I have a script made where if the collider touches the player they lose, but it is giving me these errors:...
View ArticleMaking a pick up item that is timed, that moves,scales and rotates
Hi, I am very much new to scripting in Java. I really dont know much but I am trying..I have to make a timed pick up item that can be editable in the inspector so it can move, scale and rotate....
View ArticleFailed build game into Window Phone 8 Platform
Hi, I wish to build my game into window Phone 8 Platform . However, it show the error as below: Exception: Failed to run serialization weaver with command line...
View Articleerror CS1501 (need help)
Assets/Palace of Orinthalian/Standard Assets/Scripts/Utility Scripts/MeshCombineUtility.cs(177,30): error CS1501: No overload for method `GetTriangles' takes `2' arguments using UnityEngine; using...
View Article2D GameObject Array to 2D List
I have a 2D GameObject array, and I want to convert it into a 2D GameObject List. Using .ToList() gives a error. Is there a way to use something like .ToList() to convert this array, or will I have to...
View Article