Rotate objects face to camera
Hi all, I'm new here, and my english is not very good. I am creating a generator molecules. When I add a triple molecule want to face the cylinders always stay ahead of the camera. Attached a picture!...
View Articledestroy gameobject with ray
hey, I am trying make a scipt to destroy gameobject which is hit by ray that I am casting. Ray casting is working good, but when it hits gameobject it makes this error: NullReferenceException: Object...
View ArticleUnity Webplayer save global data
Hey I wanted to have a small web player online so that my users can give me feedback. So what i'd like it to do is to save several Strings and ints on my server so that I can check them out later on on...
View ArticleUnity engine crash 4.2 and 4.3
Hi, I am facing a problem, I have created a scene in my game and when I focus on a particular game object (clicking on it or going to that particular game object ). When I do that the unity engine...
View Articlereimporting at runtime?
I know how to reimport an asset from the editor if I accidentally screw it up(right click and select "reimport"), but I want to do from a script, because my script involves screwing up an asset. Is...
View ArticleDifferent Camera changes work against each other?
So in my Camera script, I have two separate, for lack of a better word, *functions* that allows you to zoom as well as move your camera around. (Both of them are in the update function, so just...
View ArticleProblem with continuous animation on instanced object
Hello! I'm having a problem with the animations of the helicopters of my game. The helicopters are all instancies of a prefab. They have two animations: one for the take off, and one for the rotation...
View ArticlePassing a variable to other Players
In my game I need to share a variable (a Seed to generate a Map) to all other Players connected, I already wrote a sort of code but it doesn't seem to work, what's wrong?: using UnityEngine; using...
View ArticleTop-Down Jumping (2D)
I'm making a top down 2d game, and am struggling with adding a jump to my character. I want the character to be able to jump over holes and low obstacles (but not high ones). Essentially something akin...
View ArticleHow to make an object with diffrent audio sources.
Im creating a game with a ball. When the ball touches the ground it makes one sound. Now what I want to do is to make that ball make a sound when its on ground and its velocity is greater then 0. What...
View Article2D destruction? help?
I'm making a rts spaceship styled game i have a sprite (form unity 4.3) of my spaceship and a sprite of a meteor. Right now i have the meteor crashing into the spaceship but i want some kind of random...
View ArticleHow to pull out weapons with Number buttons
I was wondering how to pull out weapons with number buttons on the keyboard. For instance you hit 1 to pull out a sword or something and then hit it again to put it away. there's going to be multiple...
View ArticleHow to generate Blocks like Terraria (2D)
Hey guys, I'm making a Terraria + Castlevania SotN mix, got Characterstats, Inventory, etc. done. When reaching the point where I have to create the world the player will be wandering, I just made a...
View ArticlePause Menu open/close with one key
Hello, I got a little problem here. I know why the code doesnt work, but i dont know how to get around this problem. I want to use the same button to open and to close my pause menu (escape). The...
View ArticleWhich way is a better solution for UI creation?
Hi, i am wondering that which way would be a better solution for ui creation.Currently i am using 3d objects as buttons and for such things.Never used gui textures for the time being.Now i am wondering...
View ArticleHow to make a simple menu button with C Sharp
Hi, I'm very new to unity and coding and I have to make a simple game for my uni course. All I want is a to make a button on the main menu that when clicked will load the level. I've made the menu...
View ArticleCan you use ROCCAT Talk in Unity?
I just got my Roccat Ryos MK Pro and I've seen that you can use the light in the keyboard as a health or mana bar. As i'm fairly new to Unity and game development can anyone help me with this. They...
View Articlemake a rigged character gun point to a target without ik
Hi, I'm trying to make a tactical turn based game, like Silent Storm and Jagged Aliance2. The thing is going forward nicely. But, i'm constructing the accuracy and shooting system as follows: I've the...
View ArticleDialog system in c#
Iv been working on a simple dialog system only form some reason the next line in the conversation wont come up. I think its something to do with me trying to use GUI labels. Here is the code: public...
View ArticleCamera rotation script logic error?
I believe I have a logic error in my script. I want to make the camera rotate, and I screwed up. Here's the script; using UnityEngine; using System.Collections; public class cameraController :...
View Article