Expressions in statements must only be executed for their side-effects?
trying to make health script, but it gives me this error "Expressions in statements must only be executed for their side-effects" var player : GameObject; var health = 1000; function Start() { }...
View Articletrying to parse FileNotFoundException causes compile error
Hello, So I am trying to catch a FileNotFoundException and read the file from the exception like this: catch (FileNotFoundException e) { string file = e.FileName; } Visual Studio throws no errors, but...
View Articleexpected. Insert a semicolon at the end. When the end that it says, is a }...
We are working on putting arrays on our hardcoded android quiz game. We searched for example codes such as the code in this one : http://coursesweb.net/javascript/trivia-game-script_s2 (or in the...
View ArticleNarf question on scope - I think :/
ok so I think i'm a bit narf on understanding this. ive got a IEnumerator with a variable in it. I also have a function that i'm trying to run from the IEnumerator which has the variable in it. my...
View Articlehow to host unity web build online ?? error to download data
Hello Fellas, i want to access the html file of the web build using the link and from a wordpress page. i am getting following errors. 1)i am getting an internal server error when i access the link in...
View ArticleIndex out of range exception
I realise this is probably a pretty common question, but I've looked at other answers and I really have no idea why these errors are coming up. I have dragged four sounds into inspector to set up the...
View ArticleError whenever I run my program
**This error comes up when I try to run my program. This has happened when following tutorials. I have triple checked my code but it is the same as the tutorials. Why do i get an error please help.**...
View ArticleCompiler Warnings Are Now Errors
All of the sudden all the warning has turned into error And console is showing "Internal compile error see console for more information ,output was ........." please help
View ArticleObject Reference Error On Camera Script
I am receiving the error: NullReferenceException: Object reference not set to an instance of an object Boo.Lang.Runtime.RuntimeServices.GetDispatcher (System.Object target, System.String cacheKeyName,...
View Article"Object reference not set to an instance of an object" problem
Hello. I am fixing my code. I want it to be more optimised and not to be attached to gameObjects. I am getting an error : "Object reference not set to an instance of an object". I know what this...
View ArticleError building Player: CommandInvokationFailure
This is the error that i have, How can I fix it? Error building Player: CommandInvokationFailure: Failed to recompile android resource files. See the Console for details. C:\Program...
View Articlei get this error and i don't know what to do
hello ..i'm a beginner and i don't know too much about unity3d ..anyway everytime i try to add script to my Gameobject this message appears to me although i put textures and the script in the same file...
View ArticleReceiving the error code: CS0029: Cannot implicitly convert type...
using UnityEngine; using System.Collections; public class RollBlock : MonoBehaviour { private Transform parent; private Vector3[] dirs = new Vector3[Vector3.up, Vector3.down, Vector3.left,...
View ArticleJS Automaticly Unchecked Upon Instantiate
So I have this endless jumper game where a platform (that you jump on) gets destroyed and Instantiateed to a new place once it is out of the view of the camera. However the Instantiated objects have...
View ArticleUnity freezes up completely without explanation
I have been having this strange issue. I had a slightly similar issue that was addressed in another question, and everything worked well for a couple days, but now this issue does not seem to be code...
View ArticleHashtable.Enumerator: snapshot out of sync
Hi all, I've been getting the following exception: **Hashtable.Enumerator: snapshot out of sync** which I believe is being caused by attempting to read and write to a hashtable at the same time. Can...
View ArticleAdding a reference to a project not working
http://prntscr.com/65pjv1 - VStudio. In the right you can see the Annotations reference added, down you can see that it has succeeded the built. Also you can see that UsedImplicitly(comming from...
View ArticleCan't download from asset store: could not decrypt package file
Here's the stack trace: CryptographicException: Bad PKCS7 padding. Invalid length 0. Mono.Security.Cryptography.SymmetricTransform.ThrowBadPaddingException (PaddingMode padding, Int32 length, Int32...
View ArticleUCE001 ';' expected. Insert a semi colon at the end
I keep getting this error so I can't test my code (it's referring to the variable declaring part I think). But there is a semi colon at the end? var backgroundList[]; var parallaxScales[]; var...
View ArticleMonodevelop, need help!!
Ok so I'm new to Unity and Monodevelop and Unity seems to be working great and I just downloaded both. But on Monodevelop I am having some problems that I can't fix. So first off the "Shift" key is...
View Article