Unity is a highly cross-platform engine that focuses on easy art pipeline process and uses Mono as its scripting back end.

learn more… | top users | synonyms (1)

0
votes
0answers
173 views

Box2D Soft Body Wheel in Unity3D

I was watching this video made with IForce2D, its about creating soft bodied wheels in box2D. http://www.youtube.com/watch?v=F-aDMZUVw0c I wanted help in being able to increase the Radius of the ...
0
votes
6answers
227 views

Quaternion Lerp never reaches target

I seem to have misunderstood something about how LERP works. Im not sure what is missing. The object is rotating as it should, but it cant seem to get it to end. The transform.rotation dont seem to ...
2
votes
1answer
203 views

Paint with soft brush (logic)

During the last few days I was coding a painting behavior for a game am working on, and am currently in a very advanced phase, I can say that I have 90% of the work done and working perfectly, now ...
1
vote
0answers
124 views

Consequences of running a Unity APK on Intel processor driven Android devices?

As more Android device manufacturers will be implementing Intel processors in the future, this question might be interesting for everyone who wants their Unity games to run on these devices. I ...
2
votes
1answer
176 views

How do I make an object face the mouse position, but only on one plane?

I want a game object to turn and look towards where the mouse was clicked (in world space). It works well when considering all 3 dimensions, but I really only care for the plane formed by the x and z ...
0
votes
0answers
38 views

VertexColor shader is not working correctly in built application

I want to change the vertex colors of my mesh. The light sources must not affect the objects with this shader, its lighting must be determined only by its vertices colors, so I turned the Lighting ...
0
votes
3answers
227 views

Applying a torque to a different centre of mass

In Unity I have an object with a circle collider attached to it and when I apply a torque to this object's rigidbody2D, it rotates as expected. However, I have now attached a sub-object to this object ...
0
votes
0answers
25 views

ColorMaterial:AmbientAndDiffuse equivalent for CG\HLSL

I have this shader written on shaderlab, which replaces Ambient and Diffuse values of the material, because I need to tweak vertices colors from the script. Shader "VertexSimple" { Properties ...
2
votes
2answers
190 views

How can I support many point light sources in a dynamically-generated level in Unity?

I'm currently working with a dungeon game which is similar to Dungeon Keeper by Mythic Entertainment. I'm using Unity and developing this game for Ipad 2 and above. Player can modify his dungeon, and ...
0
votes
1answer
651 views

How do I get parabolic movement in Unity using Rigidbody2d?

EDIT: It was the Animator after all. Apply Root Motion basically nullifies any physics based work. I "know" this answer but I can't figure out what can possibly be wrong. My code is in FixedUpdate(). ...
-1
votes
3answers
356 views

Move player to mouse click

Im hopelessly not good at algebra and such. But im trying to learn. I want to learn and understand how to use it in game programming rather than modifying snippets or using classes that do it for me. ...
-1
votes
1answer
75 views

How can I use a Unity C# script simultaneously in a non-Unity Linux program?

I have a C# script inside a Unity project. I'd to both keep using the script in this Unity project, and to use it to compile a non-Unity Linux daemon. So I would basically need to create a new Main ...
-4
votes
3answers
133 views

Is it possible to develop a game using only 3DS Max?

My team is going to get involved in a project and we are researching to decide on whether to reject one particular project. It is a car simulation like a 3D driving simulator. I know we should use ...
1
vote
1answer
406 views

How to crop or mask a sprite to a specific shape in Unity (2D)?

I'm trying to do a procedural 2D terrain generation. I've managed to make the function to generate the points, and I've been testing/debugging by creating the terrain using a 2D polygon collider on an ...
1
vote
2answers
605 views

2d metaballs with shader to give blobs of water effect?

I want to simulate blobs of water in a 2d game in Unity3d. One possible way of doing it is to use 3d metaballs moving in a 2d plane though this is very processor intensive. Do you think it would be ...
-2
votes
1answer
74 views

How to import .fbx MODEL into Unity Project?

I created new Project in Unity. I downloaded .fbx file from internet, it looks like as give in image. How can I import .fbx into Unity Project. I am beginner and this is my first Unity Project. ...
4
votes
1answer
930 views

Multiple resolutions for Unity 2D Android game

I'm trying to target as many devices as possible by providing a consistent experience. So I'm trying to make sure the aspect ratio fits each device it's played on. After reading some forums and ...
0
votes
0answers
139 views

NavMesh agents pushing other NavMesh Agents in Unity Pro

Using the NavMesh system in Unity, I created pathing system for my player character as well as the enemy AI. When a group of enemy NavMesh Agents surround my player character, they can be pushed out ...
1
vote
2answers
209 views

Retrieve variable from another class and send to another scene in Unity

Sorry for asking a noob question, but I have never used c# in Unity, only unityscript. Basically I have a public int score variable stored in Players Class. I need to retrieve it in the following ...
0
votes
1answer
158 views

theoretical solution for “drawing” with mask

So am trying to create a make-up game and i need to have a basic drawing solution, and so far i have made a good progress with the help of the DepthMask solution My approach was like this : suppose ...
2
votes
1answer
136 views

Marching cubes density function: noise sampling leaves holes in plane

I'm following the GPU Gems 3 chapter 1 (Generating Complex Procedural Terrains Using the GPU). The main difference is that I'm using the CPU for generating the mesh(es) based off of marching cubes. ...
1
vote
1answer
316 views

Using Unity 3D in LibGDX

Is it possible to use Unity 3D engine with LibGDX when making Android game apps? Is it also possibly used for making 2D games using Unity 3D and LibGDX? I would like to know if it's possibly ...
1
vote
1answer
263 views

Are prefabs the only way to dynamically build a world in Unity?

I'm trying to understand how to setup my Unity prefabs and scripts to dynamically spawn a series of "encounters", with each encounter containing several GameObjects. For example, imagine spawning the ...
2
votes
1answer
102 views

Unity Get corners of camera in world space

I'm making a 2D game and i need to get the corners of the camera in world cordinates. Is this possible in unity?
0
votes
1answer
153 views

How to stop transform.position from being modified when adding child object in Unity

I suspect there is a well-known and easy to explain reason for the behavior I'm seeing, but I am having difficulty explaining it. (And likely not able to Google for the answer.) When adding a child ...
2
votes
1answer
329 views

Unity3d Run In Background setting not working in fullscreen standalone

I've ran in to an odd issue with my Unity3D game completely pausing in certain scenarios, even with the Run In Background player setting on. For reference I'm on Windows 7 Ultimate using Unity 4.3.3 ...
0
votes
2answers
141 views

Use both AddForceAtPoint and change velocity property?

I'm using Rigidbody2D for some game objects. It seems that when I AddForce() or AddForceAtPoint(), the game objects are mostly affected on the Y axis and hardly at all on the x axis. I don't ...
8
votes
1answer
396 views

What is the difference between Unity's Sprite and Texture2D classes?

Unity has both a Texture2D class and a Sprite (with related SpriteRenderer). What is the difference between these two classes? Both represent an image, for 2D games should I favor one over the other? ...
1
vote
0answers
74 views

How to keep two objects in the same zone when they collide?

I made a zone, cylinder with zero height. When one sphere moves to that zone it is fine but if another one moves to same zone will show just one sphere. I tried to add rigid body for each sphere but ...
5
votes
2answers
268 views

How do I access the “product name” in Unity 4?

I would like to access my app name in a Unity C# script; I've found PlayerSettings.productName, however it requires UnityEditor, which is only available in the editor. So, in a normal application, ...
1
vote
1answer
2k views

How can I programatically generate sprite instances in Unity?

I want to create a block-based puzzle game that generates blocks as they are required, however I cannot seem to find any good imformation on how to do something like this using Unity's new sprite ...
0
votes
0answers
108 views

Unity WebPlayer : WWW GET Requests fail in webplayer only, not in editor

My question is about my game requesting data from my server-side cloud-based storage (I have the option of free public Dropbox or Amazon S3) via GET and the WWW class, and it not working only in the ...
-1
votes
1answer
100 views

Trying to access another class that is outside my Unity script but casting is failing

I am trying to reference a class that is outside my unity script using GetComponent. private FlyThroughCamera camera; void Start () { camera = GetComponent(typeof(FlyThroughCamera)) as ...
0
votes
1answer
153 views

My method for switching between cameras in Unity does not change the main camera

I would like to be able to switch between a variable number of cameras in my scene. The common approach requires toggling the active camera's 'enabled' property to true and setting the others to ...
0
votes
1answer
79 views

Creating a textured object infront of the current character in unity 3d

I've spent about half a day trying to get my head round this and i'm not having too much luck, essentially what I want to do is play an animation and then once the animation has finished create a flat ...
6
votes
2answers
460 views

Animation Workflow from Blender to Mecanim in Unity 3d

I've recently started learning Unity and one of the things that's really really slowing me down is not being able to add custom animations to the standard FBX's you get from unity's app store. When I ...
2
votes
1answer
447 views

Understanding Torque in Unity

This is (hopefully) a simple question that should avoid me asking a more complex question. This is in Unity (2D) but hopefully this is a general physics principle I am not getting. I am applying a ...
-1
votes
1answer
174 views

How can I load all of my scenes at startup?

I want all of my scenes to load when the loading screen is shown (but only one should be shown at a time) so I can switch between them quickly I have tried this: if ...
1
vote
1answer
544 views

Additive “Sprites/Default” shader

The Sprites/Default shader multiplies the color with the provided tint, while I need to add it instead. I fixed this copying the shader (taken from here) and simply changing the line return ...
-1
votes
1answer
331 views

No collision detected with 2D rigidbody

No collision detected with 2D rigidbody 0 I have a ZombieBoy with a circle collider2D and a box collider2D and a RigidBody2D . The player shots energy balls which has a Circle Collider2D and a ...
0
votes
2answers
620 views

Why would Rigidbody.AddForce not resulting in movement of my objects?

I'm trying to get my card objects to spread out randomly but nothing happens. I know the method is called cause I get the prints in the console for each card. But they don't move. No errors reported. ...
2
votes
1answer
89 views

Getting the rightmost point of gameobject

How do i determin the point on a gameobject that is most to the right (highest x value).
1
vote
1answer
414 views

Shader which supports vertex colors and pixel lights?

From my question at Unity Answers: Hello everyone, I'm facing a bit of a problem here: I need a shader which has the ability to colour individual vertices and be lit pixel by pixel. Until recently, I ...
4
votes
1answer
250 views

How to store and parse story actions in XML

I been working on a game in Unity that reads its story (Actions, scene descriptions, NPC's, ect...) from an XML and have been wondering there was a better way to store actions based on player data ...
2
votes
3answers
151 views

Strategy for detecting hits from a “cylinder ray”?

I was planning on using ray casting for collision detection in my game. However, when I use an attack similar to this: (which would project something like a cylinder), how would I go about ...
0
votes
2answers
132 views

character and camera not moving in the same speed

the two scripts below do the similar things, get the key press and calculation the direction after the direction calculated, they multiple with the same speed, say 0.05f, while the character and the ...
0
votes
0answers
394 views

Dragging an object by touching on Android

I am trying to move and object by touching it and dragging. I am testing it on my Samsung Galaxy SIII. I have used the following code. For some reason it moves faster than my finger. It should always ...
0
votes
2answers
113 views

Rotate GameObject on click

I'm trying to get a card to flip when clicked but the flipping only works the first flip. While debugging, I can see that OnMouse is called every time I click. public class CardController : ...
4
votes
2answers
165 views

Determining which edge of a box was clicked in Unity

How would I go about figuring out which edge of a box is clicked in Unity? Quick image I created, colored in boxes represent edges on a face I would like to check for. The current solution I have ...
1
vote
1answer
509 views

Is there a way to display navmesh agent path in Unity?

I'm currently making a prototype for a game I plan to develop. As far as I did, I managed to set up the navigation mesh and my navmeshagents. I would like to display the path they are following when ...