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)

1
vote
0answers
20 views

2d Player animation issue in UNITY 3D

I have a player and i want to move the player from left to right. I can move the player by the keyboard events.but the problem is that when i release the key the player animation should be idle. ...
0
votes
1answer
43 views

My character gets stuck when It's running on a straight level ground

My project is an infinite runner that goes right in a straight line. Sometimes when it just runs without jumping the Player stops. Sometimes the Player doesn't stop. When you jump the Player usually ...
0
votes
1answer
15 views

How to detect a sign-out from Google Play achievements or leader-boards UI?

I am making an android game in Unity (C#), in which I've used the Google's official plugin for Google Play Services. My question is how to detect that a player has clicked on sign out button on ...
0
votes
1answer
19 views

UI Text Won't Change Color in Unity 5

In Unity 5 on Windows 10, I try to change the text color from the Inspector and in scripts, but the color won't change. Here are some screenshots of my Text objects open in the inspector, with there ...
1
vote
0answers
15 views

Jagged Edges Even With Anti Aliasing 8x Multi Sampling

I have an interior scene where I have imported a model for the apartment and many of the interior objects such as lamps, windows, etc. Unfortunately I have a lot of jagged edges on almost all the ...
0
votes
0answers
25 views

Creating Slide-In Text [duplicate]

I want to make my text slide like so: This is from the game "Crossy Road". The movement is normally smoother that in the .GIF Here are some more frames from the GIF to make you understand what I ...
0
votes
1answer
39 views

How do I build a 3D array result set from a compute shader in unity?

I took this right down to the absolute most basic scenario but for some reason I can't get anything back from the GPU when this completes, could someone explain what I am doing wrong ... Here's my ...
0
votes
0answers
16 views

Unity crash on development build

Every time I check the development build, my game crashes just after turning my screen black. To be more specific, I've tried to create a development build of my game using Unity 5.3 on Windows 8. I ...
0
votes
0answers
24 views

Help creating an animation in Unity? [on hold]

How can I create an animation that looks exactly like the one below (the moving hand pointer)? I have no idea on how to start. Thank you for your help.
0
votes
0answers
21 views

Unity voice chat in multiplayer [on hold]

I'm a very beginner in Unity development, so please bear with me, if my questions are a very simple. So, I would like to know, what are the possibilities to integrate Voice Chat to Unity. I'm about ...
1
vote
0answers
37 views

How to reproduce this triangle filling scanline effect using a shader?

I'm writing a renderer for an old DOS game were 3D polygons were rendered in software. I'd like to simulate, using a shader, the following material/effect, used for filling a triangle : The fist ...
0
votes
2answers
49 views

How to know when user has stopped dragging

How can we know when user has stopped dragging fingers over screen if user has not removed finger from screen but stopped dragging ?
1
vote
2answers
53 views

What's the difference between Mathf.Lerp and Mathf.SmoothDamp

I want to smoothly go from one value to a new one (moving a slider or changing color). I tried using both functions and they all basically give the same result. What is the difference between them and ...
0
votes
0answers
27 views

Unity3D :Player won't go back to idle state

I'm creating a topdown 2d click to move game on unity (as most of you may already know due to recent post) and having trouble with the animation. I created two states, idle and walk, in the animator ...
1
vote
0answers
42 views

Weird squares everywhere

So in unity I have some weird squares on surfaces of certain objects, which are buildings represented by planes: I don't know what causes it, I tried changing some settings in lighting and ...
0
votes
1answer
24 views

If I save some information with PlayerPrefs, they will remain saved even if the game is online?

If I make a game in unity and I use the PlayerPrefs function to save the progress and load it in another play, that information will be stored even if the game is loaded on an online platform? I mean: ...
3
votes
1answer
34 views

Unity3D - Screen Capture of particular UI elements

How can I screenshot particular UI elements? In my case I need screen capture UI Panel with child objects like UI Text, UI Input and etc. Please take a look at picture. Thanks in advance
1
vote
1answer
35 views

Raycast a ray to the tip of another ray

I'm using unity to raycast a line from the center of my camera viewport to a world position (yellow line). I also want to cast a ray from the center of my character to this same point (blue line). I ...
0
votes
1answer
24 views

Detecting Left and Right Mouse clicks on UI Text objects that are dynamically created

So, in my game I create a bunch of UI Text game objects dynamically (in the C# script), but I just can not find out how to properly detect Left and Right mouse clicks on these UI Text that were ...
0
votes
0answers
21 views

Abstract Factory Pattern for Implementing AdNetworks on Multiple Platforms [on hold]

Here's the link to the github project. I want to implement Abstract Factory instead of adding platform dependent compilation flags in just one file and make it ugly. Hence decoupled code. Moreover, ...
1
vote
1answer
45 views

Replicating a worldspace sphere on screen space

I have quite some struggle with a post processing shader that I'm working on. I use Unity, and I have a shader in which I want to, in screen space as part of post processing, render a sphere that ...
0
votes
1answer
54 views

WWW & crossdomain

I'm trying to use the WWW class to connect to a restful service located on a server. The service I'm trying to connect to is located to a specific port (8080 in my example), and my application cannot ...
-1
votes
1answer
112 views

Displaying Trajectory Path [on hold]

How can I display trajectory path exactly as in this image? I have used void OnDrawGizmos, but that only displays trajectory in the editor and without any arrows like shown below. Trajectory with ...
1
vote
0answers
23 views

How to receive broadcast message in Unity?

I am trying to get the broadcasted message in overridden method of NetworkDiscovery.OnReceivedBroadcast(). For that what I had done is below: I create class which implements NetworkDiscovery where I ...
0
votes
1answer
34 views

Unity - Toolbox pattern is not safe

When I create a toolbox such is in this tutorial. How do I defend against breaking the pattern with multiple instances like this: gameObject.AddComponent<Toolbox>(); ...
0
votes
1answer
33 views

How to adjust the width of a LineRenderer

I wrote a code that draws a line by mouse movement. I am searching for some way to give it pencil style and head and end of the line have thinner width. As we know the LineRenderer draws the line ...
2
votes
3answers
63 views

How to dynamically create an UI text Object in Unity 5?

I have been searching for something that should be simple, but Unity 5's documentation on that is fairly outdated. What I want to achieve is to be able to create UI Text totally from script, i.e. ...
1
vote
1answer
37 views

How can i create a 2 player turn-based board game on a separate android device using unity? [on hold]

im trying to make a 2 player turn-based board game, i have already made the connection between 2 device. I used photon. They both connect but i don't know how to sync them both to the game. can any ...
3
votes
2answers
78 views

Efficient use of pathfinding [on hold]

I'm doing a post-mortem on my game project, and this problem kept bugging me as my team couldn't solve it throughout. So my game is a pure 2D top-down shooter built with Unity3D, with enemies ...
-1
votes
1answer
13 views

NavMeshAgent in unity not working

I am making a game in unity and it is throwing the error "Failed to create agent because there is no valid NavMesh" and i don't know what the problem is. using UnityEngine; using ...
0
votes
0answers
27 views

Script getting unchecked upon running [on hold]

I have a script attached to a game object, with the following content, but when I press play, the tick next to the script component disappears. I cannot figure out which line in the script is ...
-1
votes
0answers
25 views

AddExplosionForce issue? [duplicate]

AddExplosionForce doesn't do anything with this script, even though a RigidBody is added to each CubeParticule... What's the problem? using UnityEngine; using System.Collections; public class Force ...
0
votes
0answers
13 views

How do i integrate a android camera into a google cardboard viewing mode. For AR purposes [on hold]

simply i want to have a stereoscopic view (like google cardboard) but through my camera and i want to add AR stuff in it. Is there a tutorial on this or some tips. ive tried too search for it and alas ...
0
votes
0answers
44 views

How To Create Xbox One Games for Free (Independently) [closed]

I was wondering how to start creating video games or apps for the Xbox One without having to pay fees, etc. I've tried Unity, but can't find how to export to Xbox One. ID@Xbox is cool, but looks like ...
-2
votes
1answer
70 views

Destroy object on Collision

I have a strange problem... I need a 2D projectile to destroy itself after colliding with an object. I have used all of the different ways to do this on the internet but to no avail; the object ...
0
votes
2answers
44 views

How can I mass-duplicate or “paint” Unity objects?

Let's say I have a basic map with a single box on it. I want to make many, many more of these cubes, so they can cover a large portion of the map, like this: Each box needs to be exactly one ...
0
votes
1answer
20 views

Unable to open project from a scene.unity file

The tutorial I'm following has provided its project files, and I'm trying to open them in Unity. Here is the project download link. You can also go to the tutorial webpage and scroll down to download. ...
-2
votes
0answers
29 views

AddExplosionForce not working? [closed]

AddExplosionForce doesn't do anything with this script, even though a RigidBody is added to each CubeParticule... What's the problem? using UnityEngine; using System.Collections; public class Force ...
-1
votes
2answers
19 views

NullReferenceException Error? [closed]

I'm getting the following error when I run the code below: NullReferenceException: Object reference not set to an instance of an object GameObject Particules; void Start() { ...
0
votes
0answers
24 views

Voxel tutorial NullReferenceException: Object Reference not set to an instance of an object

I'm working my way through this voxel tutorial in Unity. I'm on part 3, and it's showing me how to create a chunk within the world. I've copied the code, but I think I am missing something. The error ...
0
votes
0answers
18 views

Unity3D - Upload a image from PC memory to WebGL app

I need user to upload his(her) avatar picture from PC to game How can I create a file dialog and upload a image to WebGL game?
-2
votes
1answer
34 views

How to make my “first person controller” continue to turn left or right when key is pressed in Unity 5?

I recently posted this How To Make My First Person Controller turn left and right in unity 5 but now I'm having a slight problem when I press the key that turns my camera it only does it for a little ...
-1
votes
0answers
65 views

How to implement good GUI design in Unity? [closed]

I am new to game development in Unity. I would like to know how we can create an animated GUI similar or exactly like the one below?
-5
votes
1answer
47 views

Which Language for Suitable for Develop game in Unity? [closed]

I am starting to Develop a game in Unity.I have good knowledge in Java and Android. In Unity ,only C# and JavaScript are used. I know Java,I get confused in Choose a C# or JavaScript.Give me ...
0
votes
0answers
22 views

Blender to Unreal or Unity - will combining animations into one clip for a parent object to store effect workflow?

Hey so I have a gun and a set of rigged hands in blender, and I was wondering if I made a parent object for the gun, hands and everything, took all the animations respectively (such as right hand ...
-1
votes
0answers
25 views

Make Camera follow target only on Y Axis? [closed]

The script (attached to Main Camera) below makes the camera follow a specific target smoothly. But it follows the target on the x and y axis. What changes do we have to make so the camera follows the ...
0
votes
1answer
56 views

ARMv7 vs FAT in Unity Android Build Settings (release multiple valid APKs)

If I select ARMv7 instead of FAT (ARMv7+x86) in the Android Build Settings of Unity5-Free, the APK binary drops to half size. FAT => ~20MB ARM => ~10MB (Tested with an empty scene, no assets, ...
-2
votes
2answers
34 views

How can I differentiate 2 triggers in script?

I have two boxcolliders with triggers, and when I use the function OnTriggerEnter, even if I enter the first or the second trigger, it does the same thing. And I want a trigger to do a certain thing ...
0
votes
1answer
19 views

Unity - Instantiated prefabs do not adapt to UI Layout

I have a small container, where I want listed a series of buttons. I try to fill them at Runtime like this: using UnityEngine; public class FillWithGearData : MonoBehaviour { public Transform ...
4
votes
5answers
734 views

In Unity, how do I correctly implement the singleton pattern?

I have seen several videos and tutorials for creating singleton objects in Unity, mainly for a GameManager, that appear to use different approaches to instantiating and validating a singleton. Is ...