Quantcast
Channel: Questions in topic: "error"
Browsing all 7934 articles
Browse latest View live
↧

Random.Range returns number in different range.

I am trying to place objects using this script at a random position within certain coordinates, however, it seems they appear at entirely different coordaintes. All these objects are a child of another...

View Article


UNEXPECTED TOKEN ) PLEASE HELP ME ;(

So im making a game and i currently and it so when i click on my 3d text it load a level and the text switch color. Heres mah script: #pragma strict function OnMouseOver () { OnMouseOver &&...

View Article


Terrain / Map glitch PLEASE HELP ASAP

Okay so I made 2 different projects. Project A I exported a Height map from World machine and imported it onto my terrain in Unity. All worked perfect. Also, my Fog would auto update based on the...

View Article

Errors, Parsing Errors everywhere :( please help

I have spent way to much time on this and it's doing my head in- can someone please help me fix this broken code. -_- Many thanks. using UnityEngine; using System.Collections; public class Mouse :...

View Article

Error with GUI.ObjectFeild()

Whenever I try to assign something to my object field it gives me this error. NullReferenceException: Object reference not set to an instance of an object...

View Article


Internal compiler error

Hello, I will save a script I am working on in MonoDevelop and instantly when going back to unity recieve this error message. But when I close unity and re-run it I no longer have the error message and...

View Article

Error while building application for android

My unity editor was working fine, but i dont know what happen when i tried to build and run application on android device i start to getting this error. What just happen. Error building Player:...

View Article

MissingReferenceException: The variable m_AnimatorController of...

How do I fix this error? I think I know why it keeps saying that, and it's probably because I deleted all of my animations and animators. Problem is, I don't know how to fix it. It's not really...

View Article


Reverting to Menu screen after game over

In my game basically if the player dies, the screen says "game over". Now i want it to go to the main menu either by waiting 3 seconds or by clicking retry, only thing is i do not know how to do that....

View Article


OS X build fails with "Could not find any matching devices"

My Unity 4.3 project runs fine in the editor. But creating a Mac OS X build always fails to launch with this line at the end of the log: Warning: Could not find any matching devices, thus iterator...

View Article

Symbol(s) not found for architecture armv7 (Compiling w/ xCode)

I'm having really annoying issues compiling my iOS Project. I keep getting the error "Symbol(s) not found for architecture armv7). Full error:> Undefined symbols for architecture armv7:...

View Article

Can't start Coroutine since object is "Inactive"

Here's the guilty coroutine in EnemyAnim.cs IEnumerator LeftRightMovement() { while (true) { for (int i = 0; i < 100; i++) { Debug.Log("executing"); transform.position = new...

View Article

Errors and Animations won't play

There is something wrong here and I can't figure out what var Aim : AnimationClip; function Update(){ if(Input.GetMouseButtonDown(1)); Aim.Play(); } The errors I get is: MissingMethodException:...

View Article


Cannot pass GameObject found by raycast

I use raycast, found the object (debug.log shows it exist) however when i try to pass it to another object, got NullReferenceError Object reference not set to an instance of an Object C# private void...

View Article

When building and running, textures are black or invisible.

My project works perfectly in the Unity editor, but once I try to build and run it, all textures become either black, or don't render at all. The only untouched texture is an object imported from a...

View Article


GUI script still shows GUI on different camera

private var enter : boolean; var mySkin : GUISkin; function OnGUI() { GUI.skin = mySkin; if(enter) { GUI.Label(new Rect(Screen.width/2 - 75, Screen.height - 100, 200, 200), "TEXT"); } } function...

View Article

How do i fix this error?

I have tried doing what it says but it did not do anything. UnityException: Input Axis horizontal is not setup. To change the input settings use: Edit -> Project Settings -> Input...

View Article


Inspector is not complying

I downloaded Unity 4.5 today and installed it but for some reason objects are not being shown in the inspector. I placed a cube and I also have a camera but whatever I do the cube remains "focussed" in...

View Article

"Object reference not set to an instance of an object" Error

Hi all, I am attempting to create a function, located in the main Camera object, that is called by the player object when something specific happens. The function simply inverts the value of a float in...

View Article

Both static and non-static method is giving me an error

I have a globalVariable.cs public class globalScript : MonoBehaviour {.... public static int getFreeQueue(){ return queue.Dequeue(); } } and I call it from spawn.cs public class spawn : MonoBehaviour {...

View Article
Browsing all 7934 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>