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

Why The player don't move?

why it's not working: private Transform myTrasform; public int playerSpeed = 5; // Use this for initialization void Start () { myTrasform = transform; myTrasform.position = new Vector3 (-3, -3, -1); }...

View Article


Problems with setting variable in another script to value

I'm trying to edit the values of a script that I attach to a gameobject however, I get a NullReferenceException. Here's the code where I'm calling the other script and it variables: if...

View Article


[solved] This error "NullReferenceException: Object reference not set to an...

In the inspector I have a game object attached to the function below. On that game object there is a script called behButtonDecayManager and in that code there is a function called set decay. For some...

View Article

Unity deletes my animations

Everytime i make a animation to use in my games, no matter wich game, no matter wich scene, when i put them into a animation component, or just don't do anything and leave it in it's standard animator,...

View Article

Errors, Errors, and more Errors?

Hi, I am making a top down RPG and I am having these errors. It is a script for dialogue: ![alt text][1] [1]: /storage/temp/74002-screenshot-2016-07-13-220403.png Here is a script version: using...

View Article


Health.cs(331,22): error CS1624: The body of...

I have legacy animations . I try to make the death animation play late because of the animation frame is not keep up when its deactivating the object. I need to start a start a Coroutine some where on...

View Article

JavaScript Error

I have a JavaScript that whenever i press a button, in this case "j", it will play an animation (walk). But whenever i use the script on a FPS Controller in standard assets, it says all compile errors...

View Article

why i am getting this errorr....

![alt text][1] [1]: /storage/temp/74028-11.png

View Article


Why is my custom created (at runtime) mesh shading so weird?

I'm working on a little project that involves creating a mesh at runtime. I generate a bunch of vertices, assign triangles, and then send it out to the meshFilter. I'm not editing UVs, because i'm not...

View Article


Showing Error CS1525: Unexpected symbol `)', expecting `;' or '{' ?

using UnityEngine; using System.Collections; public class code : MonoBehaviour { void OnGUI() { GUI.Button(new Root(Screen.width/2.5,Screen.height/3,Screen.width/5,Screen.height/10), "Play")) {...

View Article

InvalidOperationException: Collection was modified; enumeration operation may...

I'm getting the error InvalidOperationException: Collection was modified; enumeration operation may not execute. Apparently this is to do with my foreach loop, but I can't see any other way to perform...

View Article

"The class named is not derived from MonoBehaviour or ScriptableObject!",...

I keep getting the error "The class named 'OldManSounds' is not derived from MonoBehaviour or ScriptableObject!". I have researched this, and seen that the solution is usually to add ": MonoBehaviour"...

View Article

(353,27): error CS1525: Unexpected symbol `(', expecting `)', `,', `;', `[',...

I am trying to play animation late . I am getting errors. I am doing coroutines on this network health script . When the gameobject deactivates , the animation doesn't play . The gameobject just...

View Article


Error message when accessing class array

I have a class called road, as you can see below : public class Road { public int typeIndex; public int[] intersection; public Bezier[] spline; } I create an array of this class, using : Road[]...

View Article

Error CS0101

I am not the best programmer, and I am trying to translate script from Js to C#, so please correct me on any mistakes I have made, but I created two scripts, one called PickUp, and one GameManager. I...

View Article


Why won't my player rotation script work?

I have been having trouble with my code it has four errors that I don't know how to solve: if(Input.GetAxis ("Mouse X") < 0) { transform.Rotate (Vector3.up) * speed; } if(Input.GetAxis ("Mouse X")...

View Article

Unassigned Reference Exception on an Animator, but Animator is assigned in...

I'm getting an Unassigned Reference Exception in my script that references an Animator component. I assign the Animator to the script in the inspector, but it still returns the error.![Assigned In...

View Article


Image is not transparent

I had the same error in the past, but now i can't just ignore it, i NEED this image to turn transparent. I made a door image's background transparent, but when i apply transparent shaders on it, in...

View Article

Exception: Invalid PBX project (parsing line 779)

Hola. Cuando quiero crear los archivos correspondientes para iOS en Unity, me genera el siguiente error. ¿Alguien conocerá alguna posible solución? o ¿qué es lo que ocasiona esta falla? Al momento de...

View Article

error CS1502: The best overloaded method match for...

I got two of the same errors , I trying to make my enemy ai follow the player . I capitalize the t on transform and I get more errors here is my code : using UnityEngine; using System.Collections;...

View Article
Browsing all 7934 articles
Browse latest View live


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