FindWithTag returns NullReferenceException
Hello, I have readed a lot of forums about this, and lots of answers, but I can not still solve this problem. When I have 1 door in my scene, everything is OK, but when I add another one, I am getting...
View ArticleCan't build and save
When I try to add scenes to an existing file, it gives me the error: Moving files failed Moving /Users/williamthomaslanton/Desktop/New...
View ArticleError CS1519 help
I'm trying to make a script where a gunshot goes off after a certain amount of time. using UnityEngine; using System.Collections; public class Gunshot : MonoBehaviour { public AudioClip Gun; private...
View ArticleDetecting Collision is not working
I Am trying to move the ball when the key "I" is pressed when making contact with the players, this is my code which is not working using UnityEngine; using System.Collections; public class KickForce :...
View ArticleI don't know how to collect a capsule?
I can't how to correct the mistake in the final of the script, the code says CS1022 using UnityEngine; using System.Collections; public class PlayerController : MonoBehaviour{ public float moveSpeed =...
View ArticleArgumentException: Input Key named: Submit is unknown
![alt text][1]I set up a code to use the enter key to change level. if (Input.GetButtonDown("Submit")) { Application.LoadLevel("main"); } The submit input method is already in the input settings. It...
View Article`SceneManager' does not contain a definition for `LoadScene'
hi, can someone please help me with this error: Assets/Menu.cs(53,22): error CS0117: `SceneManager' does not contain a definition for `LoadScene' here's my script, thanks. using UnityEngine; using...
View ArticleWhat is wrong with my code?
I was following the survival shooter tutorial on unity's website for their health and damage scripts so I can learn how to do it. So I followed it I understood it until when I completed the scripts I...
View ArticleEnemy AI Error
Hey guys. I'm having a problem with my Enemy AI moving towards my player. It keeps saying "Object reference is not set to an instance of the Object". Think anyone can help me fix it? My code is this;...
View ArticleFaceBook sdk Error Coding
Sr about my English. i import facebook sdk 7.4.0 i want code with FB sdk but it's error when i build it. ![alt text][1] [1]: /storage/temp/67916-fberror.png How can i fix it? Thanks for any help.
View ArticleScreen position out of view frustum
I know, this error again. I am getting this error, and i have checked all the other posts, but simply closing the Scene tab isn't working. neither is replacing the camera, creating a new C# file, etc....
View ArticleIOS Crash during build on Mac for Unity 5.3.4
I have recently updated my project to 5.3.4 and I'm unable to make any builds for IOS. Everytime I build, Unity will crash in the middle of building and give me a message about how "Unity quit...
View ArticleError when trying to download asset
I'm trying to download an asset that I purchased but only get the following error when I try to download it. I do have the Unity plugin installed and updated and got an error when trying to download...
View Article"Object reference not set to instance of object" but it is
I have tried to import some component from another program to my game but it generated errors. I imported it using the export on the other game and importing the package from my game. errors:...
View ArticleHelp me please with error CS0103
My code: #pragma strict var target : Transform; var distance = -25; var lift = 1.5; function Update () { transform.position = target.position + Vector3(0, lift, distance); transform.LookAt (target); }
View Articleneed help with colision problem
I made this code but the colision part is not trigered using UnityEngine; using System.Collections; public class Bullet : MonoBehaviour { //fly speed public float speed = 2000.0f; //explosion prefab...
View ArticleGetting an incorrect error
Error: You are trying to create a MonoBehaviour using the 'new' keyword. This is not allowed. MonoBehaviours can only be added using AddComponent(). Alternatively, your script can inherit from...
View ArticleAndroid App crash with EGL Errorcode 3004
Here you can see the log. On some devices it gets stuck in the first screen, but in others (like the log owner), it simply crashes at startup 04-15 09:59:34.586 14063-14063/com.appname W/dalvikvm: VFY:...
View ArticleNeed Help! (How to make a game series by brackeys [video 2] )
Do you know what to do when there's a console error in unity that says : **MissingComponentException**: There is no 'rigid body' attached to the "ball" game object. You probably need to add a rigid...
View ArticleUnity3D mash
Hello, I am trying to generate a Texture in runtime in Unity and set it to the mesh. But it does not work. The texture dont show up (?). Can anybody help me? My code: GameObject ekranprawy =...
View Article