Two errors need help
I cannot figure out how to fix these errors Assets/Scripts/Bounce.cs(16,17): error CS1525: Unexpected symbol `{' Assets/Scripts/Bounce.cs(23,34): error CS8025: Parsing error using UnityEngine; using...
View ArticleHow to fix error CS0029: Cannot implicitly convert type...
Hi, I don't know how to fix this error. The problem text is in bold. Below the script code with the problem is the script that I believe the problem is trying to link to / reference... Problem Script:...
View ArticleGet Component Errors
In my scripts I'm trying to locate two other components and disable them from an inventory system. My Script: private var showGUI : boolean = false; function Update() { if (Input.GetKeyDown ("i")) {...
View ArticleAnimations get a "NullRefrenceException" error when playing animations.
I imported an fbx model i made in blender, which has animations, since i wanted to animate some other things & program them into my game (like attacks & such), Set the animation Rig of the...
View ArticleHow to get text from webpage
I've been trying to get text from my php page but whenever I use my code it gives me the error: UnityException: WWW is not ready downloading yet UnityEngine.WWW.get_text () (at...
View ArticleNot booting past the project selection screen
So, I was working on a project and then my screen went black and it didn't turn back on. I had to turn off my computer and reboot it to get my screen back. But now when ever I load unity. I get the...
View ArticleStrange error associated with imported .blend file
It's no secret. Importing blend files into Unity is annoying. This time, the fbx import was not carrying over all the animations, so I had no choice but to import the .blend file directly. Everything...
View ArticleAfter building, .exe won't play: The resource...could not be loaded from the...
Hi, I'm using Unity 5.1.0. After building my game, when I try to run the .exe I get an Error message saying "oops! the game crashed. the crash report folder named...". When I open the output_log, it...
View ArticleNullReference when importing custom midis on UnitySynth
So, I downloaded the unity project from unity answers. here is the link: [UnitySynth link to download page in unity answers][1] I have finished my prototype, but I'm getting errors when I tried to load...
View ArticleAsset Store fatal Error!
**UPDATE:** this error only seems to happen in new projects when opening up an old unity project the problem does not seem to happen and I'm able to import assets from the store the error only seems to...
View Article"The referenced script on this behavior is missing!" in Roll-a-ball tutorial.
Hello, I'm new to unity(5) The roll-a-ball tutorial (https://unity3d.com/learn/tutorials/projects/roll-ball-tutorial) (step 2) requires code in C# fallowing the tutorial we obtain the fallowing code:...
View ArticleReference for a non static method between scripts
I am trying to take this method from my HealthManager.cs void LoadHealthSprites () { //array index 0 is 1 hit int spriteIndex = totalHealth -= 1; //will only run IF the there is a sprite at index[x] if...
View ArticleTrouble using Coroutines, what should I do?
Hey guys, I'm following a tutorial on youtube to develop a 2D platformer within Unity; I'm on the sixth video and we were learning how to fix the player's dying and respawning (By making the players...
View ArticleWhy do I get: "Cannot cast from source type to destination type"?
I'm working on a project where a cannon shoots a cannonball. I've manage to create a simple code for shooting the cannonball. It worked just fine. Then I fumbled on the code and as it didn't work I...
View ArticleUnity Error: Only assignment, call, increment, decrement, and new object...
This script (ShortRange tower bullet) acquires the monster component of another script (MonsterScript) and takes its health by the amount of damage this bullet does. The bullet is a public float. The...
View ArticleError Using UCE0001: ';' expected. Insert a semicolon at the end.
Hello there i get an error that unity call it UCE0001. As we know that mean that i should add an ';' at the end but the thing is that i all ready have one. This i try to do is : i try to make my...
View ArticleObject reference error question
I'm still new to C, and am probably missing something basic. I have this script that keeps giving me this error: NullReferenceException: Object reference not set to an instance of an object...
View Articleget this error Assets/PlayerDecection.cs(12,33): error CS1061: Type...
this is my code: using UnityEngine; using System.Collections; public class PlayerDecection : MonoBehaviour { public AnimalAI AIMotor; public AudioClip SFX; void OnTriggerEnter (Collider col) {...
View Articlehelp expected. Insert a semicolon at the end
var burstEnergy : float = 10.0; var explosionObject : Transform; function LateUpdate() { var theParticles = GetComponent ParticleEmitter.particles; var liveParticles = new int[theParticles.length]; var...
View Articlehas anyone seen this javascript error?
here is the error i am receiving. Actor::updateMassFromShapes: Compute mesh inertia tensor failed for one of the actor's mesh shapes! Please change mesh geometry or supply a tensor manually!...
View Article