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
1answer
1k views

NavMeshAgent in Unity giving jerky performance

I am using NavMeshAgent in my Unity project to calculate and move my object to a particular location. When I do: navMeshAgent.destination = destinationPt the object starts moving, but the motion ...
8
votes
4answers
7k views

How can I draw an outline in Unity3d?

I am trying to highlight a rectangle of arbitrary height. I thought the easiest way to do this would be to create a separate "box" gameobject that outlines the rectangle. I've tried with both a ...
1
vote
1answer
3k views

Move Object Around Sphere in Unity3D

I am trying to get a GameObject to be able to be controlled to move freely around a sphere using a virtual on-screen joystick. I am building this for iOS and Android in Unity. I am using the standard ...
2
votes
1answer
2k views

NGUI UIInput - Reset value of password field

How do I reset the value of a NGUI UIInput control that marked Is Password. If I set .text to "" I still see a bunch of **** rather than the .defaultText. Basically if the user types the wrong ...
2
votes
1answer
453 views

Camera movement using WASD on x/z plane only

I've been wearing my enter key down on google searches - I have a camera script based on the MouseOrbit.js asset. That's all working fine, but in addition to the basic orbiting and the zooming that ...
2
votes
2answers
711 views

How can I prevent clicks from going through a GUI.Box?

I have a GUI.Box that I slide in from the side of the screen. How can I prevent mouse interaction from going to any objects under it (another GUI.Button for instance, or for that matter an ...
1
vote
4answers
2k views

How to differentiate between instantiated objects in Unity?

I'm currently trying to solve a way to go about the following problem before I start writing any code (the old fashioned pen and paper way) but I'm not sure how I could achieve the following. I'm ...
3
votes
1answer
208 views

How to approach skinning a snake made of cubes and is it right method for snake 3d game

I'm making a 3d snake game clone for studies and prettly much got everything to work, I have a 3d ground object surrounded by walls, and a snake head piece (cube). when you start the game 2 additional ...
4
votes
2answers
1k views

Unity's “Stats” window displays bizzare number of triangles and vertices

In my Unity scene I have: 7-8 Barrels (with lids) each at about 2-400 triangles. 4 planes, each at at the very most 200 triangles camera, 3 lights, a FPS controller When I turn on the "Status" ...
1
vote
1answer
253 views

Using OpenGL GLEW within Unity

Edit:- How do I implement GLEW (or OpenGL extension libraries) within Unity? Original Question:- I've recently been looking into some really nice features of OpenGL 3.2 that I want to take ...
2
votes
2answers
2k views

How do I simulate a crowd in the stadium stands?

I'm working on a mobile sports game with Unity. I'm wondering how I could create an efficient effect of an audience in the stadium. I know that with more than 15 characters in my games (with 1800 ...
1
vote
1answer
348 views

Keybindings in Unity

I need to know how to bind keys to actions through Javascript within Unity. When I develop web applications, I normally use this: var KeyBind = function() { if (document.addEventListener) { ...
1
vote
1answer
548 views

Armature in Unity3d distorted

On the left is a base mesh with armature in Blender. I imported this model and armature into Unity3d. The result is on the right. The arms are clearly distorted, and I can't seem to fix it by ...
3
votes
1answer
572 views

Dynamically save an assetbundle during run time

I'm wondering if it is possible to dynamically save / amend a current asset bundle during the running of my Unity application. I've been looking into this for a few hours, but can't find anything ...
1
vote
0answers
199 views

How to play a movie on top of a webcam texture

I've been through the Unity docs, searched here, and on stackoverflow; I have not found any good information about using the WebCamTexture for my purposes. So here goes, how do I play a movie asset ...
5
votes
2answers
517 views

Detecting Light Intensity Around Characters

Later Edit Since there seemed to be a bit of confusion: I am asking this for purely didactic reasons, I'm not searching for the most efficient solution. Reformulated question: I'm working under ...
1
vote
1answer
155 views

Triangles in the corners of skybox

When looking at the corners of skybox this happens: http://i.imgur.com/H8XvS8I.jpg How to get rid of this? 6 skybox textures are 2048x2048px each. Tried changing Near and Far clipping of the main ...
0
votes
1answer
599 views

A good approach on working on player controller for movable platforms?

I have got my player controlling working out decent enough, except with mediocre animation controller for the player, but oh well. All I have done so far is basic input: move, run, jump, multi-jump. ...
2
votes
3answers
2k views

How to start in animating my model?

I got a model from TurboSquid. Which is an archer and when i imported the model I got all the textures to be put on properly. The thing is the actual character has no children nodes, is it possible ...
3
votes
3answers
2k views

In Unity, can I load a local (/Resources folder) website to safari on an ipad

In Unity, can I load a local (/Resources folder) website to safari on an ipad? This works fine on a Mac, opening up a wepage from my Resources folder. string path = ...
2
votes
1answer
164 views

How do I gain access to objects in order to change their properties in Unity?

I have created a GUI text object named "GUIText" in the Unity editor, and I want to change what the text says via code (I'm using C#). How do I access GUIText1 to change its string properties? I want ...
3
votes
1answer
2k views

Rushing water in unity

How would I go about creating a river with rushing water. I can do the texture around it but I'm stuck on the actual water part. This is in unity3d.
4
votes
2answers
1k views

Disable autorotation if Android has it disabled

I'm making a game for Android in Unity. I wanted the game to handle screen rotations, so I set "Default Orientation" to "Auto Rotation. This works well, except for one issue: If you disable ...
3
votes
1answer
1k views

How do I properly use particle simulation in Unity?

So I'm using Unity's simulate function to pre-render particles. It seems that simulate is not quite working as to what I expect. It's most likely a setting that I missed. But I just really cannot find ...
3
votes
1answer
451 views

Unity editor stalling on second attempt to play

I am attempting to use a Tobii TX300 eye-tracker as an input device for Unity. This device is connected via LAN (TCP connection managed by Tobii SDK). The Tobii SDK has appropriate methods (I am ...
1
vote
0answers
730 views

Unity3D: collider performances on mobile iOS devices

I'm experimenting with Unity3D and colliders. Unfortunately I still don't have Unity Pro version and I can't use the profiler. Consider the following situation: mobile devices (ios, iphone 3GS). an ...
1
vote
0answers
486 views

Unity - Mesh Deforms terribly while mixing animations

I have a simple game I'm working on to help me learn unity3d. In my Start() function, I've used the following code to set up my animations. walkAnimation = animation["Walk"]; ...
4
votes
1answer
297 views

How can I create a mirror with Unity?

Can anyone explain how I can create a mirror effect like the one in this YouTube video using Unity Pro? I know that I need to use render textures to do it, but I am not sure how.
2
votes
1answer
246 views

How can I instantiate my variables in Boo?

I have a Player Attributes class: import UnityEngine class Stat (): public current as int public max as int class PlayerAttributes ( MonoBehaviour ): public Name as ...
5
votes
2answers
496 views

Most efficient method to render 1,000s of unique space scenes?

I'm an artist with a concept, not the developer, and I'm trying to wrap my head around the approach I should be taking for the following scenario, namely whether to model in Photoshop or 3DS Max. Say ...
1
vote
1answer
401 views

No intellisense on my classes

I've been using Monodevelop's current version and Unity 4. I don't get intellisense on the classes I've created but I do have intellisense on classes that are in Unity's framework. Bug or its just as ...
0
votes
2answers
139 views

Circle Collision class not positioning itself correctly

Ok I am using unity3D and the Futile framework. I have everything drawing and working correctly with Futile, but I am trying to attach a circle collision class to the FSprite that I have. I must be ...
4
votes
1answer
321 views

How to determine that nodes in Grid Graph are unreachable before applying pathfinding?

I would like to determine accessibility of nodes before applying pathfinding algorithm to Grid Graph. I have a surface with nodes overlayed on it and I would like to somehow determine that nodes ...
0
votes
0answers
11 views

Show 3d object on device live camera in Unity3d for iOS [duplicate]

Possible Duplicate: How to add render able Texture in Unity 3d for iOS How render a 3d or 2d(.jpg or .png )object at device live camera in Unity3d, and this 3d object shouldn't stuck with ...
0
votes
0answers
286 views

How to add render able Texture in Unity 3d for iOS

I want to render an image on texture which should be stuck at one point, not stuck with Camera. I don't know how to accomplish this task because I started unity a week ago but I want to do this task ...
2
votes
0answers
365 views

Unity3d. Overlay of clothes on a human model

I have: Clothes model (jackets, shirts, sweater etc. with various sizes,colors) Human model with dynamic height, width, position Need overlay a model of clothes on a human model. Variant with a ...
1
vote
1answer
1k views

Architecture of “doodle jump” type gameplay infinite looping background

I am planning make a doodle jump type game, character jumping on platforms. A scrolling or doodle jump like background which ll appear to move when character moves upward and appear moving (just like ...
14
votes
6answers
1k views

How to make my characters turn smoothy while walking on a path(list of coordinates)?

I have a list with coordinates - output from A* algorithm - and I would like to make my characters smoothly follow this path with rotations. So I have something like A and I want to get C How can ...
0
votes
2answers
319 views

Unity (Javascript Syntax) Isn't Allowing Me to Override My Inherited Method [closed]

First, I would like to say I apologize if this has already been asked and there is already an available thread covering this. I did my very best to try and find a resolution to this using preexisting ...
0
votes
1answer
846 views

Unity - Code is fine in the editor, has error on android

Right. Im running into some weird issue with android unity. I have this bit of code function OnTriggerStay (other : Collider) { if(die.GetComponent(DieScript).sideUp ==6 ...
-4
votes
2answers
9k views

Detect touch for android…for unity 3d [closed]

i am trying to detect the touch on android and is it possible to have a same function with touch which can work same as OnMouseUp() function
4
votes
2answers
1k views

Lights shining through walls

I'm currently having a problem with lights in Unity. They shine through walls for some reason. Point, directional, etc. If a light is next to a wall on one side, you can see it on the floor on the ...
4
votes
3answers
14k views

How to move gameobject with touch on Android

I'm trying to make a game where you control a character via touch on Android devices. The player will have two degrees of movement. When you touch the touch screen and move your finger, the game ...
1
vote
0answers
632 views

Unity3d Gravity script issues

I'm try this script out http://wiki.unity3d.com/index.php/Gravity and I'm having some issues with it (it seemed to work when I tried it with an old version of unity) the first issue is of ...
1
vote
1answer
144 views

Unity3d generating a file in iOS and saving it on a linux machine

I've done a little research and don't know if the following is possible. At the moment I have created a small application in Unity that generates an XML file. This file will be used to help set up ...
2
votes
1answer
515 views

Apply force to a specific point on a rigid body

In unity I have a rigid body object and would like to apply force to a specific point. For example say I had a cube, I want to hit just the top right corner so it spins as a result. One idea I had ...
-1
votes
1answer
1k views

Writing to XML issue Unity3D C#

I'm trying to create a tool using Unity to generate an XML file for use in another project. Now, please, before someone suggests I do it in something, the reason I am using Unity is that it allows me ...
1
vote
1answer
785 views

Unity3D and Texture2D. GetPixel returns wrong values

I'm trying to use Texture2D set and get colors, but I encountered a strange behavior. Here's the code to reproduce it: Texture2D tex = new Texture2D(2,2, TextureFormat.RGBA32 ,false); Color col = ...
2
votes
1answer
170 views

Can a UIKit application co-exist with a Unity game as a single application?

I have a typical UIKit application with three buttons - one opens an RSS feed in a UITableView, the second opens some kind of gallery view, and the third opens a Unity 3D game. Is it possible and how ...
2
votes
1answer
11k views

Unity3D draw call optimization : static batching VS manually draw mesh with MaterialPropertyBlock

I've read Unity3D draw call batching documentation. I understood it, and I want to use it (or something similar) in order to optimize my application. My situation is the following: I'm drawing ...