Unity is a cross-platform game creation system that focuses on easy art pipeline process. It consists of a game engine and an integrated development environment. The game engine's scripting is built on Mono.

learn more… | top users | synonyms (1)

2
votes
1answer
9k views

most efficient way to create a grid system in unity

I'm creating a little tower defence game to get myself acquainted with unity. At first I was going to emulate a grid system by capturing touches / mouse clicks and rounding the coordinates to the ...
2
votes
1answer
748 views

Why can't I expose a Plane variable in my unity script?

I've got a script which creates raycasts. I wanted to use the (presumably less expensive) Plane.Raycast rather than the GameObject.Collider.Raycast (because the gameobject one has a distance parameter ...
1
vote
4answers
913 views

Does Unity Pro Play Nice With 'Small' Teams

Does anybody know how well Unity Pro plays well with-in small teams? Our team makeup is 2 programmers, 1 audio, and 2 graphics peps. How easy is it for somebody to mess up a Unity project? The ...
2
votes
2answers
3k views

Creating an object in javascript with unity (unityscript)

So I have a ton of experience with JavaScript (its what I do for a living) but I am new to unity. I have built a game engine in javascript but now want to move it over to unity. I have been trying to ...
0
votes
2answers
3k views

Unity3D: Touch and Objects have different coordinate systems

I would like to associate the same script to different empty objects I just use as placeholders in the game. The aim is to exploit their positions so that when the user touch a point in the screen, ...
0
votes
1answer
350 views

Unity3D - different object with the same mesh imported from Blender

I would like to instantiate different objects (i.e. poker chips with different values) that actually share the same mesh imported from blender. To this end I have copied the assets and changed the ...
3
votes
5answers
3k views

Why do my point lights disappear when another nearby light is above 1.85 range?

I'm making a game with a dungeon setting in Unity 3D. Many torches line the walls. I'm using a point light over each torch to simulate the flame. However, when two torches are across from each other, ...
2
votes
2answers
246 views

How can I store a set of concrete components and implement “GetComponent<T>()?”

I would like an abstract class, AbstractComponentAggregate, which has many AbstractComponents. Users of my framework will create their components by extending AbstractComponent and appending the ...
5
votes
2answers
3k views

Keeping the camera from going through walls in a first person game in Unity?

I'm using a modified version of the standard Unity First Person Controller. At the moment when I stand near walls, the camera clips through and lets me see through the wall. I know about camera ...
0
votes
2answers
5k views

Check collision between instantiated objects?

I am using a script to instantiate multiple objects having rigidbody with different velocities at different positions. I want to destroy two or more objects when they collide, but I'm not getting ...
6
votes
2answers
15k views

Resolution problems when porting a Unity game to Android

So, I'm porting a game to the Android for the first time in Unity3D. And I've run in to a few problems along the way. My current problem is the resolution doesn't seem to be right, it cuts off the ...
0
votes
2answers
2k views

How to Translate and Position at the same time?

Hi I'm having problem Translating and Positioning at the same time e.g take example of retro spacecraft shooting games in which your spaceship moved in x-axis automatically and you just needed to ...
0
votes
1answer
105 views

Help figuring out how to build for the iOS Unit3D

So currently I'm exporting my game strictly for testing to the iOS (iPad.) I don't own a Mac, so I'm having my client make a build from his Mac, but that means I need very specific instructions for ...
1
vote
0answers
3k views

Building for the Android errors Unity3D [closed]

EDIT: After doing some research on my own I found that by deleting the debug.keystore file everything fixed itself. So currently I'm exporting my game strictly for testing to the Android. However, ...
4
votes
1answer
720 views

How do I determine the position of one vector relative to another?

I'm making a game for Kinect in Unity which tracks hand movements. I have the player's root position and the position of their fist stored as 3-dimensional vectors (Vector3 in Unity), but they're both ...
0
votes
2answers
2k views

Making a Point Light follow a cube (Unity)

I'm trying to have a point light positioned directly above a cube follow wherever the cube goes. However, it doesn't move at all. This is my code for the light: using UnityEngine; using ...
10
votes
2answers
2k views

Unity Occlusion Portals: What and How?

(Here I eat my words on Meta about posting Unity questions on Unity Answers... since that site is less responsive than this one.) Unity provides cell-based Occlusion Culling (via Umbra, I believe). ...
1
vote
1answer
1k views

Creating thrusters on a ship in Unity3D

So, I'm using the legacy particle "small flames". Basically what I want it to do is always emit below the ship, so when the ship turns and such it still looks like the thrusters are firing. I know ...
2
votes
2answers
805 views

Getting one rigidbody to follow another, but still react to stuff Unity3D/C#

Basically what I'm doing is having a ball you can pick up and drop on a ramp. When you pick up the first ball, the second ball follows close behind, and when you drop the first ball on to the ramp the ...
3
votes
1answer
4k views

Unity3d vector and matrix operations

I have the following three vectors: posA: (1,2,3) normal: (0,1,0) offset: (2,3,1) I want to get the vector representing the position which is offset in the direction of the normal from posA. ...
7
votes
2answers
2k views

Billboard rendering without distortion?

I use the standard approach to billboarding within Unity that is OK, but not ideal: transform.LookAt(camera) The problem is that this introduces distortion toward the edges of the viewport, ...
1
vote
2answers
4k views

After building a .exe file game view does not show whole viewport

So, I went to build a game today in a .exe, and when I build it, it doesn't show the whole viewport as it does in the unity engine itself. So the game is cut off. It does this no matter what I do. ...
11
votes
3answers
752 views

Does Unity have existing support for Timelines?

I am planning the development of a game in Unity3D, and trying to come to terms with what the engine has already provided, and what I must code myself. The game itself is going to be a rhythm game, ...
2
votes
3answers
2k views

How to make a ball fall faster on a ramp?

So, I'm making a ball game. Where you pick up the ball, drop it on a ramp, and it flies off in to blocks. The only problem right now is it falls at a normal speed, then lightly falls off, not nearly ...
0
votes
2answers
1k views

Unity3D 3.5 pro - Moving the camera vs setting draw distance

I move the camera mostly via right-click + WASD, sometimes with [shift] if I want it to move faster. Occasionally, instead of moving my camera, it alters the draw distance / FOV / some visual aspect ...
2
votes
1answer
599 views

Getting a sphere to roll down a .FBX object Unity3D/C#

I'm working on a little ramp and ball game in Unity, I modeled the ramp outside Unity and exported it to a .FBX file, then I imported the ramp in to Unity. I set up the ball and ramp, both have ...
38
votes
2answers
4k views

How to render realistic ice?

I am trying to write an ice shader in Unity that looks good and at least semi-realistic. If the following shot (found on Google) was CG, what would its shader include? (the foreground cave). I might ...
14
votes
4answers
13k views

Unity 3D engine for Ubuntu?

Is there any way to get Unity 3D to run on Ubuntu. I am currently running Ubuntu 12.04 64bit edition. I also have Wine installed.
2
votes
3answers
4k views

How do I get this effect in Unity3D?

Here is a mockup of a main menu screen I'm trying to put together in Unity. I'm clueless as to how I should go about creating the blue glow on the left of my menu options. Can somebody point me in ...
12
votes
1answer
4k views

Procedural Mesh: UV mapping

I made a procedural mesh and now I want to apply a texture to it. The problem is, I cannot get it to stick the way I want it to. The idea is to have the texture painted only once over the whole ...
3
votes
4answers
3k views

IOS OpenGl transparency performance issue

I have built a game in Unity that uses OpenGL ES 1.1 for IOS. I have a nice constant frame rate of 30 until i place a semi transparent texture over the top on my entire scene. I expect the drop in ...
2
votes
2answers
3k views

Creating natural environments that can run on lower end computers in Unity3D/C#

So, I'm starting work on a project soon that will require me to create realistic environments that can preferably run on PC's besides high quality ones. The goal is to get as real an environment as ...
4
votes
1answer
3k views

Starting a Java activity in Unity3d Android

I wrote a small Java activity extension of UnityPlayerActivity similar to what is described in the Unity docs. It has a method for displaying a song picking interface using an ACTION_GET_CONTENT ...
4
votes
1answer
2k views

How to create a 3D world with 2D sprites similar to Ragnorak online?

As far as I know Ragnorak Online is a 3D game world with 2D sprites overlayed. I would like to use this style in a game I am making in Unity, so I would like the player to be able to select little ...
0
votes
3answers
2k views

Parent variable inheritance methods Unity3D/C#

I'm creating a system where there is a base "Hero" class and each hero inherits from that with their own stats and abilities. What I'm wondering is, how could I call a variable from one of the child ...
6
votes
2answers
6k views

How do I make my character slide down high-angled slopes?

I am currently working on my character's movement in Unity3D. I managed to make him move relatively to the mouse cursor. I set a slope limit of 45°, which does not allow the character to walk up the ...
1
vote
0answers
438 views

Unity surf shader not rendering [closed]

I have created a default surface shader in unity and added a texture but it is not rendering. If i switch to a diffuse shader i see the texture but my shader is just black. Shader "TestShader" { ...
-2
votes
2answers
1k views

Unity 3D vs openGL [closed]

i'm interrested in starting to learn abit about graphics programming through game development and i'm wondering what the pros/cons are when using Unity 3D over using something like C++ & openGL
12
votes
2answers
3k views

How should I account for the GC when building games with Unity?

*As far as I know, Unity3D for iOS is based on the Mono runtime and Mono has only generational mark & sweep GC. This GC system can't avoid GC time which stops game system. Instance pooling can ...
2
votes
2answers
504 views

Unity: Is there a way to edit a Skin file?

My project has multiple skins and sometimes we have to deal with skins with many custom styles. Editing them in the editor is difficult, for instance, I cannot delete one style that is not the last ...
4
votes
1answer
2k views

Unity3D GUI - what exactly it does when create controls and check their statuses?

On unity3d website in the manual on this page: http://unity3d.com/support/documentation/Components/gui-Controls.html I found an example of "GUI.changed" function usage(below). And it looks like it ...
2
votes
5answers
4k views

How to make something rotate a certain amount over an exact amount of time

I'm trying to make a plane rotate down a certain amount and 180 degrees horizontally over 2 seconds. Basically I want it to take the plane 1 second to rotate to a horizontal-facing angle, then take ...
2
votes
1answer
3k views

Game 30% done on HTML5. Maybe it was a bad idea. Should I change to Unity3d? [closed]

I'm creating a 3d game on HTML5. It's 30% complete and the hard part is already coded. The server is on node.js.Now I'm realizing that maybe it was not a wise choice. This is because I realized: ...
2
votes
1answer
511 views

2d game with png sequences slowing on Unity3d

We are building a tower defence game,In which enemy movement is done through sprite sheets as well the tower rotation is also done through sprites...every tower and every enemy has its own script ...
5
votes
3answers
5k views

Can I make a mirror with Unity Free?

If I understand correctly, render textures are a feature of Unity Pro, and that is the best way to create mirrors, TV screens, and so forth. If I am wrong, please tell me. What I would like to know is ...
5
votes
1answer
2k views

(Why) Should I choose Unity 3 or Cocos2d (or something third) for my app? [closed]

My colleague and me made an HTML 5 iPad game ( http://braille.gandzo.com/ ) and we would like to upgrade it, and our framweork is not enoguh, for what we want. Some of the things we would change are: ...
5
votes
3answers
7k views

A game engine like unity but for 2d [closed]

I really like the convenience of unity3d. The ability to edit the level and see my results in real time are great. My problem is the idea I want to implement is 2d and uses 2d sprites. Scaling ...
2
votes
1answer
5k views

Collision intepenetration and objects getting stuck (Unity)

I am having what is probably a newbie problem with Unity, but for the life of me, I can't find a decent solution to it. In short: my rigid bodies collide, but sometimes, they interpenetrate and stay ...
3
votes
1answer
255 views

Can a 3g network work for this project and is my understanding correct?

I want to make a game for the android phone using unity. As you can tell by my last post i wanted to use networking to make this happen. I decided unity would be a good choice and in no time i was ...
1
vote
1answer
4k views

Looking at the mouse position in a top down Unity game?

I'm trying to make a simple top down game where the player looks at wherever the mouse is pointed. The player is only going to rotate on the Y axis. Here's what I have so far but I can't seem to get ...