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

For whatever reason, when a certain boolean variable is true, the Unity editor crashes

So in my game I've got a timer script, which counts down unless the game is paused, but whenever the variable for pausing is true, something in the timer script makes the editor itself crash, and I ...
2
votes
0answers
11 views

How can one add a level to an already published ios/android unity3D game on a daily basis?

How can one add a level to an already published iOS/Android Unity3D game on a daily/weekly basis? I know this probably isn't feasible but it won't harm if I just made sure of it. Our game requires to ...
0
votes
0answers
4 views

Adding Animation to Object—Unexpected Behavior

I've been following the Unity 2D roguelike tutorial and I'm a bit confused about something. When he drags a series of sprites to his player object, a dialog box appears that prompts him to name and ...
1
vote
0answers
7 views

How to detect collision position and that position's texture color in Unity?

I have a prefab and I use Circlecollider2D for physics operations. I want to detect the color of the contact position of the collided objects ? Is is possible by using Unity's collider classes ?
-3
votes
0answers
43 views

Unity - C# How to create very Big Number?

public static float a = 9999999999999999999; This is the biggest variable that can create. but is not enough for me I need to get to this public static float a = ...
0
votes
1answer
23 views

Generating hidden box collider between two game objects in unity

I'm trying to implement flappy bird clone using unity. I'm creating two obstacles at random y position. I would like to create a hidden box collider game object between them, but I'm struggling with ...
0
votes
1answer
18 views

Unity 5 Client RPC call: Failed to Invoke ClientRpc

I have a Unity 5 client and server running. On the server a path is generated and I want the client to receive the position of each target node on this path. Following the Client RPC calls section ...
0
votes
0answers
19 views

DirectX 11, Render vertices as points in Unity

I'm attempting to asses what is the most efficient manner to render vertexes as points in Unity with DirectX 11. I'm attempting to create a point-cloud instancing shader, that creates vertices in ...
4
votes
0answers
31 views

Short cut grass Shader? or however you do that

I've been looking at some screenshots from games like Rocket League #1 Rocket League #2 and Fifa Fifa #1 and i started wondering how you would achieve the short cut grass effect. Is it a ...
0
votes
1answer
10 views

Audio slider doesn't change value

For some reason, my slider and audio resets back to 0 when I stop and play the game after I changed the value. Here is the code, I can't spot anything wrong with it: using UnityEngine; using ...
-1
votes
0answers
18 views

How do i make my charecter turn 180 degrees when it hits a slope limit?

I am currently working on a game where you are a plane and i want so in the case of the plane hitting a wall with a relative to the charecter degree higher than 45 it makes an instant 180 turn.
0
votes
0answers
19 views

Gravity not being applied to character, using character controller

So I just copy and pasted the unity example class to use with my character controller. public float speed = 6.0F; public float jumpSpeed = 8.0F; public float gravity = 20.0F; private Vector3 ...
0
votes
0answers
16 views

How to programmatically change sprite sheet sub-sprite name

I am trying to change the name of the sub-sprites of a sprite sheet. I have searched and tried everything I can think of and cannot get it to work, which makes me think it can't be done at this point ...
0
votes
0answers
29 views

Outline with toon shader in unity is way too large

This is what's happening to the model I've attached this toon shader to. It seems to be creating this black hole of some sort and I can't figure out why and how to fix it. I would just like it to ...
-2
votes
0answers
18 views

Recommended BaaS for single player game

I have been searching through various BaaS providers and looking for an excellent BaaS provider. My lists so far includes: GameSparks PlayFab Parse BaaSBox BrainCloud The game I'm working on needs ...
1
vote
0answers
54 views

Unity (C#): How can I create dialogue to be used in my game? (also critique my system?)

I've created my own system for handling dialogue. There's a class for each 'node' or part of dialogue. It contains the following variables: identifier (identifiers are unique for each NPC, but not ...
2
votes
1answer
42 views

RPC's in Legacy Unity, what to use in Unity 5.1?

I have created a small experiment in 5.1, a server has an AI character pathfinding around a map over a grid, so its a straight line node to node before it reaches the end. I would like for the ...
0
votes
0answers
19 views

Why is my TransformFromPoint returning false values?

I have been using transformFromPoint a lot of time in my game. Though recently I stuck at the following: target.TransformFromPoint(target.localPosition) The output should give me (-5,0,0) but its ...
-1
votes
0answers
25 views

Shader request (cg shader provided) : an xBR scaling shader for Unity

I'd like to scale up my game view from a native resolution of 512x300 to 1024x600 using the xBR cg shader found here : https://github.com/libretro/common-shaders/tree/master/xbr Here is a question ...
1
vote
0answers
12 views

Do realtime reflection probes and precomputed GI work on iOS in Unity 5?

Seems they don't from my tests but just to double check. My setup is made up of a few objects marked as static, all sharing a standard shader material with some emissive color, GI set only to ...
1
vote
1answer
31 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
13 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 ...
2
votes
1answer
63 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
14 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
28 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
51 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
24 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
18 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
14 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
21 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
59 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
12 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
43 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
64 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
38 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
34 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
19 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
22 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
25 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
36 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
23 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
47 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
42 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
23 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
24 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 ...