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)

0
votes
2answers
24 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
1answer
25 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
19 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
18 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
16 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: ...
1
vote
1answer
20 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
25 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
18 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
14 views

Abstract Factory Pattern for Implementing AdNetworks on Multiple Platforms

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, ...
0
votes
1answer
37 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
50 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 ...
0
votes
1answer
101 views

Displaying Trajectory Path

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
19 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
30 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
30 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 ...
1
vote
3answers
56 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
32 views

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

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
71 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 ...
-2
votes
1answer
11 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

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
12 views

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

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
42 views

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

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
66 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
41 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
18 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
28 views

AddExplosionForce not working? [on hold]

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
18 views

NullReferenceException Error? [on hold]

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
33 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
52 views

How to implement good GUI design in Unity? [on hold]

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
43 views

Which Language for Suitable for Develop game in Unity? [on hold]

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
47 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
32 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
697 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 ...
-2
votes
0answers
33 views

Rebuilding Unity Project from DLLs? [duplicate]

I have lost my Unity project which was on my hard drive. Fortunately, I have found some files that were associated with my project. See here. Now, I have successfully converted Assembly-CSharp.dll ...
0
votes
0answers
14 views

Why do I get 3 lines of log at Monitor.exe when using Debug.Log in Unity?

I'm debugging a real device. In a GUILayer.Button I've put a single Debug.Log() message, like in this code Code: if( GUILayout.Button( "Click to Test." ) ) { Debug.Log( "XAVI Clicked!" ); } ...
-2
votes
0answers
40 views

Switching 2D Game Engines [closed]

Currently I am using Unreal Engine for 2D because of blueprints, I was wondering if Unity has something as good or better like Unreal Engine's Blueprints?
-3
votes
0answers
15 views

Need a Sprite creator program for Ubuntu [closed]

Is there any program to create 2D sprites for games with Linux support?
0
votes
0answers
10 views

Unity Creating XCode build causing too many XCode Changes When using GIT ( SourceTree )

I am using Unity 5.2.1f, XCode 7.2 and SourceTree. There are multiple developers working on the same project. After we updated to Unity 5.2.1 and Xcode 7.2, it always shows too many changes in the ...
0
votes
0answers
15 views

Different Cell size in a Unity3d New UI grid

I want to create a Grid in which few cells are tall, few are wide, it’s not a homogenous grid. How Can I do by attaching a Grid Layout Group component to the parent of cells? I am using Unity 5.3.2 ...
0
votes
3answers
35 views

How to access UI elements in a canvas in UnityUI

I am looking for elements on a canvas (a textfield and a slider); so I can retrieve values and pass them to a function. But so far I can't figure out how to access them; I can see the methods of the ...
1
vote
1answer
42 views

Simplyfing/dissolving octree to simple boxes by adjacent octants with similar traits

I am looking forward to create a navigation volume to be utilized by AI actors. The approach I am trying to tackle here is to first generate an octree and associate with respectable flags/data (type, ...
-1
votes
0answers
19 views

Unity Menu Template [closed]

Is there a Unity Asset or free project that offers a menu template similar to this one? I tried searching but I only found templates for professional games...
-1
votes
0answers
56 views

Rebuilding Unity Project? [closed]

I have lost my Unity project which was on my hard drive. Fortunately, I have found some files that were associated with my project. See here. I have successfully decompiled the DLL's to C# with a DLL ...
4
votes
1answer
84 views

Does distant and large objects use up a lot CPU usage?

Okay I'm new to Unity, and I'm making a space sim pc game. You know, space is huge, light years of distance between stars. Even if I set 1 AU (150,000,000 KM) as 1 unit, 1 light year will be 63,000 ...