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 (2)

3
votes
3answers
3k views

How do I Sync data from client to server?

I'm trying to Sync data from the client to the server using the new Unity Networking, and I'm failing for some reason. I've set up a prefab with a NetworkIdentity component with the attribute Local ...
1
vote
1answer
50 views

In Unity, Change which mouse button is used to scroll in ScrollRect

I've created a new ScrollView in Unity. How do I change which mouse button is used to scroll in ScrollRect (through script or in the editor). By default it's the left mouse button. I'd like to be ...
2
votes
1answer
128 views

Jumping onto higher ground Collider issues

What's the general solution to the following character animation problem (I'm using Unity)? You have a character with a capsule collider and a jump animation that allows you to jump onto higher ...
0
votes
1answer
105 views

Distance based item interaction

I'm having an odd issue in my implementation of distance based object interaction in Unity. Basically it's a simple "Press [key] to [search/pickup/open/etc]" function which requires the player to be ...
1
vote
1answer
37 views

Unity Vector3.Angle() direction

I have a space fighter AI. I need to determine how to pitch, yaw and roll the craft to aim at the target. My current solution: To obtain the Yaw angle to position the target above the fighter, ...
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
40 views

How to stack sprites?

I am currently working on a 2D game in Unity, I am using Animation Controllers / Animators for the different slots of armor on the character. The scripts set the Animation to the player object and ...
-1
votes
2answers
111 views

Control Unity Game loop to sync with external hardware/software

We would like to run the Unity Game Loop in sync with external hardware and applications running on a different computer. We want to arrive at something that work similar (but does not have to be ...
1
vote
1answer
146 views

Keeping object a fixed distance from the ground, buggy behavior

I'm trying to make a script that will keep my object exactly 1 meter from the ground. So far I've got the following code : using UnityEngine; using System.Collections; public class ...
1
vote
1answer
178 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
2answers
47 views

snap an object to another object?

so I have some walls which are cubes stretched along a direction.and I have some windows and doors that are suppose to snap to a wall and don't let go until the desired location is out of the snapping ...
1
vote
3answers
438 views

UNITY : I want to make my UI text fade in after 5 seconds

I know this question has been asked and asked but none of the topics i visited gave me an answer. I'm making a game programmed in c# where you control a boat and i want my UI to appear smoothly by ...
1
vote
1answer
478 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
329 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 : http://www.paladinstudios.com/2013/07/10/how-to-create-an-online-...
1
vote
1answer
51 views

unity 5.x performance

after I downloaded unity 5, it became very consuming, my pc becomes hotter and makes a lot of noise. also building, compiling, baking of game takes a lot of time, I am making multiplayer game and need ...
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 ...
0
votes
1answer
22 views

Handling movement on sloped surfaces - clamping character to sloped surface

I've noticed that a lot of people seem to have this issue but I've yet to find an actual working solution - when a rigidbody-based character controller (I'm not using Unity's character controller) ...
0
votes
1answer
28 views

Unity 2d square position not lining up with its size

I want to have one square that rests at the Unity 2d coordinates (5,5). Using transform.localScale I make the square be 3 units by 3 units large. So I thought that if I made another square that is the ...
2
votes
1answer
2k views

Unity Frustum Culling Issue

I'm creating a game that utilizes off center projection. I've got my game set up in a CAVE being rendered in a cluster, over 8 PC's with 4 of these PC's being used for each eye (this creates a ...
2
votes
3answers
486 views

2D Game has very bad lag because of one script?

I am making somewhat of a flappy bird clone (mostly for practice) and everything works fine, but it is just really slow with a low FPS of 13 and a max FPS of 28. Why would this be? So I ran a check ...
4
votes
1answer
112 views

How to make an Assert.IsNull test pass when the value is reported as <null>?

I've just started using unity tests with the built in editor tests. After making my test and finding out that it constantly failed I debugged the code and found that a static object was set to a new ...
0
votes
2answers
218 views

Casting a directional line of which an object is coming from

I want to create a directional line ( curve / linear ) depending where the direction is coming from. In some games, similar to Angry Birds, a dotted guideline is shown to provide where the gameObject ...
0
votes
1answer
68 views

Detect collision with static collider only

Is this possible to detect collision with static colliders only I check it is not working. I dont want to use rigidbody or character controller with my box collider.
1
vote
1answer
200 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 ...
3
votes
4answers
258 views

Character controller going down slopes

When I go down slopes with character controller, if the speed is too high, the character just flies off the slope and lands at the bottom. I want my character to "stick" to the slope rather then just ...
1
vote
1answer
31 views

Joint based destructible physics (like Armadillo Run)

I've implemented a destructible terrain system like Worms before (where weapons create holes in the terrain), but for the game I'm designing I want something more like Armadillo Run: https://www....
0
votes
2answers
62 views

Unity3D/Blender: Bounding box rotated on import

For some reason my bounding box is always tilted when i import to unity. I've checked for loose geometry and everything but there's nothing.
0
votes
0answers
42 views

Unity Game Hang

I've created a prefab for coin. The Scenario is like that : When player collides with coin, the coin will move towards coin image(coin image is one which is displayed in header for information purpose)...
3
votes
1answer
264 views

RPC events with client side interpolation

I've implemented client side interpolation, where a specified delay is put on each client. This allows them to interpolate between positions and rotations. Unfortunately, this means every thing else ...
1
vote
1answer
485 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 ...
0
votes
1answer
79 views

Keep a rigidbody velocity constant

I have a "board" with a ball (rigidbody) moving over it and colliding with obstacles. I want its velocity magnitude to remain constant throughout time. How do I achieve this? What I've tried/...
2
votes
1answer
372 views

Animation conversion failed: transform for bone not found?

I'm trying to animate my first humanoid, and the animations in the Standard Assets pack (HumanoidIdle etc) work really well right out of the box. However, when I try to use other fbx files, like those ...
1
vote
1answer
37 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 ...
1
vote
1answer
191 views

Unity/vuforia imagetarget - object not showing properly

I learn it from vuforia tutorial on youtube. I add a white cube(or sphere) as the child of image target. When the camera catches the image target, the screen turns to be totally white. It seems that ...
0
votes
0answers
25 views

Rect Transform doesn't reset after animation is over

Usually everything resets after an animation is over, but for some reason the Rect Transform positions don't reset. Exmaple: Left value is 0 at the beginning, after that animation changes it to 500, ...
2
votes
0answers
28 views

Unity raycast misses convex mesh collider

I have a bunch of fighter AIs that are doing attack runs on a target (Currently just a cylinder). It is designed to veer off course the moment it gets too close and loop around for another attack ...
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
0
votes
1answer
71 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? (...
1
vote
1answer
59 views

Unity question: When attaching my custom camera script camera shakes when player starts to move fast [duplicate]

Here is my player code. Rigidbody rb; Vector3 currMovement; public float jumpSpeed = 10; public float moveSpeed = 10; public float rotSpeed = 180; float distToGround; public float smoothTimePos = ...
1
vote
1answer
229 views

Unity provides wrong Input value if game is started with bumpers pressed down

As the title states I am having an issue with the following. It is a pretty specific edge case but it is something I can't work around. In Unity I have created two Axes to allow me to check the value ...
1
vote
2answers
32 views

Check which object trigger another

Two animated car object both contains rigid-body and box collider and a script with OnTriggerEnter event. Now I want to check that which car hit to another car. Means if A hit to B or b hit to A as ...
0
votes
1answer
63 views

Set input relative to map rotation?

I'm trying to figure out how I can make the input which looks like this : // Checks if player is pressing movement keys, if is applies force to specified direction if (Input.GetKey(KeyCode....
0
votes
1answer
198 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 ...
0
votes
3answers
299 views

How to check if a game object is inside another gameobject

My idea is that there is a plane which is more of a border at top of the screen and if a game object has no more space to fall and it collides with something while it is in that border, the game ends. ...
4
votes
2answers
302 views

How to impale and stack targets correctly according to the collider and its coordinate?

I'm making another simple game, a catch game, where a spawning target game object must be captured using a skewer to impale it. Here how: At the start, the falling object (in red) will fall in a ...
1
vote
1answer
384 views

How to make unitypackage from allseen alliance's android sdk?

Im making an offline multiplayer for Android device by Unity and I found only one way to do this is the allseenalliance sdk. After download its from here I found that to use it I need to create an ....
1
vote
1answer
463 views

Marching Cubes Chunks

i'm doing some voxel based game, where i want to have voxel planets. i decided to use the marching cubes algorithm, and i successfully created a planet (even with noise) with the following density ...
6
votes
1answer
8k views

ResolutionException: Cannot find candidate artifact for com.google.android.gms:play-services-games:8.1+

Getting this error: ResolutionException: Cannot find candidate artifact for com.google.android.gms:play-services-games:8.1+ Google.JarResolver.PlayServicesSupport.DependOn (System.String group,...
0
votes
1answer
94 views

Moving object to point a to point b smoothly

I am working on a problem where distance between the point A and B or given and object of interest should move smoothly from A to B. I can control only control the speed of the object using this ...
0
votes
0answers
23 views

Unity alpha of all parented canvas groups

I'm codin aberration effect for Unity UI. It's works great, but I wish to control aberration intensity via rendered object's alpha. So for example if i have parented canvas group with alpha 0.5 I ...