OutOfMemoryException: Out of memory
Im getting this weird error whenever I run my game, a google search reveals nothing specific to unity. Does anyone know what this runtime error is or how to fix it? EDIT im now getting it every update...
View ArticleThere is no 'Rigidbody' attached
hai.. i have problem in my unity project2d.. i have this script to run character if i got to tap on screen game.. using c# : public Vector3 jumpVelocity; void Update () {...
View ArticleShaking angles using gyro attitude
Hello, im working with gyro.attitude to move the camera using the device sensors. I have detected a problem with some devices, which if you stop de movement you can see how the camera moves or shakes...
View ArticleUnassignedReferenceException: i'm having troubles with a counter
I'm getting this error "The variable countertext of 'DestroyEgg' has not been assigned. You probably need to assign the countertext variable of the DestroyEgg script in the inspector. #pragma strict...
View ArticleError... that I don't understand.
I have a very simple script set up, and I am getting two errors. The errors are: - `Assets/Movement.cs(15,26): error CS1502: The best overloaded method match for 'UnityEngine.Input.GetButton(string)'...
View Articleplease help me fix the following compiler error
the error is called Assets/Sample Assets/Vehicles/Car/Scripts/BrakeLight.cs(12,32): error CS1061: Type `CarController' does not contain a definition for `BrakeInput' and no extension method...
View ArticleERROR: Invalid Password for key 'google play public key'
I've already been through this problem twice. I have my passwords for publishing saved in a secure area, and I know 100% the password is the same. I exit Unity, start it back up and doesn't want to...
View ArticleWhy am I getting this error? Trying to do test code for a 2d scroller
I'm working on some very basic JavaScript to test run a 2d side scroller. var moveUp : KeyCode; var moveDown : KeyCode; var speed : float = 10; function Update () { if (Input.GetKey(moveUp)) { } else...
View Articlehow to get a GUItext to say something
I have a GUI text script, and I keep trying to tweak it to work, but nothing im finding is working var score = 0; function Start () { InvokeRepeating("Plus", 0, 0.1); } function Plus () { score = score...
View ArticleHow can i fix an internal compiler error?
I have this really annoying error that I get on this engine for one of my windows 8 desktop and its an internal compiler error crap with Assembly Dll file that is denied crap. I tried the deleting the...
View ArticleError in code! Help me please! =(
Hello everyone, I'm new to c # and I can not understand the error code: using UnityEngine; using System.Collections; using System.Collections.Generic; public enum TerrainType { Lowlands, Highlands,...
View ArticleFalse-positive Collision between Eye-Ray and Capsule Collider
I'm trying to detect when the user clicks on a key-object: void Update( ) { CheckForUserInput( ); } void CheckForUserInput( ) { // mouse L button if( Input.GetMouseButtonDown( 0 ) ) tryTouchPoint(...
View ArticleUnityEngine.Animator doesn't contain a definition for 'setInteger'
I have some coding background already (C, C++, js, Ruby), but I'm still relatively new to unity library and C#. According to the documentation:...
View Articleerror CS0101: The namespace `RTS' already contains a definition for...
I have already tried creating a new project without importing any Default Unity Assets, and that had no effect. Even so, this is still driving me nuts. Can anyone help? Here is the error. error CS0101:...
View ArticleNull Reference Annoying Error
So I have this script running and it has no errors but when the game is run it simply kicks back > NullReferenceException> AdvancedMovement.SetUp () (at Assets/Scripts/AdvancedMovement.cs:90)...
View ArticleDirectional Lights STILL affecting shadowed objects!
It's a very frustrating problem. I have a directional light in my scene which will be rotated during gameplay to simulate day & night cycles. The directional light (which is set to cast soft...
View ArticleThe nested type `Find' does not exist in the type `UnityEngine.GameObject'
I get this error every time I use the Find or FindObjectsOfType. I just can't figure this out. Is there something missing? using UnityEngine; using System.Collections; using System.Collections.Generic;...
View ArticleSpace Shooter Tutorial: Issues in "Ending the game" step
I've been doing the space shooter tutorial, and it's gone well up to this point. I'm having issues with the game controller script. the values for gameOverText and restartText don't come up in the...
View Articlenullreferenceexception object reference not set to an instance of an object
I´m realy new at unity and javascript so i need some help. I´m trying to make a gun aim and i get this null error. Here is my script: var gun : Transform; var nextPos = 0.0; var nextField = 40.0; var...
View ArticleSelect Object and move on Right click Position - Error!
Heres my script but I get an error: using UnityEngine; using System.Collections; public class MouseActivity : MonoBehaviour { RaycastHit hit; GameObject SelectedObject; void Start () { } void Update ()...
View Article