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

Roll-a-ball tutorial: help with movement

Hey I am following the Roll-a-ball tutorial. I did everything till the 3rd chapter"moving the ball". I wrote the same script as shown in the video . But i am not able to move the ball as shown in the...

View Article


Script keeps functioning when disabled

Hey everyone. I have a shooting script for a tank, and when there are no more enemies present, the script disables. Though it shows the the script is disabled, it continues to fire rounds. Does anyone...

View Article


missing gameobject ≠ Null?

I made a script not too long ago, and it's supposed to detect if the variable 'target' is empty. When the object is destroyed, however, it says missing gameobject, and null no longer works. Can anyone...

View Article

Animation play error. No animation attached.

I've been trying to play the animation I created inside of unity. I've added the animation to an empty gameobject called "SwingAnimation"(It's no longer empty). (I created the animation using a cube...

View Article

Error with BrickBreaker CS0119

I am getting Error CS0119: Expression denotes a 'value', where a 'method group' was expected. i am using Unity 2.5 My code: using UnityEngine; using System.Collections; public class BallScript :...

View Article


error with unity button unityengine.rect does t contain 5 contru

so in my code i am getting an error when making this button: for(int y=0; y

View Article

My GUItext does not display when an object is rotated, and ideas?

I'm making a space shooter as a personal project, my problem is this, I have a script that displays a GUIText over the object at a certain distance, but as soon as that object is rotated in any way,...

View Article

Giving me a "System.UnauthorizedAccessException" every time I change a script

Hello. I'm really stuck with this problem, so I take my chances here. Since a few days, I have the weird problem that, everytime I change a script in MonoDevelop, save it and tab back to Unity, I get...

View Article


How do I add two variables together?

I want to know how to add two variables together but unity keeps saying " Expressions in statements must only be executed for their side-effects." I don't know how to make the code work correctly does...

View Article


Por Favor, me digam se existe algum erro aqui... Obrigado

Google Translate: Please, tell me if there is some mistake here ... thank you function OnGUI() { if (!controlePause) { GUI.Box(Rect(0,0,Screen.width,Screen.height),"JOGO PAUSADO"); } {...

View Article

Animations aren't found although they are attached to the object

Hello, first I have to say I am a complete beginner in Unity. I'm in the process of learning how to animate and programm with Unity. I think the answer ia a very easy answer but I can't find it. I...

View Article

';' expected insert a semicolon at the end, i've put a semicolon

So apparently there's something wrong with this line in my script: Animator animator = GetComponent(Animator); I get this error. "';' expected. Insert a semicolon at the end." How do I fix this please?!

View Article

Error When Building Windows Phone 8 Game

Hello, When i build a copy of my game to my phone, I get the error, Error building Player: Exception: Failed to run serialization weaver with command line...

View Article


BCE0005: Unknown identifier: 'Arraylist'.

I'm brand new to scripting and coding overall. I am following a js tutorial book that is having me script for a card matching game. I've had plenty of errors and managed to work most of them out alone...

View Article

Keep getting a "Failed to retrieve assembly" error in VS, while the game runs...

I keep getting this error in VS when I build (Using UnityVS): ![alt text][1] Yet Unity doesn't complain about anything and runs the game just fine. Any ideas? Thanks. [1]: /storage/temp/19564-error.png

View Article


object reference problem

I am getting this really annoying error and I have no idea how to fix it. Hope you can help error CS0120: An object reference is required to access non static member 'Unity.AudioSource.volume' This is...

View Article

Unity error CS1014

So I'm watching a tutorial on how to make own FPS game, because I want to learn Unity but I get this error message but the person in the video not. I'm still new to C# and I can't figure out what's...

View Article


unity error error CS1525: Unexpected symbol `(', expecting `identifier'

Hi, as you can see I got a problem. Here's the code: using UnityEngine; using System.Collections; public class GUITest : MonoBehaviour { void OnGUI () { if (GUI.Button (new Rect (25, 25, 100, 30),...

View Article

Semicolons are seen as an unexpected symbol

I'm trying to code a script that makes a light flash when I left-click, because I'm trying to simulate a gun muzzle. using UnityEngine; using System.Collections; public class LightFlash : MonoBehaviour...

View Article

C# Finding Closest Instance LINQ Error

Hello Everyone, I've got a player on an empty terrain that can create instances of one type of a turret. Each turret is supposed to find another turret closest to itself and then shoot a laser at it in...

View Article
Browsing all 7934 articles
Browse latest View live


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