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

Escape key doesn't work in browser

So I made a 2D web player game, I have made a pause function to do something when the Escape key is pressed, but when ever I run it in browser and press the Escape key pause menu appears but I can't ...
0
votes
0answers
9 views

Orthogonal Tile Map with Camera's fixed rotation

I am working on a game that will have a 2D orthogonal view and Tile maps like, for example, Super Nintendo's Zelda (or something less old and nostalgic but with similar maps :). It will have mainly ...
1
vote
1answer
66 views

Unable to move mouse cursor while pressing keyboard button

I've a player to which I've attached character controller and two scripts - Controller and MouseLooker to control the player movements but when I try to move my mouse cursor while pressing keyboard ...
0
votes
1answer
16 views

Covert Minimap render texture to 3d space position

I am using Render texture to make a Mini Map it is working fine but now I want to go further on side map and want world space position from render texture click point. Is there any way available that ...
1
vote
2answers
10 views

How to apply Collider to Particle and what components are needed for particles?

i want to apply collider to particle system because if i applied the collider to particle ,if any other game object touched to that particle its gives some action or do some operation.so only i need.
-1
votes
1answer
24 views

Fade out / fade in scene w/ loading screen [on hold]

I've got a (very simple?) requirement I just can't get to work, even though it's been covered by numerous tutorials and how-to's on the web. Basically, I want to transition between individual scenes ...
0
votes
2answers
14 views

Reference to a particular Prefab clone

I am developing a simple 2D game. In game, I've created a prefab for charcaters. and I am changing sprite of prefab runtime. This all execute fine. Now I want to apply click event on a particular ...
0
votes
1answer
23 views

Convert a modified Transform.forward to world space

I am trying to make an electricity system, where it is given the start and end points and it works out a random sequence of points in the rough direction of the end point. These points are set as ...
1
vote
1answer
122 views

unity animation not starting

I have written the following code: public class TargetAnimation : MonoBehaviour { Animation anim; public AnimationClip Open; // Use this for initialization void Start () { ...
2
votes
1answer
122 views

GameObject scope over RPC call

Debugging my code I faced some unexpected behavior. I called an RPC using uLink.NetworkView on the server passing some parameter including a GameObject tagged as Player. Inside that RPC I make a ...
0
votes
1answer
350 views

Unity3d - c# - changing FPSInputController controls through script

For a game I am making I would like the user to be able to change the controls (in game NOT through the clunky launch window (wich i disabled)) I have the system working but don't know how to change ...
0
votes
1answer
56 views

Issues with importing bezier curve animation (curve does not distort?)

Hi guys i'm pretty new to unity and having a frustrating issue; I've created a spear gun with an animation using a bezier curve grouped to the main gun shaft and distorted using a bone (bone relative) ...
0
votes
0answers
16 views

how do i drop a block into grid?

I am trying to drag a block and place it on a grid in unity5. The grid can be empty or already occupied. How do I handle the dropping of block ? I have a 2D array of blocks type, where: class ...
2
votes
1answer
158 views

How can I ensure a Unity game continues to run in RAM, even if the disk it loaded from is removed?

I'd like to make a game with Unity, put the build with all the data on a USB key, plug it in another Windows computer, and run the game from the USB drive, then remove the USB drive, but keep the game ...
-1
votes
0answers
19 views

Development time Question [on hold]

With no development experience, from the self learning or college phase (from what I understand you already start making games while your in college; could be wrong correct me if so) all the way to ...
0
votes
0answers
13 views

GameObject eulerangle rotation is off

In a game I am creating players can flip their character. So say the player does a front flip, it triggers an animation that plays to flip the car forward. I have the player as a child of another ...
0
votes
1answer
33 views

Given a rotated transform, get normalized (proper up, front) version

I am working on a game where you roll a wheel down the track. Now I am looking to implement a feature, where you could turn it left and right, but I cannot get the proper vectors through which to ...
0
votes
1answer
284 views

How to correctly sync an ArrayList of GameObjects on a server/client

I'm experimenting with networking in Unity and I can't seem to get an ArrayList of GameObjects to sync from the server to the client. Here is the relevant code: [SyncVar] ArrayList walls = new ...
0
votes
3answers
829 views

How would I go about making a movement system like Mario Party?

Main question How would I go about getting a movement system similar to the one they have in Mario Party only minus the dice roll? Things I have researched I have been studying the uses for ...
2
votes
2answers
476 views

Generate random position within object

I have a plate object which is generated somehow (I don't care how), now I want to put another object within this object on random position. Lets say that I want to put random trees on this plate. How ...
0
votes
4answers
77 views

How do I trigger just once and not multiple times if I the Player enters the Trigger? [duplicate]

I wanna trigger just one time and not multiple times. I have a Health System and I want that the Player takes damage from an GameObject if he enters the Trigger but it directly triggers like 65 times ...
1
vote
1answer
754 views

Unity UI Input Field suddenly malfunctioned

I'm using Unity 5.0.1f1, and my UI Input Fields are not working as they are supposed to. I have an Input Field that is placed in a Panel and inside a Canvas. It has a Text component in which I can ...
1
vote
1answer
483 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 ...
3
votes
2answers
136 views

Is it safe to base a combo system in frames instead of time?

I'm building a prototype for a fighting game (not vs, something like Final Fight). I'm trying to define the data for the player combo tree and had a look around looking for inspiration and have seen ...
4
votes
2answers
309 views

In Unity, how do I handle very short mouse drags as click events?

I am trying to recreate a UI menu that has functionality similar to the iPhone's home screen: If a user drags anywhere on the menu (including on a button), it should drag the whole page left/right ...
15
votes
4answers
51k views

Unity new UI - Dynamically change the functions called by GUI elements

Looking to dynamically change the value in the button OnClick and slider On Value Changed . If I had to guess on how this was done, get a reference to the button/gui element. Next get the Button ...
2
votes
1answer
198 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 ...
1
vote
2answers
1k views

How do I refer to a native library with Unity 5 on Android?

I have a library called mylibandroid.a. This is given to me by another developer. I also have the iOS version of this lib, and have been able to access it from Unity. It is supposedly built for ...
0
votes
1answer
40 views

Access to varibles in other attached gameobject script is ambiguous

I'm trying to create reusable scripts that I can drop on my GameObjects. I am currently trying to figure out how to build a projectile script. Ideally, I want to be able drop this scrip on an enemy, ...
4
votes
1answer
670 views

Custom Editor for Map/Dictionary in Unity

I'm trying to build my own little ResourceManager in Unity that will allow me to tag resources (ranging from materials to prefabs) to a label in the editor, and then access them in game. The ...
1
vote
1answer
99 views

Dynamiclly applied texture to gameobject using GUI button

In a scene Multiple different gameobject (almost 30 kinds of gameobject) with parent child relationship. At run time (by selecting on gui button) I want to change the texture of each clicked ...
-1
votes
0answers
40 views

How to make UI tower placement in 2D tower defense like kingdom rush using Unity?

I want to make a 2d tower defense where the player can choose one from any towers , i have try to watching tutorial on youtube, read e-book and surfing the internet, but i can't found how i can make ...
1
vote
0answers
23 views

How to await async operations / coroutines?

I'm looking for a generic / reusable way to wait for coroutines and asynchronous operations to finish in Unity 5, similiar to C#5's await keyword. The simplest way I can think of is something like ...
0
votes
2answers
42 views

Blinking object

I'm trying to make an element (3D object or UI element) blink in such way: There is a timer which counts down 10.0f seconds to 0.0f. In 10.0f to 9.9f range the object should fade out from opacity 1 ...
1
vote
2answers
89 views

Room generation with external walls and doors

I am looking to implement a means to generate rooms with outer walls with windows and doors from prefab game objects in Unity. The idea is that a group of tiles is defined as a room which I then ...
0
votes
1answer
24 views

Unity5 build won't run on android 2.3.3

I made a game using one of the Unity tutorials on their site and now would like to run on my phone (LG P500). But when I try to run it on the device, it says "Failure to initialize: Your hardware does ...
1
vote
1answer
37 views

If statement works fine until I add a tag check requirement. Why is this?

I'm trying to add a tag check to an if statement but for some reason when I add said tag check it stops working. void Update () { Vector3 fwd = transform.forward; // Equivalent to the ...
3
votes
1answer
825 views

Unity editor stalling on second attempt to play

I am attempting to use a Tobii TX300 eye-tracker as an input device for Unity. This device is connected via LAN (TCP connection managed by Tobii SDK). The Tobii SDK has appropriate methods (I am ...
1
vote
1answer
72 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 ...
0
votes
2answers
34 views

Authoritative Server for single player but with leaderboard

I made a Fps single player, timed survival with a leaderboard ( a bit like devil daggers and others). I know would like to create a server that will prevent cheats such as avoiding collision or ...
0
votes
1answer
31 views

Sprites blurred in Unity (filter mode set to point)

I'm new to Unity and I'm developing Android game. When I connect my phone with Unity Remote and launch game, all textured are blurred and they look awfull. Did some research and set Filter mode to ...
0
votes
1answer
43 views

How to search for a visible player?

I've an enemy static tank with a "rotable" cannon turret. I would like to rotate it in the player's direction . How to implement it ? I've thought something like void Update { SearchForPlayer(); ...
1
vote
1answer
8k views

Unity - Basic AI Enemy Follows Player - Prevent Flocking Of Enemies Together

I'm in the process of implementing a 2D top-down shooter game. I have a basic AI script that allows enemies to follow the player around. Currently it works fine for one enemy, but as soon as there are ...
1
vote
1answer
63 views

Tile base Farm Simulation in Unity

I am thinking of creating a sprite base 2d top down farm simulation game. The game uses tiles and I was wondering (conceptually) what is the best way to handle the farm tiles. Each tiles should have ...
1
vote
2answers
34 views

Apply two animation on one object in unity

I am looking for a perfect example to apply two animation on same object and to run those animations simultaneously. In my game, a player is jumping as well as flapping. As per my research, I have got ...
-1
votes
0answers
21 views

Performance issues: is static batching possible in Unity for runtime-generated meshes?

In order to profile a sub-system of my game, I set up the following test in Unity 5.3.4. I create a simple equilateral triangle on the fly and then I instantiate it 10 thousand times, at random ...
0
votes
1answer
33 views

Having trouble setting a game object as a child of another. What is wrong here?

So I'm trying to raycast on mouse click if it hits any thing make that object a child of the sender (in this case the parent). Below is my code... public class PhysGun : MonoBehaviour { private ...
0
votes
1answer
25 views

How to refer to a object that has just been hit by a ray cast?

I would like to use RigidbodyConstraints.FreezeRotation;in order to freeze the rotation of an object that is picked up. The problem is I don't know how to refer (or call) the currently selected ...
3
votes
1answer
42 views

Upgrading Unity from 5.1 to 5.3.4 has broken game, specifically models made in Blender

I recently decided to upgrade Unity after putting it off for some time as I have a rather sizable project started in 5.1. I knew there would be some hurdles, however, I have had very little luck in ...
0
votes
1answer
74 views

Calculating unique ID number from a set of bitmasked tiles

So I write this kind of match3-style game where you as a player need to match tiles with three or more of the same type and I'm thinking what is the best method to recognize the shapes without writing ...