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)

3
votes
2answers
3k views

Understanding marching cubes and voxel data relationships

in case it matters i'm doing all this in unity with C# ... I think I missed something or maybe don't understand the logic correctly. I have an existing voxel engine that looks very "minecrafty" at ...
2
votes
2answers
660 views

Relative cam movement and momentum on arbitrary surface

I have been working on a game for quite long, think sonic classic physics in 3D or tony hawk psx, with unity3D. However I'm stuck at the most fundamental aspect of movement. The requirement is that I ...
1
vote
4answers
461 views

Maintaining frame rate while using many High Resolution models

I have shelves "made of" steel rods as a 3D-file. So a lot of virtual metal rods make up a cage. When cloning this in unity a few times even my fast computer can only show this in a choppy way. But ...
3
votes
2answers
636 views

Discover x,y coordinates given set arc distance and rotation

I have a turn-based car simulation. My vehicles have a maximum speed they can travel in a round, as well as a maximum amount they can change their heading over the course of a round. Say, 20 meters ...
13
votes
2answers
3k views

How to blend two cameras when traveling through a portal in Unity3D

Before I get to my question, I know the most obvious solution would be to use the normalized view port rect, however I need more complex shapes than a rectangle, and I've looked in to using the view ...
3
votes
1answer
967 views

How to optimise mesh data

So i have some procedurally generated mesh data and i want to reduce it down to its minimum number of verts. In case it matters this is a unity project. Working on the basis of a simple example, ...
-1
votes
1answer
371 views

Asynchronous Game server [closed]

I am building an asynchronous multiplayer game (which can be compared whith a chess game) with Unity (up to 4 players in game). But I am stuck at choosing the server side solution. For me this kind of ...
0
votes
1answer
476 views

Puzzled about game mods

I'm new to game development. I was thinking of different ways to create a game. I discovered Unity3d as much preferred indie game engine and yet so powerful. Then I read about game mods, which I found ...
1
vote
1answer
390 views

Defining a random irregular shape in a bool array

I need to find out how to populate an array bool[x,y] with a random filled shape. lets say I want a triangle depicted in my array i would define an area within the array and set all points to "true" ...
4
votes
1answer
525 views

Why game engines usually don't offer a vector3.rotate method? [closed]

Game engines like Three.js, Ogre3d and Unity3d often don't provide a default rotate method on their vector class. You usually have to do something like: rotated = vector.applyQuaternion( new ...
1
vote
1answer
509 views

How to Animate a Mechanical Model to work with Unity's Mechanim?

I made a relatively simple model in 3D Studio Max to be used in a game. It's a simple stationary laser turret with an openable maintenance hatch. I want to use Mechanim to handle the animation states. ...
2
votes
1answer
2k views

Pausing and resuming in Unity

I've been writing this code quite late so please bear with me. I'm trying to pause the game and show a menu when I'm inside a collider and then when i press a key it should unpause the game and ...
1
vote
1answer
190 views

Can Cruncher crunch Daz models?

I have a number of Daz 3D models that I would like to use in my Unity shooter game. The only problem seemed to be the high poly count of the Daz models. However, I just came across the Cruncher ...
1
vote
1answer
332 views

Player positions in a race game through arrays or…?

First time posting on these forums so go easy on me! I've been programming a race game which has been going quite well. I've just discovered now how hard it is to set up player positions!(As in 1st, ...
5
votes
1answer
406 views

Why does this Unity code work as expected only with the while loop?

In unity, in C#, I have the following code in Awake(): Awake() { Transform obj = InstantiateTarget(); //the bizarrely required and "working" loop while (transform.childCount > 0) { ...
0
votes
1answer
215 views

Lerp an object based on timers

I'm trying to make a target lerp between two objects based on a timer. At the moment, I have the following code: float distCovered = (Time.time - waitTime) * speed; float fracJourney = ...
1
vote
2answers
545 views

How to get characters to be aware that their path is obstructed?

I'm using Unity with Arongranberg's A* pathfinding project to move my characters. However, it appears that my characters are contending for a position on the terrain when they are told to move ...
1
vote
1answer
336 views

Unity3d iOS: unable to find iPhone_GlesSupport.h [closed]

i've an old unity project and i've tried it just today (with unity 4.1) and xcode 4.6. Xcode is unable to build it for the error: "iPhone_GlesSupport.h" file not found. Im pretty a noob under xcode ...
3
votes
2answers
1k views

Displaying (3D) objects' name above them

The Elder Scrolls: Morrowind has a rather interesting way to display each focused objects' name. It's all a bit fuzzy in my memory right now, but the most important part I remember perfectly: the ...
0
votes
1answer
947 views

'No Platforms Found' error in Unity Android

I am having a problem with Unity Android - every time I try to "build", a 'No Platforms Found' error pops up. Thing is that I already have Android SDK in my computer (copied it into my G drive from ...
2
votes
2answers
5k views

Creating offline multiplayer Android games with Unity

Is it possible to create offline multiplayer Android games with Unity (played over bluetooth/ wi-fi)? If so, then I would like to create a 2 player game prototype, containing a single room (empty ...
2
votes
4answers
315 views

Can I transfer C# coding I do in Unity for practice to another 3d engine?

If I use a C# coding in Unity 4, can I transfer that coding into another non-Unity engine as long as it accepts C# too? I hope this question makes sense. Thank you in advance.
3
votes
2answers
263 views

Moving character on x axis

I am new to unity scripting. I am trying to move my character towards right side(on x-axis) to create a running effect, I've imported the character from blender which contains two animations, "jump" ...
1
vote
2answers
1k views

Unity3d how to show an image downloaded from HTTP

I am bit new to Unity3d. I am fine with any solution either of the scripts. Can we render an image in unity3d (which we have to download from HTTP path)? If yes then how or do you have any reference? ...
7
votes
1answer
3k views

How to create high quality and fast portal effect?

EDIT: So I've gotten the portal visual effect working with no performance hit, and I've got the physics set up of objects with rigidbodies moving through portals seamlessly, and objects with character ...
1
vote
1answer
238 views

Spawning enemies at way points [closed]

I'm trying to have my game spawn enemies when ever the player reaches a way point. Right now, I have this functionality working. When my player gets to the first way, the enemies spawn. He only moves ...
0
votes
1answer
124 views

Would a custom mod built for RakNet be automatically usable with Unity?

Context: I'm interesting in developing a security module for servers that handle mobile games, and I'd like it to be usable by the most people possible. So I'm trying to decide what server software I ...
0
votes
1answer
686 views

Using 4096*4096 background image in uinty tk2d

I am new to Unity and I am developing a game using unity its a 2d game i am using tk2d framework. I have a big background image(4096*4096) how can I load this background so only visible part of the ...
3
votes
3answers
2k views

Getting correct angles between Vector3s

I'm working on a project where you can draw lines between points. You select one point and drag the mouse onto another point and a line is drawn between them. The line itself is a 3d object which is ...
0
votes
1answer
150 views

Gravity/collision problems: models jumping

I'm pretty new to Unity3D game engine and game development, so don't judge me strictly. I import a model of the rail track, add rigid body component (with mass 1 and use gravity flag) and box collider ...
1
vote
1answer
310 views

unity3d nullreferenceexception [closed]

i want to display a mesh sequence so i imported my obj files and found a script and partially edit it a bit.My project looks like this: the script is this: using UnityEngine; using ...
-1
votes
1answer
365 views

I want to start making 2D Games with C++ or #C [closed]

I know C++ pretty well, I think - polymorphism, vectors, templates, and more. I also know C#. I want to program a 2D game, but not like those programs where you click a button or two, and you ...
-2
votes
2answers
341 views

What knowledge do I need to learn Unity? [closed]

What do I need to get into using Unity? Do I need some knowledge in any language in particular? Can I just get to know the program with tutorials? What would you recommend?
3
votes
1answer
2k views

Rotate object to always face camera

I'm trying to make a TextMesh appear when ever an enemy prefab is hit. I currently have this functionality working. However, the text doesn't face the direction the players camera is looking. At the ...
2
votes
1answer
132 views

Mixing animations

I'm working on a swing animation and mixing it with a turn animation in a motorcycle game. The issue is that for the swing animation to work while turning only the swinging arm has to animation, ...
0
votes
1answer
421 views

Quit the application when clicking cancel button of Alert View in C#

Can someone guide me as to how can I make an application quit when you press the cancel button of an Alert View in C# code? Thanks I forgot to add that I am trying to quit application on clicking ...
0
votes
1answer
155 views

Dynamic model scaling

Imagine a (3D) game like Railroad Tycoon 3. Player selects a rail track, clicks LMB and drags the mouse to the end position. During this drag, the rail track model scales and adopts to the landscape, ...
1
vote
1answer
4k views

Voxel terrain engine [closed]

Is there some voxel frameworks or extensions for game engines like Unity? I really need a system to dynamically generate voxel ruinable terrains.
1
vote
0answers
76 views

UIToolkit VerticalScrollable dont hide when is moving [closed]

im experiencing a weird bug with the Vertical Scroller (mainly in iOS, but even in the Editor): when a vertical scroller is still "moving" (so when it'snt totally stop) it's impossible hide this ...
6
votes
3answers
3k views

Mixing threads and coroutines in Unity3D Mobile

I had a coroutine in Unity3D that downloaded a zip from a server, extracted it to the persistent data path, and loaded its contents into memory. The flow looked something like this: IEnumerator ...
1
vote
1answer
181 views

Speech recognition and AI in language learning platform [closed]

I work for a publishing company that is looking to create an online virtual environment for English Language Learners. We are keen to create something immersive (virtual 3D world) through which the ...
0
votes
1answer
5k views

Unity: OnCollisionEnter not called

I created a sphere object, added a rigidbody component (no kinematics) and attached a script to it like this: function Update () { } function OnCollisionEnter(collision : Collision) { ...
2
votes
1answer
452 views

Translating a terrains position using input in Unity 3D C#

I am trying to make a terrain in Unity move, but im having trouble. Here's the code i have. using UnityEngine; using System.Collections; public class NewScript : MonoBehaviour { Camera camera; ...
5
votes
1answer
710 views

Can I use p/invoke in libraries loaded as assets in Unity Free?

I am interested in using utilising third-party libraries in Unity Free. I know Unity can use managed libraries as assets, but only the Pro version supports using native libraries (DllImport within ...
2
votes
1answer
1k views

How to set an EditorGUI foreground color for the light Unity skin?

Writing an asset management GUI as part of our editor tools, I am in some places colouring LabelFields. Working mostly in the dark Pro skin, this seems to work just fine: GUI.color = Color.green; ...
1
vote
2answers
1k views

How to make a gui button follow a path after a touch?

I would like a button in my gui menu to follow a specific path if we selected it, I am wondering how I could do it: if we touch the button, then it can only move on the specific path, it is an arc ...
1
vote
2answers
545 views

Dynamic Textures

I am pretty new to this 3D designing and animating, and as an indie developer I need to do everything on my own I have created this simple box character And I want to texture it, have looked around ...
1
vote
1answer
305 views

Do “write once run anywhere” engines require platform specific code for multiplayer?

I've been investigating the myriad selection of mobile game dev engines that allow compilation of your code onto multiple target platforms, but, something I can't seem to figure out is if ...
-1
votes
1answer
16k views

Free animated character models for my first Unity game [closed]

I am creating my first game in Unity for my intra-college game development competition. A hack and slash type of game. It's about a warrior who is escaping from a prison. Setting is medieval times. ...
3
votes
1answer
4k views

Problem with default 3rd person controller in Unity 4

I am new to Unity. Whenever I am importing the default 3rd person controller (construction worker) in my scene and clicking the play button, the model seems to be in the running pose. The control ...