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 (2)

0
votes
1answer
149 views

Unity3D - Using AddRelativeForce to push an object forever in zero gravity environment

Ok, I use AddRelativeForce to basically push an object. But it suppose to keep flying and keep accelerating as I hold down the key because I didn't set gravity. I just started Unity3D last month, so ...
1
vote
1answer
66 views

Design basics for Unity game: sport management type

I am planning the classes for my game; and I am having problems to figure out the best way to connect them. In my game I do not have the classic structure of say a FPS; where you have the player ...
0
votes
0answers
42 views

Are CreateOrthonormalBasis and OrthoNormalize equivalents?

I've been looking at the functions in Unity's Vector3 class and Unreal's FVector class. I have been trying to find overlapping functions from each but can't figure if CreateOrthonormalBasis and ...
0
votes
0answers
76 views

Is character controller for 2d too?

Unity doesn't mention anywhere in manual. In a 2d physics platformer I'm using rigidbody2d to my player.So can character controller be used in 2d game? If not are there any easier option than dealing ...
1
vote
1answer
170 views

How to load sprite from JSON?

i know how to load text, but idk how to load texture from json.. this my c#: public void soalbegin(){ filepath = System.IO.Path.Combine(Application.streamingAssetsPath, "soal.json"); ...
0
votes
1answer
59 views

How can I save a score for a web game made in Unity and load it when the game starts again?

In other words, how can I load the progress for a game? I only want to store a score and load it again when the game starts (ex. if I get the 100 score and close the game, when I come back, I want to ...
5
votes
3answers
422 views

Multiple Colliders in Collision

I have an object that has a front collider, left collider and right collider. When a collision occurs, I notice that there are situations where the front collider and left collider/right collider has ...
0
votes
0answers
194 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
87 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
34 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
118 views

How to make an Assert.IsNull test pass when the value is reported as <null>?

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
71 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
143 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
47 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
131 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
45 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
145 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
89 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
419 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
16 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
50 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
136 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
300 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
112 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
79 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
171 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
77 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
91 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
61 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
131 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. Which ...
1
vote
1answer
86 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
70 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
63 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
80 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
96 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
69 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
52 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 unity3d-...
1
vote
0answers
38 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
94 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 reorderableWeaponsList;...
0
votes
1answer
91 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
200 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 dimensions....
4
votes
1answer
168 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
107 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
121 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
37 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
33 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
224 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
23 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 server....
0
votes
0answers
84 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
280 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 ...