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

Getting NullReferenceExpection when I've built and run...

So when I'm in the editor it's all fine, no errors at all but when I build and run it's just a black screen, I turned on the dev console and saw that I got "NullReferenceExpection: Object reference not...

View Article


Error importing PNG: file could not be read

Ever since I started using Unity on my Mac, I haven't been able to import certain PNGs. This is the error I get: Could not create texture from Assets/Images/GUI/bubble.png: File could not be read...

View Article


Accessing shader property breaks shader

Hi there I'm making a basic particle effect shader and would like to pass the position of my particle effect emmitter to the shader. I'm doing this via a script : using UnityEngine; using...

View Article

Help with fixing NullReferenceException

Hello, During runtime I get an obnoxious amount of NullReferenceException error from this line if(hit.transform.gameObject.tag != null){ I know why this is, its because the gameobject does not exist,...

View Article

Constant compile errors calling functions from another class.

I'm relatively new to C#, but not an entire newblet. What I'm trying to create is a simple die rolling class (in the d20 style) with a separate function for each die, that can be called from other...

View Article


"Object reference not set to an instance of an object."??

var Warning = false; function OnGUI () { if (GUI.Button (Rect (Screen.width/2-100,Screen.legth/2-100,200,200), "WARNING!")) { Warning = true; } if (Warning == true) { GUI.Box (Rect...

View Article

What's wrong with my AI script.

I have my script here but I don't know how to fix the error. /Scripts/AI.cs(37,35): error CS1501: No overload for method `LookAt' takes `3' arguments using UnityEngine; using System.Collections; public...

View Article

Please help! Some texture error/problem on an Android device

I have several android devices and my android project. When I tested it on a Galaxy S3 and Tab 10.1 (The first 10.1 tab) it was just okay. But when I tried it on Xperia there was an interesting issue....

View Article


Animation will not work Unity 4.3

Hi there, this is really making me frustrated. I have done a lot of animation in the past and now everything I normally would do is not working. I created a sprite, made an animation, added an...

View Article


Animation Script Error

i get these errors: Assets/Assets/Run Animation.js(14,23): BCE0044: expecting :, found ';'. Assets/Assets/Run Animation.js(12,34): UCE0001: ';' expected. Insert a semicolon at the end....

View Article

Can't Seem to figure out why I get this error

Hey Everybody! So I keep getting these errors An object reference is required to access non-static member `UnityEngine.Component.transform' The best overloaded method match for...

View Article

Internal Compiler Error

I am getting an this error message `Internal compiler error. See the console log for more information. output was: Unhandled Exception: System.TypeLoadException: Could not load type 'System.Func`1'...

View Article

unity engine wont work

when i try to press play, i cant do anything and i get these errors even when i start a new project with nothing in it,these are the three errors that i get when i click play. thank you 1)...

View Article


A bunch of errors that I can't fix

I have been looking all over unity answers for this, but have only found questions relating to GUI, which I am not doing. I am getting 6 errors in a script that makes NPCs get out umbrellas if it is...

View Article

Really need help with: Ambiguous reference 'constructor':...

So I installed the FPS controller pack, and there is a script called proGRids that causes a problem. Here is the whole error line, and I didn't code this, so it was above me....

View Article


Melee script help

so i just started working with unity, and was watch a tutorial. i copied this script exactly from the video, but i get errors he doesnt. the script is #pragma strict var TheDammage : int = 50; var...

View Article

!!!BCE0044: expecting EOF, found 'else'.!!!!!!

// im getting this error in the title with the else part what did i do wrong i try respecting the bracket like others script but this one doesn't seem to like it. var animator : Animator; function...

View Article


Script Errors

***Use Unity Pro*** ***4.3.0f4*** Script #1 ========== renderer.material.mainTexture.Play(); Error #1 ========= Assets/PlayVideo.js(1,31): BCE0019: 'Play' is not a member of 'UnityEngine.Texture'....

View Article

Strange sound error: sometimes rapid fires sound without stopping

Hello, I am adding a basic sound function to my players script. its pretty easy, if he gets hit, he takes damage, and when his damage is lowered every 5% or so, he makes a noise. It all works fine, but...

View Article

Error: Expecting ), found '='.

I ADDED THE GETCOMPONENT(PickUpGUI) INSIDE THE IF STATEMENT AND THIS ERROR CAME UP AND IM STUMPED CAUSE EVERYTHING LOOKS IN ORDER. WHAT AM I MISSING? **PickUpGUI is another Script that im enabling on n...

View Article
Browsing all 7934 articles
Browse latest View live


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