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

Should I use Bloom/Flares for this?

In this video, http://youtu.be/MT7wJq50n1Q?t=51s You can see that the spaceships have very nice looking flares and bloom effects from their thrusters. How did they implement this? Is Unity Pro required...

View Article


How to draw triangles with coordinates

Hello. I have set up a 3 dimensional array, which is used to "cover" the whole map with a 3d grid. The array is Boolean, so each coordinate is turned on or off. I want to make it so whenever an area of...

View Article


Problem with unity cube character

Okay, so I have a two huge problem. I created a character in unity out of cubes (much like a minecraft character). The picture is below. I would like to use this as my player. The first problem is that...

View Article

How can I optimize my billboard leaves on trees?

I have this code for making each leaf on my tree look at the camera: using UnityEngine; public class Billboard : MonoBehaviour { private Transform m_transform; private Transform m_camTransform; private...

View Article

How would I create a script that spawns objects more frequently as time goes on?

For my game, I have an enemy that works perfectly. Now how would I make a mode, in which the enemy spawns maybe 1 for the first minute, then 20 at the twentieth minute. So that every minute, the spawn...

View Article


GUI.BeginScrollView ignoring each GUI.Label element?

Hi Everyone! I'm having some slight difficulty with a script of mine. I'm writing a coloured chat box which works very well, the issue is, when a new chat message is added, the scroll view seems to...

View Article

Raycast is not being called

In the game im making, the player is being chased by bulls. i'm trying to make one wild bull hit a pedestrian(NPC) on the road by making a raycast. The problem is that the raycast is not being called....

View Article

How to offset a legacy animation's playback?

Hey again, I have another question. Can I possibly offset a legacy animation's playback by half of its length? I need to do this because I am making a blending locomotion system for my character, and...

View Article


Input.GetAxis always return 0

I have the following piece of code that am running on my Mac Pro with trail version of Unity 4. I am quite new to unity and game programming and maybe am missing something very obvious so any help is...

View Article


3rd person controller - stopping animation on death

I am looking for a good technique to stop the looping idle animation after I play my death animation on a 3rd person controller. Currently the character dies and falls over, but then bounces right back...

View Article

ProfileUtility.InstantiatePrefab returns null in Unity 4

I'm working on a tool that will build a 2D level based on info from a text file. When the text file is imported, I want to create instances of the game objects that retain their connection to a prefab....

View Article

objective-c method call from unity

Hi, I'm trying to call an objective-c method from unity using C#. I'm using the plug-in method described here. I can get this method to work if I include my header and mm files directly in the Unity...

View Article

How I make a road collider?

Hello everyone! I'm making a game in unity and I do not want my car goes off the road, in the unity car tutorial the track have a road collider, I want to make a collider like that, someone could help...

View Article


Hello everyone, I want the enemy to not look at the enemy while shooting here...

var player : Transform; var safeDist : float = 15; var currentDist : float; var shooting : boolean = false; var bulletFab : Rigidbody; var gunTip : Transform; var power : float = 1000; var shotDelay :...

View Article

Make an Object Look At Target Y Axis

I'm trying to make my player look at ball but he never looks exactly the direction of the ball he always gets a little crooked what should I do to him exactly look toward the ball? Quaternion rotation...

View Article


Does CombineMeshes concatenate vertices, or concatenate references to vertices?

Hi guys, I am proceduraly building a spherized cube based on a number of edges on a corner. However after all of the building/moving of vertices, my submeshes are flat. I know my function to modify a...

View Article

Strange error with animation: "Time is out of range"

Hello, the thing is I have a character controller script that works with Rigidbodys, once I had it completely coded, I wanted to add animations. I started with the "Run" and "Jump" animation... So this...

View Article


Check if collider is colliding with anything non specific?

Well, is it there a nice way to see if an object is colliding at all? With any object at all. Like a IsColliding() or something like that? Not a specific object. I just want to know "Is something...

View Article

Why can't I get my scripts to communicate without getting a...

Basically, when a button is pressed, if the player is called on to do so, he should either earn points or take damage. This is my first scripting attempt, and even though things seem simple enough, I...

View Article

How can I detect Actors which will cause the "Compute mesh inertia tensor...

Our project has a few of these: Actor::updateMassFromShapes: Compute mesh inertia tensor failed for one of the actor's mesh shapes! Please change mesh geometry or supply a tensor manually! I've read...

View Article
Browsing all 171066 articles
Browse latest View live


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