Argument out of range - Generic list (JS)
I'm using a class to organize many arrays into an object. Then using that object to tell my game what to do at certain stages. This error is thrown ArgumentOutOfRangeException: Argument is out of range...
View ArticleError in editor about FindObjectsOfType
**FindObjectsOfType can only be called from the main thread. Constructors and field initializers will be executed from the loading thread when loading a scene. Don't use this function in the...
View ArticleUnity 4.3 with Xcode 5.0.2 build errors
Hey everyone, Until I upgraded to Unity 4.3, I have had no problems running my application out of Xcode. However, after I updated this morning, I am now getting a build error that I cannot resolve,...
View Article4.3 - Errors jump to the wrong line numbers
After installing 4.3 and upgrading my project from 4.2, it seems like all the compiler errors jump to the wrong line numbers when double-clicking it. The number written in the error is correct, but it...
View ArticleNeed help! Error in script.
Assets/Scripts/BackgroundParallax.cs(19,30): error CS0117: `Camera' does not contain a definition for `main' using UnityEngine; using System.Collections; public class BackgroundParallax : MonoBehaviour...
View ArticleStrange "Array out of Index" error
Hey, I have an error that says: > IndexOutOfRangeException: Array index is out of range.> terrain20..ctor () That's it. No more information. I have no idea what's going on. This error occurs even...
View ArticleError "The best overload for the method" "is not compatible with the argument...
I used some code from a tutorial but when I use it I get "Assets/my assets/Scripts/Gizmo.js(7,29): BCE0017: The best overload for the method 'UnityEngine.Gizmos.DrawWireCube(UnityEngine.Vector3,...
View ArticleUnexpected token: targetPos
I get an error where my TOKEN is wrong, and I would really like too know what a token is :P. (Noob Here) So if you could help me that would be nice ^^ function (CalculateAimPosition targetPos =...
View ArticleSetting the transform of an instantiated game object
Hello! I am new to posting on Unity Answers, though I have been stalking the threads for answers to my problems for quite sometime now... ;) I am having an issue setting the transform of a game object...
View Articleexpecting EOF, found 'else'.
Hey folks! I'am having a problem with the following script: var car : Transform; var player : Transform; var exitPoint : Transform; var doorTriggerLeft : Transform; var isPlayerVisible : boolean;...
View ArticleUnityScript coding error:
I have a simple project. When you enter a trigger, if the textfield contains a specific word, you would move to the next scene. And its not working even know I am not getting any errors private var...
View ArticleFence error?
Hi, quick question. Since updating to Unity 4.3 I am getting an error message in my console. fence == expectedFence UnityEditor.DockArea:OnGUI() Can anyone tell me what this means? Thank you!
View ArticleMultiplayer Layers and Colliders confusion.
Ok so how would I avoid different players having things like raycast and so on colliding with specific things that are only meant for the specific player? Like in my case I have a box collider around...
View ArticleError CS1525: Unexpected Symbol `int'
ModelImporter modelImporter = ModelImporter.GetAtPath(assetPath). ModelImporter.generateAnimations = ModelImporter.GetAtPath(assetPath) return void numAnimation = total ModelImporterClipAnimation[]...
View Articleinsert semicolon error
Hi guys, ima new to Unity and trying to finish all the tutorials, but there is a error that i don't know how to fix? Can you guys help me out? It says insert a semicolon which is what i did, but it...
View ArticleAnimation problem (noob)
Hey guys ;) I wanna do simple animations (walk, run, jump). I think that the script part is correct, but once I saved the script, I have an error: Assets/Standard Assets/Scripts/Camera...
View ArticleHelp with Unity's Parallax Scrolling Script Object reference not set to an...
Hello, I was trying to use unity's new Parallax Scrolling Script that they use in their 2d example project, but i get this error NullReferenceException: Object reference not set to an instance of an...
View ArticlePrefabUtility android
Hello, I was developing my game, and at time, i use PrefabUtility, on it to create an empty prefab, but since this is an android game, when I went to build, I can't, it says Unknow Identifier, so, is...
View ArticleAnother way to reference scripts?
Hi, I am trying to find another way to reference a script so that another script can use its info(variables, etc) I have been using a way that has been successful, but produces annoying error. Here is...
View ArticleView ID AllocatedID: X not found during lookup.
After two calls RPC, when run script CreepDie (), appear 2 errors . 1) View ID AllocatedID: 3 not found during lookup. Strange behaviour may occur 2) Could't invoke RPC function 'SetDamage' because the...
View Article