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

Managing data for large number of levels in Unity?

I am making a Unity game vaguely in the vein of Candy Crush Saga for a client and am moving in circles trying to decide how to manage the data for all of their levels. In brief, they want to divide ...
0
votes
0answers
4 views

Does Unity3d have utilities for editing styles EditorGUI/EditorGUILayout like “Crome Web Inspector”?

Unity3d allows to construct window with custom UI. Just need to use EditorGUI/EditorGUILayout classes and their static methods. Example of custom window: The problem is that all the components have ...
-1
votes
0answers
15 views

How to read from .json [on hold]

I have data in .json file.I am looking for ways to parse it in c#. My json contains data like this, {"howManyToSpawn":1,"positions":[1],"difficulty":0} ...
0
votes
1answer
17 views

How to “properly” display a 2d sprites in a 3d environment?

I would like to show "the classic" missile lock viewfinder (the target symbol) of a war aircraft. So the target symbol must follow the enemy, and became red when "lock" it. So i thought simply to ...
0
votes
0answers
36 views

how to simulate tank tracks(something that is around all wheels, dont know what is called)

im trying to simulate the part of tank that rotates around all wheels and i dont know what is a good way to do that. can you give me some hints to do that?
1
vote
1answer
17 views

How can I tune material values with the slider in the Unity inspector more finely?

I'm adjusting a material's texture tiling and offset values in the editor but its increments are too large and it's jumping over the value I need. Is there a way to slow it down or adjust the amount ...
0
votes
1answer
17 views

Printing out a 2d array in Unity [duplicate]

I have a 2d array of type char. Its sort of the Model that goes with my Checkers board View so I can run the logic/rules on the array. If I was writing a console version I'd just do a nested for-loop ...
0
votes
1answer
15 views

Unity Android character controll with UI Buttons

So I'm trying to find a good tutorial which will explain how to controll character in 2D game when button is clicked (left, right, jump button). All the tutorials I've found are outdated and not ...
0
votes
0answers
24 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 ...
0
votes
1answer
17 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
18 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 ...
3
votes
2answers
15 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.
0
votes
1answer
28 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 ...
0
votes
0answers
26 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 ...
-1
votes
0answers
21 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
1answer
27 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 ...
-1
votes
0answers
30 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 ...
5
votes
2answers
147 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 ...
3
votes
0answers
31 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 ...
1
vote
1answer
39 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 ...
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 ...
0
votes
4answers
80 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 ...
0
votes
1answer
35 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
32 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 ...
-1
votes
0answers
41 views

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

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 ...
0
votes
1answer
46 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(); ...
0
votes
2answers
43 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 ...
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 ...
1
vote
1answer
67 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
votes
0answers
22 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
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 ...
0
votes
1answer
35 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
0answers
15 views

Rotating a button in Unity UI by -180 on the Y and it stops working

The title says it all. if I rotate my button by -180 on the Y axis i cant even click on it. If for example I rotate it 180 on the Z axis everything is fine. Why does this happen and how can I fix it ? ...
0
votes
1answer
22 views

More efficient using invokerepeating or update?

Im fairly new to unity development and I am working on repeating an enemy. I currently have the functionality working correctly in which I use invokerepeating to spam an enemy. Now, I have an if ...
3
votes
1answer
43 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 ...
1
vote
2answers
93 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
0answers
21 views

Animation is slow on iOS Device and fast in Unity editor?

I had made a Settings popup in the game and animated it like scale animation (from 0 to 1) values. It is appearing very smooth and works good in the unity Editor, but after building to the device it ...
0
votes
1answer
20 views

NGUI sprites become blurry on android

I have this screen in the editor made with NGUI and 8 sprites: But when I build it for android and open the game the same sprites on the screen looks blurry I don't know what could be causing ...
0
votes
1answer
22 views

using Mathf.Clamp in Vector3 to restrict object drag

I'm making a checkers game and I've got a movement controller working to move the pieces. I want to restrict the drag to be within the board. The center of the board is 0,0 so the far left side's x ...
0
votes
1answer
26 views

Basic billiards game: Can't detect collision between cuestick and cueball

I have a basic Unity project on GitHub. Basically, I have a Cuestick that aims and shoots using the mouse. You can rotate around the cueball with your mouse and when you're ready to shoot, you can ...
0
votes
0answers
30 views

Which is the game maker (for ex - Construct 2, Unity) that uses python as language? [closed]

I want to make games with python, not by using pygame or something like that but some game maker like it uses drag, drop (non programming needed) for creating its GUI and level but uses python for ...
-1
votes
1answer
43 views

How to enable/disble vibration feedback in Unity?

I want to create toggle that enable/disable vibration feedback on the device, as i can't figure it out. How do i do that? public void ToggleVibration() { //enable and disable vibration ...
3
votes
0answers
85 views

Everything is set to Bounciness 0 - Why am I still bouncing?

I am creating a platformer where rather than manipulating the character to get them from the beginning of the level to the end, you manipulate the world. Thus, when you want to make the character ...
0
votes
0answers
30 views

Using blend trees for a simple 2d character

Let me start by saying that I'm not a animator and basically have no idea what I'm talking about. The character in the game has 3 states : indle(looks at camera) walk left and walk right. I've set up ...
0
votes
1answer
38 views

Animator.Play() only works the first time

I am creating a game in Unity 3d that is using an animation to move an object. For some reason the animation only works the first time it is accessed and from then on it acts as if it is not being ...
0
votes
0answers
16 views

RawImage won't display behind the other elements on my canvas?

New to Unity / Game Dev, though not new to programming. using Version 5.3.4f1 I've created a Canvas object, which contains the Title / Start / Exit text objects. If I add a RawImage to the Canvas, ...
3
votes
4answers
86 views

How to get the closest “visible” object from my “player”?

I'm using Unity 3d and i have to accomplish the following task: get the closest "visible" object to my player in forward direction. It is a sort of radar. I don't know where to start. Any advice ...
2
votes
0answers
79 views
+100

Drawing visibility polygons in Unity (for vision cones with occlusion)

I'm currently trying to create an effect like the one displayed below in Unity: However, it seems that I can't do this with any of Unity's built-in light objects, and I simply cannot find anything ...
0
votes
1answer
10 views

ScriptableObject not working after build in Unity?

I have a GameObject with a ScriptableObject on it, stats. It works fine in editor but when I try to build I get a message, A script behaviour (script unknown or not yet loaded) has a different ...
0
votes
3answers
53 views

Make object follow another object while keeping the same distance from it

I want an object to follow another object just like the way it follows it when it's parented to it, but smoothly and only in the x and z axis. Here's my code so far: distanceX = player.position.x - ...