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

How to do an anti sway bar for a car in Unity 5?

I have researched some examples of anti roll bars for Unity but they are all for unity 4 and bellow so they do not work in unity 5. Can someone please assist me in making an anti roll bar script in C# ...
1
vote
3answers
216 views

In Unity, how do I set the window's size?

Say I want a "world map" (maybe think the overworld in ff games) with dimensions 800px by 600px. How would I do that? Is this tied in with the resolution? Because I know you can set the game aspect. ...
0
votes
1answer
10 views

Wrong pivot point of parent / wrong scale of children

I'm trying to make two objects, in is an intact glass, the other one is the glass but shattered. So for the shattered glass, in Maya I make a Plane, cut it with the multi-cut tool, extrude the faces, ...
0
votes
0answers
16 views

Is it necessary to publish the game App on store in a way work Autocomplete Deep linking

App indexing , Deep linking and Auto complete feature in my game , so Whenever i open the Game it shows the recorded pages of the Game in Auto complete of the Google App , i.e of-course the Start of ...
0
votes
1answer
47 views

Swap between first person and eagle eye view cameras, hiding the FP controller

Not sure what has to be done to correctly swap between a generic fps controller camera, to something like an eagle eye view. The idea is to have the player use the FPS controller, then when he get in ...
1
vote
1answer
29 views

Implementing my own UI sprite class in Unity using shaders: where and how to position the sprites

For learning purposes, I am trying to implement my own UI classes in Unity "from scratch", in the GPU using shaders. I mean, I am trying to use simple 2D sprites either positioned via shaders or ...
0
votes
1answer
19 views

Have an object rotate on its Y axis towards mouse position [duplicate]

I've been looking at some other answers to similar cases but not every one used different methods, and a lot of them were not what i needed, so here's my question : What's the best/standard way to ...
0
votes
0answers
39 views

Natural Language Processing in Unity

I'm looking for a good solution for Natural Language Understanding in Unity (for example, given the sentence "Bob saw Alice", it will return that Bob and Alice are proper nouns, saw is the verb, and ...
1
vote
1answer
263 views

Unity Augmenter Reality on Android with Video playing

Hey sisters and brothers, So, I created an augmented reality marker, which works perfectly, I was able to display 3 shape on the screen with my Nexus 5. I would like to replace my shapes with a ...
1
vote
2answers
32 views

How can I select a object (canvas) with tag using Physics.Raycast?

I made this C# script, becase I want select a Button of the menu(canvas) for choice the dificulty of the game, but I don't want select with mouse I just want select with Aim, and I made this script ...
1
vote
0answers
6 views

Why can't I duck reverb in the mix bus? [duplicate]

i'm surprised there is so little documentation on this issue. But i'm trying to duck the audio on all the mix buses in Unity so that you can clearly hear the VO of the game. Now it works great except ...
1
vote
0answers
23 views

Hinge/Configurable Joint rotating even if constrained

I already posted the question over on Unity forums, though, I have to say, this place often seems more professional and knowledgable, so here goes mirror post. I have a Cylinder with a Hinge and a ...
0
votes
1answer
34 views

LookAt different object smoothly in unity3d

As picture depicted my camera moving on path i want to lookAt bath different object smoothly. Currently have tried trasnform.LooAt(activePath.gameObject.transform); but it producing jerky result. ...
2
votes
1answer
594 views

Unity Grid Layout causing multiple draw calls

We are developing a game in Unity 4.6.6 for both Android and iOS. Currently I am building the game UI with the new Unity UI system. In particular I am building a button list to create kind of ...
0
votes
1answer
33 views

Unity sprite renderer uses standard 2D sprite instead of custom loaded one

I have loaded a 2D sprite from the filesystem and created a sprite from it, which I then attach to a SpriteRenderer. The game object appears in the scene but for some reason it doesn't seem to be ...
0
votes
0answers
21 views

Alternative to LookAt in unity3d [duplicate]

How does unity LookAt work i searched and found that this is how lookAt work but seems that it is not right? Vector3 lookPos = transform.position - ...
0
votes
1answer
34 views

Coroutine doesn't continue after checking for bool

I have the following coroutine: public IEnumerator EndGame() { //StopAllCoroutines(); GamePauseController.instance.UnfreezeTime(); ...
1
vote
1answer
58 views

Unity3D (2D) - Make sure Item Dragged Is Top Item Visually

I am using Unity 5 and making a 2D game in which many sprites will be stacked on top of each other and can then be moved by dragging. Sometimes when the users goes to drag from a pile, ones that ...
0
votes
0answers
24 views

How to prevent object from moving when it's mesh/collider is being updated?

So I a made a script that lets the player grab a vertex, move it, and then update the mesh. To help prevent the player from trying to clip it through other objects I made it so the mesh/collider is ...
5
votes
1answer
677 views

Unity: Apply an Image Effect on one layer only

Please consider this simple scene. It’s composed of 3 different game objects. 1 background image + 1 static character image + 1 small part (with the pet) that is changed at runtime to perform an ...
0
votes
0answers
13 views

Unet 2D sync problems

I've studied Unet but I still can't get it to work right :( I have 3 problems. The first: I can't force player 1 to always spawn from a specific spawn point (and same with player 2). Therefore I've ...
0
votes
1answer
307 views

GUI.DrawTexture problem in Unity

I'm having a problem with GUI.DrawTexture() and I'm looking an alternative function to draw 2D Texture Images. The problem I have is that my textures draw above all other objects and when my camera ...
0
votes
0answers
13 views

Rotation towards the movement direction of an object [duplicate]

I have camera which is moving on spline one by one. One complete camera path (spline) consist of several spline and I moving my object on that spline using MegaShape Script package. I have LookAt my ...
4
votes
2answers
297 views

Scaling a UI bar for progress in Unity

I have created a progress bar inside Unity for one of my energy systems. The bar progression works fine. Its just a plane pivoted on one of the faces so scaling it in x axis makes it progress further ...
1
vote
1answer
466 views

Mesh deformation maya to unity

I have a model that has been modeled & rigged in Maya, whenever i export it as an FBX and take it into unity it seems to collapse at certain areas (see the attachments for a before and after). The ...
0
votes
1answer
32 views

Elastically Object movement in unity3d

I want to move an object towards the destination elastically. Currently I am using Vector3.Lerp it working to move the object, start with high speed and reached at destination with low speed but ...
0
votes
2answers
39 views

Roatating a Game Object downward

In my game I have a rocket which is traveling horizontally across the screen. What I am trying to do is when the player runs out of fuel, the rockets engine stops (already coded) and then the rocket ...
1
vote
1answer
166 views

How to deal with inconsistent network delay caused by packets arriving at different times in the frame?

I'm developing a multiplayer game that does not have prediction. It implements client-side interpolation. The problem with this is that input delay can be perceived. I've measured the various times ...
0
votes
1answer
25 views

Loop in coroutine stops after going halfway

I have a very weird problem with a particular loop in a coroutine: public IEnumerator DestroyCubesGameOver() { var startingCubeHolder = GameObject.FindWithTag("StartingCubeHolder"); ...
0
votes
1answer
39 views

Unity 5/C#/Scripting Switching Cameras

How can I switch cameras from First Person to Third person or from thrid person to first person. Like at GTA V you can switch the cameras. How to do this? Tnx for your time.
0
votes
2answers
62 views

Unity3D - Smooth rotation for seek steering behavior

I am trying to implement Reynolds' seek steering behaviour, but I am having problems on the rotation part. This is what I have: void FixedUpdate() { // get position of current waypoint ...
2
votes
2answers
666 views

Unity 2D Alpha cutout layer for Sprites

I'm trying to make a simple Fog of War effect for my 2d game, similar to these: . I want to have a sprite layer of black and then have a sprite to cut out itself from the black layer, leaving a ...
0
votes
1answer
306 views

Player position on second player connection

I'm having some trouble trying to run my game for the multiplayer part. I'm creating a 2D game. I have followed this tutorial : ...
0
votes
1answer
42 views

NullReferenceException being thrown when I try to add a component to a dictionary [on hold]

I have the following section of code from a MonoBehaviour class in a voxel engine that I'm currently working on right now: public void CreateChunk(Position chunkPosition) { GameObject newChunk = ...
-1
votes
2answers
23 views

Why is my player object not being clamped?

I have a game object that has specific boundaries. However, when I have the object meet the boundaries, the object doesn't stop the way it's supposed to, it continues to move past the set boundaries. ...
3
votes
2answers
62 views

Why is my alpha transparency not working correctly in Unity?

In Unity I have never seen a bug quite as weird as this one. As usual, I import my texture with a transparent background and then check the alpha is transparency box and apply it, and everything ...
0
votes
3answers
322 views

How do I make so when user moves the camera it doesn't go beyond the scene borders in Unity3D?

How do i make so when i move my camera, it doesn't go beyond the border of the canvas while playing. This is the script i use to make the camera move: if (Input.touchCount > 0 && ...
0
votes
2answers
1k views

Unity3D Resize texture without corruption

I am currently working on a solution to make my game look very pixelated, like Doom or Quake. But there is a big problem. B.T.W I'm not using Unity Pro I render my camera to a 1920x1080 texture, ...
1
vote
1answer
24 views

Adding a Scriptable Object to the Scene

Suppose a Scriptable Object e.g. NewWeapon.asset with variables such as name, description, price etc. I 've also added a public GameObject weaponObject; so that I can drag and drop the 3D model ...
0
votes
2answers
67 views

How do I handle parallel lines when looking for intersections?

I'm using the following method to determine the intersection point of two vector2: public static Vector2 LineIntersectionPoint(Vector2 startPoint1, Vector2 endPoint1, Vector2 startPoint2, Vector2 ...
1
vote
1answer
474 views

NGUI Texture Background Font of Sprite

I am new to Game Development and using NGUI plugin free version. There are few sprite images in my game. I made them prefab and instantiated at runtime. then I created NGUI Texture and Made it ...
2
votes
1answer
1k views

In Unity, why do my animator states wait until the end of each animation to change?

I'm trying to make a simple idle-walk transition in Animator using Unity. I've set a script that changes the Speed value from the Animator, and it works perfectly when I move the character forward ...
-1
votes
2answers
30 views

Read values from text file [on hold]

I'm trying to read the data from a text file with numbers separated by tab. And store those numbers in a list of float for example. So that I can then use that list on runtime. Any easy way of ...
0
votes
3answers
2k views

How to make a horizontal scrolling menu in Unity 3d 4.5

I want to make a horizontal scrolling menu that will hold levels of the game .But i have a little idea about it so it would be very great if anyone help me with it
2
votes
1answer
121 views

Why are these unity UI buttons only responding to the top half?

I'm instantiating UI objects with buttons on them into a scrollrect. For some reason, all of the buttons will ignore their bottom half with the exception of the last prefab instantiated. Below is a ...
0
votes
1answer
62 views

Animation timeline organization for Unity 5

I create stuff for AssetStore and use 3ds max and Unity 5. Can someone tell me how I need to work with timeline? When I create animation for several objects, I need to animate them one by one? ...
0
votes
0answers
9 views

Correcting Vectrosity wire frame line normals

Current Setup This is my current scene, you can see that as the sphere rotates it looks like at the edges(90 degrees) to our normal you see the lines fine but dead on the almost disappear. Grid ...
0
votes
1answer
189 views

Draw GUI.Button on certain position on a scrollable background

Problem is in a 2D game I have a large background around 2 screens wide. And on there I got 4 buttons placed on top of background all over complete width. Now when I swipe of move my mouse around I ...
1
vote
1answer
181 views

Unity UI Button not working on PC build but working on Android mobile build

I am using Unity to build a game that is going to be used on PC and on mobile devices also. The problem I have is that when I use Unity UI Button, on mobile (android) is working perfectly but on PC ...
1
vote
1answer
25 views

Physics2D raycasting with a perspective camera and tilted sprites

So i ran into this problem today. I want to have a perspective camera and sprites that are rotated by lets say 1.5 on the X axis. The problem is that the 2D raycast does not work correctly, it returns ...