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
2answers
93 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
1answer
419 views

How to import animations from one model to others

I have two models (one animation in each) which I got for free from Mixamo. I imported them in Unity and they look like this: http://imgur.com/atjQbkI Justin@Idle and Justin@Walking. As can be seen ...
0
votes
0answers
26 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
22 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
0answers
45 views

3D Noise for Terrain in Chunks

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 ...
0
votes
1answer
18 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?
2
votes
1answer
4k views

Sending RPC calls from server to client inside Unity

In my game inside Unity, I have two scenes setup. One for the main server ( acts like authoritative server ) and the other scene for my client. The game starts once my client connects to the server. ...
4
votes
1answer
58 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
1answer
203 views

Trying to get reference to Button in Javascript Unity3d

I've this simple script in Unity3d: #pragma strict public var topLeft : UnityEngine.UI.Button; public var topCenter : UnityEngine.UI.Button; public var topRight : UnityEngine.UI.Button; public var ...
3
votes
1answer
91 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 ...
1
vote
2answers
252 views

(Unity) Drag and detect object below when dropping

I'm studying game development in Unity and I want to create a idle/clicker game like Cow Evolution. I'm using OnMouseDown, OnMouseDrag and OnMouseUp to move the GameObject around the scene. Now I ...
1
vote
0answers
31 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 ...
1
vote
1answer
63 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
1answer
577 views

Game object position issue in unity3d

I have a set of objects placed on the same layer where all the objects are invisible except one. When I drag an object into a selected area, the current dragged object gets destroyed, and the object ...
3
votes
2answers
309 views

calculating torque from angular momentum considering inertia moment

so I am trying to determine exactly how much torque to apply to a 3d model to make it rotate at a particular rate. I apply force from the location of each engine on the craft so if one breaks the ...
2
votes
1answer
58 views

Unity Controller navigating UI

I want players to be able to use a controller to navigate our game's menus. We use Unity's new UI, and in the EventSystem have specified a controller axis for our vertical axis. However the selection ...
1
vote
0answers
18 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 ...
0
votes
1answer
40 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 ...
2
votes
2answers
639 views

Why doesn't my C#6 code compile in Unity?

Why can't Unity work with C# 6 code? It always gives me compiler errors. Here are some code examples: using static System.Convert; using static System.Environment; ...
0
votes
1answer
59 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 ...
1
vote
0answers
17 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
3k views

Basic C# Script in Unity3D for firing a bullet (not working)

working on a 2D top-down view game. Im trying to get my player to fire a bullet when spacebar is pressed. I added a component to my player (a bullet sprite) and placed it under his gun (so you can't ...
1
vote
1answer
160 views

Unity 5 Server Side Physics - Alternative to constant position update?

I am looking into reducing load in client server games for a uni project and am looking at physics. The idea is that if a very low powered device tries to carry out some physics heavy action that it ...
0
votes
1answer
28 views

Unity iOS build failed : Apple Mach-O Linker Error

We are using Unity v5.3 and Xcode v6.3. When we are trying to build for iOS, it throws error in build process: "Apple Mach-O-Linker Error" - with tons of errors similar to this: duplicate symbol ...
0
votes
0answers
11 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
20 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, ...
2
votes
2answers
440 views

Unity NGUI Arial Label looks different in iOS after updating Unity to 5.1.1

I am using NGUI and I have a UILabel. It uses Unity dynamic font Arial. Bold. No effects. This is how it looks in the Unity editor: And that's how I want it to look. When I build it in iOS, it ...
1
vote
1answer
426 views

VertexColor shader is not working correctly in built application

I want to change the vertex colors of my mesh. The light sources must not affect the objects with this shader, its lighting must be determined only by its vertices colors, so I turned the Lighting ...
2
votes
1answer
258 views

How can I more efficiently paint grass onto a large terrain object in Unity?

I'm trying to paint a grass onto a large terrain and I want it to cover the entire terrain. Since the brush size can't go past 100 it would seem that I'm stuck painting the entire thing with a small ...
2
votes
1answer
650 views

Why does my Unity Android export fail with “No resource identifier found”?

When I try to export my Unity game to Android, I get this error: CommandInvokationFailure: Failed to re-package resources. See the Console for details. F:\Android SDK ...
-1
votes
1answer
79 views

How to disable Camera from tilting when following a game object?

I have a game character object which is followed by camera. Camera is child object of Character. Using rigid body makes the character tilt in slopes and camera tilts too. how do i stop camera ...
4
votes
2answers
1k views

How to mirror flip animation curves in Unity?

I have a animation that moves my camera from left to right. Now I'd like to copy it with 'mirror' transformation so I can use it to move from right to left. Is it possible to do it using script or ...
1
vote
2answers
50 views

Help with Javascript touch button

I tried many buttons but I can't connect them with the (Java)Script. So I made 2 gui buttons: one for jump which was easy because I have an if statement and if it's true then jump. But I have ...
0
votes
3answers
247 views

How to access multiple 2DTexture which is assigned in Unity3D inspector panel created by an array in C#?

I am making a puzzle game, i made 5X5 cube, lets take example of orange. very left column is orange, upper with orange dot is static and lower with orange dot is also static. inbetween there are 3 ...
0
votes
1answer
294 views

How can I detect a long press then activate an animation?

How can I detect a long press on a touch screen then activate an animation? And when the finger is released, play another animation smoothly? Let's take for example the main character in Crossy Road: ...
0
votes
1answer
45 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
3answers
149 views

Position child on the edge of the parent circle while scaling unity3d

I have come across to some different situation. I have one circle sprite and i am rotating circle continuously while rotating i want to make circle smaller and larger. I have one object on the edge ...
0
votes
1answer
22 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 ...
5
votes
1answer
135 views

How to not freeze the main thread in Unity?

I have a level generation algorithm that is computationally heavy. As such, calling it always results in the game screen freezing. How can I place the function on a second thread while the game still ...
1
vote
1answer
52 views

Flash animation or Sprite sheet animation good for Unity mobile games

I would like to develop dress-up and cooking kind of games. So it needs lots of animations. Our designers done the animations in the lash. I found the plugins callued GAF and UniSWF to convert flash ...
1
vote
1answer
46 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
2answers
429 views

How can I disable an NGUI button when I pause my game?

There is an NGUI button in my game, which when pressed increases the player's power. When I press the escape key, my game pauses completely. But the button still functions normally. Here's how I ...
2
votes
1answer
153 views

Changing scene while joinin room and RPC buffer problem

I have a button to create and join a random room in my main menu. After the client joins (or creates and joins) a random room, i change the scene to game(main) scene in "OnJoinedRoom" function. It ...
4
votes
4answers
145 views

2D Animation based on Time.deltaTime has problems when the game performs long operations

I animate my 2D sprite using the Update() method: float timer = 0.0f; float delayPerFrame = 0.04f; void Update() { timer += Time.deltaTime; if (timer >= delayPerFrame) { timer = ...
3
votes
1answer
45 views

How to add user created data to drop down menu options

So I'm trying to make it that I can have a dropdown that will have user created info appear in it. List<engines> engineList = new List<engines>(); public Dropdown engineSelect; public ...
0
votes
0answers
25 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
0answers
52 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 ...
3
votes
2answers
643 views

Can I create a Sprite Asset using a downloaded Texture at runtime?

I know that Asset Bundles exist, and I'm already taking a look at them. But I'm still interested in this particular approach: I am interested in downloading a .png image from the Web, and then ...
1
vote
0answers
27 views

Help for structuring classes [closed]

I am creating a platformer game with some card base fighting. I was thinking about how should I structure my classes? There are 2 types of cards i.e. Continuous effect and 1 time effect. Also, they ...
6
votes
1answer
96 views

How do I properly light characters in a Unity scene?

I made a game prototype and want to improve some of rendering the visuals through light baking (which I'm new to). While I was mostly able to do this in my environiments, I'm having issues doing this ...