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

Why is the camera tilting around the z axis when I only specified x and y?

My goal is to program a camera to point towards the mouse cursor. I attached the following script to the Main Camera. using UnityEngine; using System.Collections; public class CameraController : ...
0
votes
0answers
9 views

SerializedPropertyBindings NullReferenceException

Using: Unity 4.6.1 Pro Visual Studio 2013 Pro, c# Team Foundation Connected to git vc Windows 7 Premium Building 2D iOS app (2D set up) Details: Periodically, this error is occurring. There ...
0
votes
1answer
38 views

Unity: How to make script work with duplicated objects?

I have an object in my game that, when clicked, causes the player to move toward it. It does this by sending its position to the player's SetTarget function. The player's Move function then heads ...
0
votes
0answers
12 views

Can not translate/rotate/scale skinned mesh

I have a Blender model with a skinned mesh and some unskinned meshes in it. After i import it into Unity, i can transform all the non skinned meshes with no hassle. But about the skinned mesh, ...
1
vote
1answer
22 views

Why unity increase the size of image when i use the image in unity?

I try to make a game in unity 2d. But when i drop the image in unity the image size increase 3 or 4 times. Can i fix that or its normal?
0
votes
0answers
43 views

Tutorial System in Unity C#

I am having trouble creating a tutorial level for my game in Unity. The first problem is efficiency. I have a script below, which displays the dialogue. And I want to know the best way to create goals ...
0
votes
1answer
20 views

How do I make one ui slider control all of the game audio?

I use the ui slider to control how loud is the game, what I want to know is how to make one ui slider control all of the game audio?
0
votes
1answer
13 views

How do I use playerprefs to make ui slider keep the sound settings?

I have not use playerprefs before, I want to know how to keep the change of the audio when the player change it throughout the game.
0
votes
1answer
13 views

Error BCE0043,BCE0044 and UCE001

I got my code right here: #pragma strict var hSliderValue : float = 0.0; function OnGUI(){ hSliderValue = GUI.HorizontalSlider (Rect (25, 25, 100, 30),hSliderValue, 00, 1.0); ...
1
vote
1answer
18 views

Function messages wont send when identical conditions will message to activate another function

So in working with my game, there aren't any syntax or compile errors, but there's this one bug that I've been working on to fix for a few days on and off and I can't seem to make heads or tails of ...
1
vote
3answers
53 views

In Unity, how do I make separate mute buttons for sound-effects and music?

I'd like to have a button to mute game sounds and another to stop the game music. How can I do this?
0
votes
0answers
9 views

video drm plugin for unity or unreal [on hold]

Im looking for drm plugin's for video playback of drm protected content. Im wanting to build a virtual movie theater for oculus rift and Im stuck on the drm portion for streaming content thats been ...
2
votes
1answer
38 views

Causes of Scene Build File Size Bloat in Unity

We are developing racing game for android and iOS. Our problem is final game build size is getting more than 100+ mb. So here is what we tried, to reduce it by compressing textures. ...
1
vote
2answers
59 views

In Unity, how do I move my character to an object when I click on it?

Basic question here, and I feel like I'm close but can't quite get it. I have an object--it's a pot on a stove--that is in my 2D game. There will be multiple pots that appear and disappear in the ...
0
votes
0answers
37 views

Unity3D 5.1 UI messed up

Within my canvas I have 2 panels. One has buttons in it and the other has text (description of the pressed button). Text is very blurry and when i press play the alignment of the objects is always ...
1
vote
2answers
26 views

Applicaton.ExternalEval(String script)

I was wondering, if Application.ExternalEval(String script); in Unity3D can return something. Like:String playerName = Application.ExternalEval("prompt("Please enter your name", "player1")"); Thank ...
0
votes
0answers
16 views

Add Atten property in Unity Shaderlab

In Unity Shaderlab shader, Is there any way to apply _Atten value? Using surface shader, and vertex/fragment shader I can do it easily. But, I didn't find any reference to do that in Shaderlab ...
0
votes
0answers
19 views

Odd behavior in Unity 5.1 2d project prefabs

I am very worried something is corrupt in my project. I am making a 2d top-down rogue-like and am currently using prefabs to generate enemies from. I have started running into an issue where I get a ...
-1
votes
1answer
20 views

Is there a way to assign resource into a variable in the inspector programmatically?

I want to add resource to an inspector directly which could be done by drag and drop resource to the inspector. However, I want to know if there's a programmatic way to do this so, I will not need to ...
0
votes
1answer
24 views

Unity - PoolingSystem failing to instantiate

I am wanting to spawn monsters into my scene in Unity. I was told to use a Pooling System, so I got the free one Unity offers in the Asset store. I have followed the little documentation that there ...
0
votes
2answers
32 views

UI button not working

Every time I try to click on the button, nothing happens. I am linking some picks to help everyone answer my question. I have added a event system. I have a canvas. The button is set to interactable. ...
0
votes
0answers
22 views

Unity - Change editor play/stop button positions for dual monitor layout

It is possible to change play/stop button positions in editor? I am trying to make a layout for dualfullscreen. But the buttons are right in the middle of the two screen. So it makes it hard to click ...
1
vote
1answer
46 views

Generating mesh along path

I'm currently trying to generate a path along an array of points(Vector3) This is the result i'm currently getting The dark gray points are the given path The red points are the generated verticies ...
0
votes
1answer
40 views

Unity C# new Vector3 problem

I get an error every time I try making a line with "new Vector3". Example 1: private Vector3 playerPos = new Vector3 (0, .5, 0); gives the error: The best overload method match for ...
0
votes
1answer
21 views

How do I fix the YAML error in Unity 5?

I'm using Unity 5 and I'm getting an error in a YAML file. The error is "Unable to parse YAML file: [mapping values are not allowed in this context] at line 1" This comes up every time I open the ...
0
votes
1answer
21 views

How to Reciprocally draw on a 3D mesh and 2D UI Image in Unity?

My question is a bit involved so I'm going to split it into parts and attach a picture. 1) In Unity I'd like to be able to draw a line on a 3D worldspace mesh with the mouse. 2) As I'm drawing on ...
2
votes
1answer
21 views

Where does Unity save the editor window layouts?

In every project there are the CurrentLayout.dwlt and CurrentMaximizeLayout.dwlt files, but those, as the name implies, are just the current layouts. I've been unable to find the general files where ...
-3
votes
0answers
24 views

How can I mesh Cubes in length, width and height in script? [on hold]

I'm trying to make a voxel terrain like this image. Can someone make a script? Thanks :)
0
votes
1answer
24 views

Xcode project runs on device, but not simulator

I built a 2D game using Unity3d 5.1.1. When i build and run the project with iPhone connected, the game runs fine on the device. But when i select simulator instead of device, i get an error : " does ...
-3
votes
1answer
37 views

Unity Licensing

I'm sorry if this gets asked a lot but google gives up answers from back in 2008 and all sorts so could somebody please clear up a couple of questions for me please. I want to make 2D games in ...
-1
votes
1answer
40 views

How is the relationship between Scripts and Objects in Unity?

If I don't attach the Script to the Object, will be the code able to "see" the object? When I need to manipulate (such as enabled() or a transform()) two or more Objects, do I need to attach the ...
3
votes
2answers
40 views

Render Occluded pixels to gray color

In 3d space, objects can be occluded by another objects. By depth testing, the occluded faces are skipped rendering. Only the nearest(smallest) depth value pixels are drawn. But, sometime we need to ...
0
votes
0answers
23 views

Animation running on startup

I am trying to include a door that opens automatically upon entering into a collider. The animation is working correctly with the exception that it runs one cycle when starting. I have tried to stop ...
2
votes
2answers
51 views

Unity2D: Rendering multiple sprites as a single one

I'm creating NPCs in Unity 2D using C#, and I have 16x16 sprites for body, helmet, clothes and weapon. All these have a tile set which has been split in unity. I'd like to be able to render one of ...
-3
votes
0answers
38 views

Accessing other scripts variables [closed]

I'm trying to check if the two players in my game are standing on two specific spots. I included "scene3" within my build and no errors pop up even when I get my two players to stand on the specific ...
0
votes
2answers
66 views

WaitforSeconds() not working as it should

I searched for using WaitforSeconds and used as it was mentioned(using a return type of IEnumeration and using coroutines instead of update). but it did not work. Initially it showed Waitfor Seconds ...
0
votes
0answers
55 views

Transition Idle to Running not smooth

http://gyazo.com/441ba7f4962cf1470692b437b8ae47a4 Hello, I'm following the unity tutorial for 3D character movement and, I'm trying to make the transition to idle and running but for some reason the ...
0
votes
0answers
21 views

Unity First Person Controller not jumping after adding the Character Motor [on hold]

When adding the Character Motor in the FPSController I found out that I could not jump at all. I already tried to fix this issue and the values are set to there default format. What might be the ...
-3
votes
0answers
16 views

Input Manager Problem [closed]

On the tutorial on this subject the teacher used this code to map the jump key if (grounded && Input.GetKeyDown (KeyCode.Space)) { anim.SetBool("Ground", false); ...
0
votes
0answers
31 views

Bad / clipped pixel rendering of a 2d sprite

I'm testing things in unity but I've run into this problem and i can't solve it... I have the following configuration: Images of the problem: As we can see in the problem images the pixels ...
0
votes
2answers
32 views

Optimization for lots of UV coordinates update for tilemap animation

In my game, I procedurally generate tile map mesh and modify it when travelling around the "world". Each tile is a quad. So they each, have their own UV points. (Obviously) I am using Unity for this, ...
0
votes
1answer
26 views

What are the steps in creating app icon for ios?

I have completed developing my game (iOS) and now preparing it to submit to the appstore. However, i have some confusion regarding app icon. 1>In Unity build->player settings, there are various sizes ...
0
votes
0answers
23 views

Prefabs and materials not working on another system

Our problem seems like rare, as I did research and none find to answer my question. The problem is, I have created prefabs ,materials on my system and then exported it to my partner's System. Now ...
1
vote
1answer
53 views

Unity 2D Graphics Optimization For Mobile Devices

I want some advices on how to create graphical assets for mobile devices so that the game will have a good performance and not lag on mobile devices. I had 3 issues with my games and that is they ...
0
votes
1answer
27 views

Touchscript: multiple overlapping colliders

Im building a tower defense game on unity and would like to allow the player to pan the camera on a large map. I am using touchscript to handle the touches. I made a testing project with the ...
0
votes
1answer
24 views

Is it possible to load asset bundle dependencies manually in Unity 5.0?

Is it possible to tell Unity to not load asset bundle dependencies automatically so they can be loaded manually. If so, how can this be done?
0
votes
0answers
52 views

How to create a minimap in unity3d [closed]

I'm creating a FPS with a friend, now we're trying to make the minimap but it doesnt work...I also watched some tutorials on youtube anf searched on google but it doesnt work out for us. This is what ...
-1
votes
1answer
27 views

Camera rolls instead of looking up and down

I got a small script from the official Unity forum which is: public class MouseRotationUpDown : MonoBehaviour { public float RotationSpeed = 5; void Update () { ...
0
votes
1answer
33 views

How can an asset bundle's resources be destroyed after destroying the compressed bundle data?

Using: AssetBundle.Unload( false ); Will clear the compressed asset bundle data. This, unfortunately, destroys the bundle object as well, which means nothing is keeping track of the loaded ...
1
vote
1answer
43 views

Why is Unity 2D Alpha-Blurring my pixel sprite?

So I have just brought in a place holder block for the ground in unity 2D, and it's 16 by 16 pixel image, and for some reason unity is automatically blurring the image. So I was wondering if there was ...