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

Unity 5 blendshape on a part of mesh

I have a blendshaped face mesh on rigged character in Unity 5. I imported whole character with face from Maya using .fbx format. But I'd like to have a single mesh (body + face) since having separate ...
1
vote
1answer
76 views

Unity C#: Game Object Movement Issue

I'm trying to move a game object within a set x and y range. I thought the code below would work, but it does nothing. The idea is the player controls the platform and tries to move under the ball. ...
1
vote
0answers
33 views

Avoiding audio transcoding in Unity?

I'm working on a project where I only have access to MP3s versions of audio tracks I'd like to use. Unity is trying to be helpful and recompressing everything as Vorbis, which is not ideal due to ...
4
votes
1answer
95 views

Getting unity to act the same way in a test as it does during runtime

I've just started using unity tests with the built in editor tests. After making my test and finding out that it constantly failed I debugged the code and found that a static object was set to a new ...
0
votes
0answers
62 views

How to darken certain parts of my scene, Unity3D

I'm trying to darken certain parts of my Unity3D scene (an enclosed room to be specific). I've tried researching this, but couldn't find anything. I've read that using Lightmapping and Light Probes ...
4
votes
1answer
99 views

Unity camera tilt

I'm programming a camera for an RTS and I'm stuck on tilting the camera up and down. I want the camera to tilt between 20 and 70 degrees using the Z and X keys. This is my code: using UnityEngine; ...
0
votes
1answer
44 views

What is the semantic meaning of the position of Unity's transform component?

What is the meaning of the position in a transform component of a game object in Unity? Is it the center of mass?
1
vote
1answer
85 views

Can't call GameCenter in my Unity game for iOS

I'm trying to integrate Game Center into my Unity 5 project and facings troubles. It seems that authentification is OK when the game starts on iOS device, a notification appears, but leaderboard ...
1
vote
0answers
36 views

Unity: onEditEnd and onSubmit only firing from Return key

I have an InputField in my UI, but currently I can only submit its contents via the Return key. I tried mapping other buttons to the Submit action (e.g. the tab key on keyboard and the X button on my ...
-1
votes
1answer
108 views

WebGL - Open URL in new tab? [closed]

How to open URL in new tab for WebGL? Tried Application.OpenURL("url"). But it's opens a tab in same window Thanks
0
votes
1answer
84 views

When using Unity 5, is there a way to print/save/identify the last n lines of code that were executed at a specific point?

So, here is what I am after. Is there a way to identify which were the last n lines of code that were executed in Unity 5 (with C#) at a given point of the game? I know I can use Debug.Break() to set ...
0
votes
3answers
256 views

Problem with Input.GetKeyDown to set a counter in Unity: multiple values in only one pressing

Using Unity 5, I want to use have one keyboard key ("f") increase a counter when pressed. It means, using Input.GetKeyDown("f") function in a way that: if "f" is pressed when the counter=1, then the ...
0
votes
0answers
15 views

Creating 2vs2 room with friends in Unity with PUN

I would like to create a game mode 2vs2 with our friends. I have no idea where to start off. How can we send them notification regarding some of our friends is looking for party. I think this is ...
1
vote
1answer
41 views

Check if GameComponent is ready in Unity?

I am trying to create a MessageBox in Unity, but I'm having some troubles in C#.. This is my code (I'll explain my problem later): MsgBox.cs public class MsgBox : MonoBehaviour { private ...
0
votes
0answers
98 views

Oculus DK2 won't display Unity 5

I am having a problem with my game showing on my Oculus. I checked mark "Virtual Reality Supported" in Player settings. When I run the exe, I right click to use the option to play on Rift, but it just ...
1
vote
2answers
178 views

How are methods like Awake, Start, and Update called in Unity?

I'm developing with Unity 5 and I know that there are some methods you can use like in the code below: public class MyGameElement : MonoBehaviour { private void Awake() { } private void ...
3
votes
2answers
107 views

How to make an event happen only at the first start of the game?

I want to know how to make something happen only once like a tutorial in a game which appears only when you first start your game and then when your game got saved to a further point it never appears ...
1
vote
1answer
64 views

Entity Interpolation (Lost Packets?)

I'm working on a networked game for a while. I'm aware of client-side prediction and lag compensation (shooting) but I'm not sure about entity interpolation client-side. I'm sending update/sync ...
1
vote
1answer
121 views

Rigidbody stuck on the edge of two colliders

could You please help me with that weird bug? I've seen other people's posts about that bug, but I couldn't really understand how to fix it. As You can see, the boxes are standing right next to each ...
0
votes
0answers
59 views

Parse RestAPI in Unity WebGL build not working on Google Chrome

I am trying to integrate Parse in Unity Webgl build. As there is no specific SDK for WebGL provided by parse so for parse communication i am using RestAPI to Get the data from parse. As provided in ...
1
vote
2answers
74 views

Continous repeatable object/image moving horizontally unity3d

I want to move objects on the screen horizontally. And the user has to pop the object by touching it. When user touch it, it gets destroyed and new object comes randomly. For experimenting, I used ...
1
vote
1answer
44 views

How do I run an APK in a device from the Unity IDE without rebuilding the binary?

I know that the button Build creates the APK in my disk. And the button Build and Run creates it and sends it to a real device if connected via USB. Question: Is there any way to "Run" from the ...
3
votes
1answer
109 views

The better performance in occlusion culling, plane or quad?

In the above picture, when the left camera shows two small parts of the quad, all of that is rendered (it can be a very large quad). But in the right one only two small parts of it is rendered. ...
1
vote
1answer
54 views

Bring GameObject in front of GUI Texture

I have a GUI Texture that dims the screen, however I want certain game objects to not be dimmed. I tried putting them in front of the GUI Texture, but it doesn't work. How can I do this?
1
vote
2answers
68 views

transform.Translate only for 10 units?

How can I transform.Translate (Vector3.up * Time.deltaTime * 2); a GameObject for 10 units? I mean only make it go up 10 units (10 y units).
2
votes
2answers
52 views

Ball passing through box collider

My ball which has a circle collider 2D component occasionally passes through my box collider2D object. Both objects have rigidbodies attached. I have set a high mass for my box collider and a small ...
0
votes
1answer
69 views

How to make Frame Independent Timer Clock

I want to make a frame Independent Timer that it work consistently across different computer configuration.
1
vote
1answer
80 views

How to get dynamic RigidBody rotation/tilt on uneven platform?

I have a rigid body with PolygonCollider2D which has some complex circular shape and I'm using uneven platform. Im using Following code to move the object forward CharacterRigidBody.velocity = new ...
1
vote
1answer
65 views

Send Messages in Update Function Button UI Unity 5

I've been working on a project where i need to fulfill the following behaviors: 1) when clicking anywhere in the screen the character should do something 2) there are some buttons so except when you ...
0
votes
1answer
49 views

Can Soomla directories be safely moved one directory down in Unity?

I'm integrating in-app purchases in my game. To do so, I chose to use Soomla (http:soom.la) asset. I use the free version registering for the grow bundle. I've downloaded a unitypackage named ...
1
vote
0answers
36 views

Examples about how to tie AI actions to animations?

I wrote a simple test AI for a character; and all that it should do is to be idle while a parameter is below threshold; otherwise it should perform actions based on other parameters. So for example ...
0
votes
0answers
70 views

Unity - Increase the size of elements in a ReorderableList

So I have the following List: Which I have created with the following code: [CustomEditor(typeof(Data))] public class dataInspector : Editor { private ReorderableList ...
0
votes
1answer
54 views

How To Update Animation in Unity After Changing the Names of Objects in Mechanim

I have an animation clip I made with Mechanim. But when I changed the hierarchy of the objects in the children, it stopped working! The text says ( Missing! ) Why is it breaking? How can I fix it?
0
votes
1answer
145 views

How can I generate 3D noise in chunks for terrain?

I'm trying to create a voxel engine that uses marching cubes to create smoothed terrain. I have most of it implemented, but I'm struggling with how I should create a noise function in three ...
4
votes
1answer
110 views

Unity - Adding more functionality to a List<T> Inspector

Let's say I have the following code: public List<Armor> armors = new List<Armor> { new Armor() { name = "Black set", folder = "black_set"}, new Armor() { name = ...
1
vote
0answers
85 views

Unexpected behaviour after adding animator and Unity editor crash

I have realy strange problem which accured after adding animator(I suppose) to prefab Object. Situations looks like follow: I had object which have only sprite renderer, collider2D and script ...
2
votes
1answer
109 views

Unity 5 - Time Remaining displaying in scene but not in Game

I'm currently learning game development in Unity from this course on Lynda.com. Currently I'm trying to displaying the time remaining in the game after it has been set to 5 minutes initially. When I ...
1
vote
0answers
32 views

Unity keyboard GUI navigation priority

I noticed something strange while playing with my menu on keyboard. I have four items arranged in a square (i.e. the top-left item should be able to navigate to the top-right and the bottom-left). If ...
1
vote
0answers
27 views

Real-Time Speech & Verbal Communication with a Mecanim Character

What would be the simplest method of integrating real-time verbal communication within a mecanim character that is already being used in a Unity app/project? Something like an SDK or toolkit? I have ...
0
votes
2answers
189 views

How to make rigid body move smoothly on uneven platform?

Right now I'm using Rigidbody2d for the game character along with polygon collider 2D(2d platform game). I'm beginner hope I'm using correct components. And transform to move character from left ...
0
votes
0answers
18 views

Log in with amazon (lwa) in unity

Has anybody got any experience with "Login with amazon" in unity (for android)? I've got it working with GameCircle but that wont give me the access token which I need to verify the user on my ...
0
votes
0answers
62 views

Get access token via Log in with google in unity

I would like to be able to login with my google account in my unity game. I've tried using Play Game Services, which imo would be the best solution, and I can log in and get name and ID and stuff, ...
0
votes
1answer
154 views

How do I remove specfic OptionData from Dropdown?

How would I remove one of the elements from the dropdown? For example, how would I remove Sprites? Here is my code: public Dropdown researchFeatureDropDown; researchFeatureDropDown.options.Add(new ...
0
votes
1answer
121 views

Transform components in ECS

Many game engines I've seen which are based on an Entity Component System. It has some kind of a Transform Component as a necessary component attached to all of their entities. While this does seem to ...
3
votes
1answer
155 views

How to blur entire scene but a specific spot in Unity?

What I want is basically: A way to blur every object/sprite on the scene, but have a "blur-free" circular zone, that can move. And everything that's behind that circular zone won't have the blur ...
0
votes
1answer
41 views

Change button sprites in scrollview Unity3D_5.2

I have a scroll view with lots of buttons on it. when i press one button, that button needs to change the sprite and stay like that. if any other button (or same one) is pressed previous button needs ...
1
vote
1answer
70 views

Prediction of collision place and time in Unity [duplicate]

I have two moving objects. I have chosen trajectories for objects that they would definitely collide if they don't change speed or trajectory. Is there easy way to check at which point and time the ...
0
votes
1answer
64 views

ArgumentNullException Parameter name: format [closed]

I have made a simple game using Unity with Vuforia and exported for Android and iOS. It works fine on Android, but on iOS it crashed and gave the error: ArgumentNullException: Argument cannot be ...
0
votes
0answers
27 views

Handling parametric and reusable sprite animations

I'd like to create a simple logic that handles sprite animations in a way that they can be easily reproduced and parametrized. As example, I want to perform some basics animation like transitions and ...
1
vote
1answer
81 views

Problem in power up generation

I am trying to instantiate an obstacles, Currency and Power up in the game. i am using same script to instantiate all. obstacles and currency are working perfectly but power ups is not generating in a ...