Quantcast
Channel: Latest Questions on Unity Answers
Browsing all 171066 articles
Browse latest View live
↧

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 Article


destroy 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 Article


Unity 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 Article

Unity 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 Article

reimporting 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 Article


Different 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 Article

Problem 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 Article

Passing 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 Article


Top-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 Article


How 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 Article

2D 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 Article

How 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 Article

How 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 Article


Pause 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 Article

Which 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 Article


How 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 Article

Can 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 Article


make 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 Article

Dialog 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 Article

Camera 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
Browsing all 171066 articles
Browse latest View live


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