Damage System Doesnt Work?
Newbie Help please. I am trying to write a simple command that reduces my health by 10 every time i press A: var Health : float = 100; var MaxHealth : int = 100; var HealthBarTexture: Texture2D; var...
View ArticleErrors After Changing Platform
I have two errors after changing platforms from Pc, Mac, and linux to IOS. The first is this: parentWasDisabled UnityEditor.HostView:OnGUI() And the second is this: InvalidOperationException: Operation...
View Articleissues with animation :(
hia, im still new to Unity and im having some problems. I made a walking animation for my character in first person so it looks like hes walking. It moves the player camera up and down to give a simple...
View ArticleSelecting Object From Top Causes NullReference
This is a very odd situation I am faced with here. I've been working on an RTS style selection, with the help of a tutorial from YouTube, for a game I am working on with a friend. I've never created a...
View ArticleUnity Serializer scripting error
The modified script I am using to save, load and delete saves of my game has the error "Unknown identifier Convert" (on line 73) Could someone help me with this? import UnityEngine; import...
View ArticleSerialization scripting error
The modified script I am using to save, load and deletes saves of my game gives the error "Unknown identifier Convert" on line 73, could someone help me fix this? import UnityEngine; import...
View ArticleInstantiating Rigidbodies on PhotonNetwork? Am I doing it wrong?
I've been working on a small multiplayer project with a friend, and I am attempting to create a script that will handle instantiating thrown objects, like grenades or other objects, using...
View Articlescript error missingfeildexception
**unity say that i have a missingfeildexception in the braking** //brakes; if (Input.GetKey(KeyCode.Space)) { wheelbl.BrakeTorque = braking; wheelbr.BrakeTorque = braking; } **if you need the full...
View ArticleStrange behaviour with List C#
Hi I have an issue with List in my code (or something is off elsewhere). I have a class Chunk which holds some terraintiles. I add Chunks to a List array in my main class. private List chunks = new...
View ArticleTansform.position assign attempt for 'Enemy(Clone)' is not valid. Input...
From my research I can see I am getting a vector issue (it looks like I divide by 0 but I dont do an divisions in my script). I checked every script I have for positions and tried to catch it between...
View Article2-Dimensional Array Error [CLOSED]
Im having an issue with my code. It is giving me an error called **IndexOutOfRangeException: Array index is out of range.** Im not quite sure what Im doing wrong. The code is for a horror game with...
View Articlepress play, game objects get deleted, game breaks.
okay so i just finished this script here #pragma strict var maxfalldistance = -10; function Update () { if (transform.position.y <= maxfalldistance) ( Debug.Log("test") ); (...
View ArticleInternal compiler error during parsing, Run with -v for details (101,25)
using System.Collections; using UnityEngine; //List of all the posible gamestates public enum GameState { NotStarted, Playing, Completed, Failed } //Make sure there is always an AudioSource component...
View ArticleBuild error
Everytime I try to build my app it gives this error Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details. C:\Users\Shay\Documents\Android...
View ArticleMusic stops other sounds from being played?
I must have toggled something that makes my scene soundtrack block out all other noise. I'm not too familiar with the sound system so I don't know why this is happening, but maybe these screenshots...
View ArticleAn Object Reference is required to access non-static member...
I've looked this up online but I can't really figure out how the solutions other people are using work, so I'm asking for a more "specific to my situation" solution. My code: using UnityEngine; using...
View ArticlePlay Animation on trigger enter
Hello, i want to play an animation (elevator) when a specific object enters the trigger, but the animation plays when i press the play button. function OnTriggerEnter (other : Collider) { if(other.tag...
View ArticleError In Decompressing Unity Asset Store Package
I was trying to import a 3rd person shooter package from the asset store, but when it didn't show any progress with the progress bar after a while, it vanished and I saw a console error message that...
View ArticleDestroy Other
I want to make it so that when the player touches this object, it destroys a different object. I attach this script to the trigger, so that way when the player touches this trigger, a separate object...
View ArticleWeb player GUI only appears on fullscreen?
Ok so i'm testing my game on the web player, and the GUI doesn't appear unless its full screen. Also, when I go full screen and then go back to normal, some of the GUI appears but its in the wrong...
View Article