Build Error
What this error means? What should I do to resolve this. Error building Player: CommandInvokationFailure: Unable to kill the adb server. Please make sure the Android SDK is installed and is properly...
View ArticleEval() System.NotSupportedException
I'm attempting to use eval() in a JavaScript script attached to an empty game object in my game, in the hope that I'll be able to play my game and make changes as I go along to speed up the refining...
View ArticleError in a really short script
when using this it says: Assets/Scripts/pause atm.js(1,5): UCE0001: ';' expected. Insert a semicolon at the end. also this works on mobile too right? bool isPaused; void Start () { isPaused = false; }...
View ArticleAttention U3DXT - Help Needed Urgently
I am using the "WebViewTest" example file and "WebViewGameObject" script from "core" folder in the provided examples.I have only changed the web links,now the issue is that the app crashes if the...
View Articleerror CS1525: Unexpected symbol `)'
Hey guys, came across this error (as in the title), already spent hours trying to find out what the problem is but with no luck, so I decided to come here for a little help. This is my code (part of...
View Articlebasic error and formatting help
So i made this code, but when i run the game i get these errors UnassignedReferenceException: The variable LastSaw of 'LookAtUpdated' has not been assigned. You probably need to assign the LastSaw...
View ArticleBuild errors
I am working from the Unity book and at the end of chapter 5 the books says to click "build and run" and after I did I got a bunch of errors that I can't seem to figure out Couldn't set project path...
View ArticleUpdating then calling gameObject from main thread. error
So I have a var name = gameObject; in the main thread, which is set ``by a raycast hit, so name = hit.transform.gameObject; but it seems that it isn't updating the var, and the ai just resets to o,o,o...
View ArticleError CS0161 : not all code paths return a value?
I came up with this error and I searched alot about this error and tryied diferent code options but I wasn't able to find my way arround it so here I am asking for your help. Heres the code: public...
View ArticleSystem.Net.Sockets are not supported
Today I wanted to build my game to iOS for Xcode, and got this error: Error building Player: SystemException: System.Net.Sockets are supported only on Unity iOS Pro. Referenced from assembly...
View ArticleWhat I did wrong? Unexpected symbol `,', expecting `)'
using UnityEngine; using System.Collections; public class Shoter : MonoBehaviour { GameObject bullet; void Start () { } void Update () { if (Input.GetButtonDown("Fier1")) { GameObject newBullet =...
View ArticleGetComponent(Script) Error(Won't detect script)
Here is a javascript I have for a camera handler: #pragma strict var cockpitCamera : GameObject; var orbitCamera : GameObject; var orbitCameraObject : GameObject; function Start () {...
View ArticleRespawn Error
Hello people! I am having a slight problem with my game, at the moment I have enemies that spawn and move towards the player. Once the player dies, I have coded them to stop moving towards the player...
View ArticleFlight Sim Control
Hi everyone, I'm trying to script basic flight controls for a flight sim I would like to make. I can't seem to get the object to move forward. I want the player to be able to control the speed using...
View ArticleUnexpected Symbol 'GUI'
I got an open source project and opened it up. It was working awesome until I opened the scripts and an error magically appeared without me touching anything. The code is here, I can't seem to figure...
View Articleraycast error
The script is attached to a cube that transform.translate. It is a simpler version of my script, Error(line 7): No appropriate version of 'UnityEngine.Physics.Raycast' for the argument list...
View ArticleWhy am I getting a cannot convert error?
Hi, I'm trying to implement a GUIskin into my game, but i keep getting a cannot convert error. The exact error is "Assets/Scripts/GUISkin.js(6,20): BCE0022: Cannot convert 'GUISkin' to...
View ArticleNullReferenceException: Object reference not set to an instance of an object
Hey there, so the title says the problem I have, I tried everything I could possible imagine and see arround other awnsers and topics, with no luck to fix my problem. So here's my code (not all of it...
View ArticleWhy am I getting this error ? - The type `RandomMovement' already contains a...
The following is the code I'm using. I have no other script that has ChangeRotation as a variable that clashes with this one. using UnityEngine; using System.Collections; public class RandomMovement :...
View Article`AllItems.AllWeapons()': not all code paths return a value
Everytime I try to define a class that takes the type of a certain type of item that I defined in another script I get this error. Can someone tell me what the problem is? I get it for every single...
View Article