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 ArticleHow 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 ArticleProblem 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 ArticleHow 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 ArticleHow 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 ArticleGUI.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 ArticleRaycast 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 ArticleHow 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 ArticleInput.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 Article3rd 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 ArticleProfileUtility.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 Articleobjective-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 ArticleHow 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 ArticleHello 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 ArticleMake 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 ArticleDoes 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 ArticleStrange 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 ArticleCheck 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 ArticleWhy 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 ArticleHow 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