Quantcast
Channel: Latest Questions by GraviterX
Browsing all 122 articles
Browse latest View live

Parsing Error

Hey all. I'm getting a parsing error line 26. How can I fix this? using UnityEngine; using System.Collections; public class Thing : MonoBehaviour { public GameObject [] doors; private GameObject...

View Article



Applying a clicking mechanic

Hey all. I've been doing some editing on this script: using UnityEngine; using System.Collections; public class Thing : MonoBehaviour { public GameObject [] doors; private GameObject killDoor; // Call...

View Article

Scripting Errors

Hey all. I'm getting these errors in my C Sharp script: 1) (10,25): error CS0103: The name `FindGameObjectsWithTag' does not exist in the current context 2) (11,17): error CS0103: The name `killerDoor'...

View Article

Door Tags C Sharp

Hey all. So in my game I have two scripts. One for the door manager and the door. In the game, the player can select one of 4 doors, one of them being the one that kills him. However, when the wrong...

View Article

What's wrong with this script?

I've been getting these errors. 1. (6,29): error CS1519: Unexpected symbol `:' in class, struct, or interface member declaration 2. (6,35): error CS1519: Unexpected symbol `=' in class, struct, or...

View Article


GUI Texture Script

Hey all. I just wrote this script but it's not working how I want it to work. I want the Player to be able to click on a piece of paper (cube) and a GUI Texture appears (I already made it) on what the...

View Article

What's wrong with this script?

I keep getting this error : (6,32): BCE0043: Unexpected token: .. The script: var texture : GameObject; //place your guitexture here function Start() { texture.enabled = false; } function...

View Article

Click Paper

Hey all. I just made this script. I want to make it so that when the Player clicks a piece of paper (cube with collider), a gameobject with a GUItexture displays. Then when the Player is finished...

View Article


Reading a paper

Hey all. I just made this script, however I'm getting some errors. I want the player to click a cube tagged "Paper" and I want a seperate gameobject with a GUI texture to appear. How can I fix these...

View Article


Clicking Paper

Hey all! I have this script to allow the player to click a piece of paper and a gui texture appears on the screen to allow them to read the paper. When I click the paper, however, it isn't working. Any...

View Article

On Trigger Stay

Hey all. I have this script which allows my Player to read a piece of paper by clicking on the collider, however, they can click it from across the map. I want to add a, On Trigger Stay line that...

View Article

OnGUI coroutine issue

Hey all. I'm trying to make a script for the intro to my game so when the Player walks through a trigger, GUI Text appears, then fades away. I have one script that makes it appear ontriggerenter, and I...

View Article

Animation Play On Click

Hey all. I'm trying to script a function in which an animation plays on click of a gameobject. However, instead of naming the animation in the parenthesis, I want to be able to declare it as a...

View Article


Animation Script

Hey all. I'm trying to make a script where when I click a certain tagged gameobject, the camera zooms into it with an animation. However, it isn't working. Any advice? function OnMouseDown () {...

View Article

Tagged GameObject

Hey all. I have this script where when I click an object, it plays an animation where the camera zooms to it. However, it's not playing the animation. I'm not sure what the problem is. Can anyone help?...

View Article


Lens Flare Component Ignore Fog

Hey all. I've encountered a problem. I have a lens flare component to represent the sun in the distance. However, I have intense fog in the level, and I can't see the flare unless I get really close to...

View Article

GUI in Unity 4.6?

So now with 4.6 we have new UI text, images, etc. That are available for use. However, I have some dialogue scripts written to affect GUI. Whenever I place an empty gameobject with GUI Text on it in...

View Article


Unity Pro License

I've been wondering something. If I were to get Unity Pro with a subscription for $75 a month, would that be until the subscription is cancelled, or until that money adds up to $1,500?

View Article

Particle System Appear Where Clicked

Hi all! In my game, I want to make a script so that where I click, my particle system appears for a few seconds, then disappears. Can anyone help me get a good starting point or link tutorials? I...

View Article

Animation Script

Hi all! I got this script off of Unity's scripting reference. I need to modify it to play my several animations. function Update () { if (Input.GetButtonDown("Fire1")) animation.PlayQueued("shoot",...

View Article
Browsing all 122 articles
Browse latest View live


Latest Images