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
0answers
26 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
0answers
35 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
15 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
20 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
24 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
2answers
35 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
0answers
22 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 ...
2
votes
2answers
62 views

Efficient use of pathfinding

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
10 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
26 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 ...
0
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
10 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
41 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
62 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
38 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. ...
-1
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
22 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
50 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
24 views

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

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
46 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
4answers
652 views

Correct way to implement Unity Singleton

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 [on hold]

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 [on hold]

Is there any program to create 2D sprites for games with Linux support?
0
votes
0answers
9 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
38 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 [on hold]

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? [on hold]

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
79 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 ...
0
votes
0answers
42 views

Unity 5 Command not being sent

I have a client server build in Unity 5. I want to send a command from the client to the server with a GUI button click, this is for testing purposes. So on my client all I want is to click a button ...
1
vote
1answer
44 views

Darkness Emitting Light Source Unity

I was wondering if it was possible to create a light source in Unity, one that "sucks" light from the environment. Negative value does not seem to work in Unity, as pointed out by many. It is quite ...
0
votes
0answers
28 views

how can I load a sprite to a sprite variable in my script?

I want to add to my Sprite variable x2 a sprite in my code. Here's my code: Sprite x2; void Start () { x2 = ? } how can I tell the code to add a certain sprite to that variable?
0
votes
1answer
21 views

How can I add an IsTrigger propriety from code? Unity

I made an gameobject in my script and i made it a rigidbody, and added it a boxcollider, but I dont know how to tell the program to make it a trigger. Here's my code until now: multi = new ...
0
votes
0answers
26 views

Unity terrain engine [closed]

I bought the yughes pines and bushes v2.0 and when i grab the default bushes and put them on the tree tab and then place a bush it says "Must use Nature/Soft Occlusion shader. Otherwise billboarding ...
0
votes
0answers
27 views

NavMesh.SamplePosition() fails after rebaking NavMesh?

So today I was refurbishing a scene when this happened. After baking a new Navmesh the SamplePosition() returned only infinity. I tried a lot of things out but eventually went back to an older version ...
0
votes
3answers
38 views

can someone help me with this code for my platformer. ive been working on the script for an eternity but unity keeps saying there is an error [closed]

using UnityEngine; using System.Collections; public class player_controler : MonoBehaviour { public float moveSpeed; public float jumpHeight; // Use this for initialization void ...
0
votes
1answer
19 views

Unity-UI not scaling correctly on android

My UI appears extremely small when i build and launch my game on my android device. Im working with unity 4.6. I've tried changing the UI scale mode of my canvas to all 3 types. Scale with screen size ...
0
votes
1answer
33 views

Add singleton to an existing gameobject in Unity via script

I did notice that if I assign scripts that generate singleton classes (for my managers), to an empty game object, everything works fine. Now I would like to start the scene with the empty game ...
0
votes
2answers
71 views

In Unity3D, how do I move the camera with the mouse without spinning it on its axis when looking down/up?

I'm currently trying to recreate how Space Engineers work with their first-person acmera in Unity 3D. I'm currently stuck on how to make sure the camera doesn't spin around its axis when looking ...