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

Why do I get a NullReferenceException

This is my Error: `NullReferenceException: Object reference not set to an instance of an object PlayerJump.OnTouchDown () (at Assets/Scripts/PlayerJump.cs:17) UnityEngine.GameObject:SendMessage(String,...

View Article


EXC_BAD_ACCESS (SIGABRT) from Unity::Material::CreateMaterial

Hi. now i'm developing ios apps on unity and build it on unity cloud service as well because of windows. today I got the following error from crash log of my test iphone and I've been struggling with...

View Article


New Export Error Android

Hi I have the following error when trying to port to Android. Everything seemed to work fine until now, I have just upgraded to Mac OS Captain. Thanks for any input: > Installation failed with...

View Article

Error cs0029: Cannot implicitly convert type `void' to `bool'

I was coding and suddenly this error popped up: *Error cs0029: Cannot implicitly convert type `void' to `bool'* I checked over my code but I couldn't find anything wrong with it (Its just three lines...

View Article

Why does this threading code throw an error in the editor, but not a build?

I'm using the Threading example in the ["Unity Network Code and You" example project][1] put together by Unity for a Unite 12 talk. - If I build the server and client it works fine. - If I build the...

View Article


Cannot cast from source type to destination type for Movie Texture

I am getting this message for all my objects that run a specific script. Here is the script: using UnityEngine; using System.Collections; public class test : MonoBehaviour { // Use this for...

View Article

Unity Crashes After Baking Occlusion Culling

I've been trying to bake Occlusion Culling into my scene but every time i try to save and/or playing my game after it bakes it always crashes the Unity Editor. Its been happening for weeks now and i...

View Article

Why am I getting a NullRefere ce

void InstantiateMap() { for (int x = 0; x < map.mapSizeX; x++) { for (int y = 0; y < map.mapSizeY; y++) { Debug.Log("Tile instantiated with pos: " + x + ", " + y); Transform newTile =...

View Article


Error BCE0019

Hi, so im new at this and im making a survival game, this code is for the playerGUI and/or my FPS Arms Here is the code. Code: #pragma strict private var hasAxe : boolean = false; private var canSwing...

View Article


Error BCE0018

Ok if you were to go to my other question error BCE0019 ,(http://answers.unity3d.com/questions/1082700/error-bce0019-4.html) , i was able to get that fixed, but now i got a new error. Error:...

View Article

Rigidbody2D.Moveposition is acting more like add force after 5.2

I was using Rigidbody2D.Moveposition to move several 2d objects a short distance in my project. After the recent update and the code rebuild, when the move is activated they shoot off the screen like a...

View Article

Error removing component when merging prefab changes: Can't remove...

when i run my scene in editor, console output below error: "Error removing component when merging prefab changes: Can't remove MeshRenderer because TextMesh depends on it". yeah, i have been tried to...

View Article

NullReferenceException: Object reference not set to an instance of an object

So I've got a public class, and I'm trying to create an array of this class and pass it to a function to initialize it, but I get this error on the first line, during runtime. NullReferenceException:...

View Article


Could not initialize home screen window on OSX 10.10.4

I tried to start Unity 5 on my mac several times and always have the "Could not initialize home screen window" error. I downloaded Dependency Walker to check if I have missing files but don't know what...

View Article

Unity 5.2.1 not responding after hitting Play

Unity stops working every time I hit "play". When I hit it, the loading symbol that comes up on a Mac appears, but it never goes away, and it says that Unity is not responding. I then have to Force...

View Article


Why isn't the first person controller prefab working for unity 5?

Its says there is a problem with the script but I haven't edited it! Its form the simple assets pack

View Article

3 erros -A namespace can only contain types and namespace declarations : at...

Help me :) It's my script, I can't find a error. Thanks. using UnityEngine; using System.Collections; public class PlayerController : MonoBehaviour { //movement variables public float maxSpeed;...

View Article


Destroying a gameobject is not working. I tried triggering the colliders but...

using UnityEngine; using System.Collections; public class EnemyController : MonoBehaviour { //In the editor select if you want the enemy to move vertical or horizontal. Also set the distance to move....

View Article

Problem Instantiating a Prefab

I have a prefab plane, with an attached material, and I instantiate that prefab in the game, but when i set the quaternion, the objects rotation does not seem to be the quaternion that I set in the...

View Article

Unity crash on build to iOS

Okay so I have recently run into an issue with building in Unity. I was trying to fix an error in xcode and instead messed up my library folder on my mac. Whenever I try to build my project on iOS,...

View Article
Browsing all 7934 articles
Browse latest View live