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

Disable console or specific message(s)

Hi, I'm getting the "Shader wants texture coordinates, but the mesh doesn't have them" information message in the console, and I was wondering if there is a way to disable the console temporarily or...

View Article


Using arrays to randomly select an object

Hi there, I'm a newbie scripter and I'm trying to figure out how to have a script select a random object (say, every few seconds). I have 3 cylinders (let's call them Tube1, Tube2, Tube3, 1 of which...

View Article


Can't get Sound working but music is fine

So I have the background music playing and hooray for that. However I can't get the one-shot sound effects to work as they are supposed to. public AudioClip caughtGood; public AudioClip caughtGold;...

View Article

InputManager, Gamepads, Wheels: remapping and calibrating

My current project will benefit from uniform support for Keyboard, Gamepad, and Racing Wheel, but I am at the mercy of the InputManager and the controllers which map their axes in different ways. I...

View Article

Unassigned Reference Exception

I have been getting this error when I try to run my code for switching cameras. I don't understand why it is telling my that the variables are null, as I have other variables assigned similarly....

View Article


Are the AAA games with city scapes using...? (about shaders)

So, games like GTA4, and Spiderman, are they using normal maps on their building windows? or just specular maps? If they are not using normal maps for window indentation, then they are using real...

View Article

Unity 3d Bootcamp: Collision between bullets and barrels.

I'm trying to reverse engineer the bootcamp project in Unity. So far, I was able to import the soldier prefab into my game and get him moving about. He can shoot and fire grenades. The grenades seem to...

View Article

any way to access unity's IK solver outside of animation context?

I'm trying to enable a player to pose a character. Say they grab the characters foot and move it; I need the IK to bend the knee. I'm just getting started looking at unity 4 and Mecanim, but from what...

View Article


Pooling AudioSources + AudioClips

So I'm concerned about how to go about implementing audio into my app; I'd rather get it done correctly the first time then have to fix something horribly broken later on. So I have these following...

View Article


How to make an object glow? (I have toon shader)

I know how to use `void OnMouseEnter`. Whenever I put my mouse over a door for example, I want it to glow green. How do I make it glow? Also, I am using the toon shading shader that comes with unity....

View Article

Rotation of GameObject w/ no movement

2D top down game. All movement is in the X and Z axis and rotation is in Y axis only. I am using a GameObject with a Sphere Collider and a RigidBody. The RigidBody is set to be Kinematic. I am manually...

View Article

Door that changes level on character collision script help?

So i really want to implement cave entrances in my first person game. However i cannot seem to figure out how to script my cave entrance object to bring me to my desired level when i walk into it. The...

View Article

Check if key is pressed once

So what i want to do is if i pressed a key down once, a boolean should change to true/false. It seems i'm having problems with just this simple task. So GetKey updates always as the key is down, while...

View Article


Why wont this delete the object?

Hello unity answers. This could be a 'dumb' question, however it is really bugging me. var time = 120.0; function Start () { yield WaitForSeconds(time); GameObject.Destroy(this); } Doesn't this wait...

View Article

Crosshair possible with mobile flying game?

I've been looking around quite a bit, thinking and trying things and I want to have it to follow the yaw of the ship, or the direction it's facing but it seems impossible right now. I am using nGui,...

View Article


Climb animation is glitchy and isnt working properly

I have my first person controller approach a wall. When i sprint and collide i want the character to climb animation. It works and plays the animation but it plays it in the wrong spot, not relative...

View Article

footstep sound

Hello ,i nead help to play the sound of footstep ,i wrote this code but it looks like it's playing in a loop .i just want to play the sound one evry the file length float vertical =...

View Article


How to add explosion after shot

public var lifeTime : int = 1; function OnTriggerEnter () { Destroy(gameObject, lifeTime); } Hi guys, I created a 1st person controller with a gun, and its shooting and working fine, and killing my...

View Article

Change vertex color of mesh on z axis

Hi! I wonder if anyone can help me with making it so that the color of my vertex colors, darkens the further along the z axis it is, having 0 as the neutral point. Right now i am trying with whatever...

View Article

2D Parallax Scrolling

Hey everyone, I was wondering how I could achieve the same sort of parallax scrolling effect with bounds as can be seen in: https://www.youtube.com/watch?v=2JBIfiDrv64. I am pretty new to Unity but far...

View Article
Browsing all 171066 articles
Browse latest View live


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