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
4answers
234 views

Is database necessary? [closed]

Hi I have studied c# for good few months and I'm at intermediate level at the moment. And few days ago I decided to make simple 2D Games like "Mr Jump" after studying Unity. So my question is as ...
0
votes
0answers
36 views

BulletScript-Unity

I'm basically making an fps game in Unity. I have a player with a gun and i have a bullet prefab. I changed the mouse pointer to look like a crosshair. Now i need to know the C# script to make the ...
0
votes
0answers
93 views

Unity 5 2d array for storing game objects and their data

I want to have a 2D array which has a number of rows relating to the number of game objects and 3 columns. I want each row to have the name of the game object and its position and velocity. Is this ...
0
votes
1answer
70 views

How do i make an object to be visible only on a particular layer?

Please refer the image below to understand. I am working on 2D game. I have three elements: "background(layer 0), foreground(layer 1) and the object". I have used sprite renderer to set background ...
0
votes
1answer
667 views

Position Unity UGUI ScrollRect Content Position from Script

I have a map in my game the user can interact with. I am using Unity UGUI ScrollRect to let the user move the map on the screen. Only one area of the map is visible at a time and you can scroll it to ...
0
votes
1answer
33 views

deformable and variable text on a mesh in unity

So I am working on a sports game and I want the jerseys to be customizables with names and numbers. I have the character models as a single mesh however I can't place a text on the back of the jersey ...
1
vote
0answers
29 views

gazing and lip syncing in Unity 5.2

Is it possible to achieve gazing or lip syncing in Unity 5.2 at all, similar to Locomotion done through MecAnim?
0
votes
0answers
116 views

Use xbox right analogue stick for ScreenPointToRay

I have done a tutorial where the player rotation is controlled with raycasting which follows the mouse pointer. I have been trying to change it to follow the right analogue stick on a xbox controller. ...
0
votes
0answers
71 views

Unity C# event handler not triggered

I am trying out a system in my game in which I have 3 classes: EventService: MonoBehavior EventStore (a normal c# class) EventViewController: MonoBehavior EventStore registers some callbacks to ...
1
vote
1answer
202 views

How to send data from Unity to Mailchimp

I have followed the WWWForm script reference to try to connect Unity with Mailchimp. According with the log, the form is sent without errors. Unfortunately Mailchimp did not stored any data. This is ...
1
vote
1answer
219 views

Unity 5 - Textures look strange in Deferred Rendering

I've created an exterior terrain scene in Unity 5 which features lots of trees and grass but some textures look awful and I'm wondering why. Please see the attached image: This texture problem is ...
4
votes
2answers
301 views

What would a good hacking gameplay look/feel like?

In real life, 'hacking' (that is, using brute-force attacks to guess a password) is not very interactive. In fact, it works pretty much independent of any user from the moment you press Return until ...
0
votes
0answers
36 views

How to disable LockTexture for new level in unity?

i am building a game consist of 8 level. I use the following script to switch next level. But when i unlock a level the Lock Texture still remain in the window. I want to remove the lock texture when ...
0
votes
2answers
206 views

How to resize a button without resizing its text

I think it is done with the Anchors of the Rect Transform. I have tried all the possible combinations of the following default anchors: Unfortunately, when I resize the button in the Scene, the ...
0
votes
0answers
90 views

Firing particle systems on prefab objects

In my game, I Instaniate several of the same prefabs for a group of player controlled characters. The prefab contains child objects with particle systems attached. For example one of the particle ...
1
vote
3answers
219 views

Unity Click make Jump and Pause

I use Unity 5 and I have an issue with my game, when I click on the Pause button my character jumps before the game is paused. My script detects the click for jump before the pause button so for that ...
1
vote
1answer
107 views

Player Flying after colliding - Unity

I have a Player with a capsule collider on him and i have various objects in the scene. Most of the objects have either mesh collider or box collider enabled. When i move my player and the player ...
1
vote
1answer
62 views

Selecting Objects to Prefab Unity

So... I have a tree object and I have duplicated it to have many trees in the scene. So, I have about 200 trees in the scene. Before duplicating I forgot to add a tree as a prefab. Now, is there ...
0
votes
1answer
125 views

How can I adjust steer angle based on speed in Unity?

I'm following this (https://www.youtube.com/watch?v=kAEpLX3rfms) video on how to make a car in Unity. But my car doesn't lower the steering angle based on the speed of the video. The idea was that you ...
1
vote
1answer
290 views

Unity 5.x Network Synchronization Concepts

Bear with me, It will be long read^^ I am working on the new Unity Networking system. I was using Photon and old (legacy) unity network API's before. But as it seems there are some good benefits of ...
1
vote
2answers
113 views

Camera follow rotating ball - ortogonal direction

I have a ball, that has been moved via addForce. It colides in the scene with objects, leading to rotation in all axes. I want a camera to follow this ball but from the side (direction ortogonal to ...
1
vote
2answers
424 views

Unity set ui image as active onclick

I want my button to activate an inactive ui image in the hierarchy through c# called "Responded_A" when the "Response_A" button is clicked. I assume this will use setActive in someway, but I'm just ...
3
votes
1answer
199 views

How to implement visibility graph pathfinding in Unity/C# to detect paths (i.e. visibility connections) efficiently?

I am struggling with implementing continuous path-finding trough visibility graphs. Notice, I know that grids can be used even when movement is not trough grids (e.g. Theta*). But for my current ...
2
votes
1answer
70 views

Keep track of VoxelData/NPC in parallel Level

Background I'm tring to make a First-Person-Shooter Game in a Voxel-World (Finit Size) with Unity3d. The Player has some kind of a Base that he has to protect against Enemy units. There are also ...
1
vote
1answer
169 views

Unity 3d Forge Networking: Transfer object ownership

I have a simple chess game setup to play around with the Forge Networking asset. I am having an issue where only the server is able to click and drag pieces around the board. If a client attempts to ...
3
votes
0answers
162 views

smoothly recenter view over time

I'm currently using the Google Cardboard SDK for Unity to build a fighter pilot simulator. What I'm currently trying to do is recenter the view(CardboardHead) smoothly over time when the user looks ...
3
votes
1answer
201 views

Local avoidance together with any-angle types of A* Pathfinding

Recently I have been implementing the Block A* any-angle path-finding algorithm in a project I have, for which I need extremely efficient results due to the large number of NPCs. However, I still do ...
0
votes
2answers
163 views

Fixing enemy behavior state machine in Unity

I'm working on a state machine for my game's NPC. The only thing I can't to get work properly is the hit sequence. The hits register. What I would like to happen is for the attack sequence ...
0
votes
1answer
54 views

Unity GridLayoutGroup children ignoring resizing

Can anyone explain why, in the editor I get: while, on my Galaxy S6, I get: My Panel UI element (which is the parent) has the GridLayoutGroup component, as well as the ContentSizeFitter. The ...
1
vote
1answer
315 views

How to update UI after changing text in a view

After applying a text change to a scrolling view, how do you get the new height of the text, resize other UI elements around the changed text length, etc? Many have posted this question. Some have ...
1
vote
1answer
206 views

Embed a real city in a game and use data to find and display paths [closed]

First of all this question is gigantic but it's mainly about Unity, maps, pathfinding, and real data. The problem. In my game the player sees the map of a real city (in 2D), it’s exactly the same ...
0
votes
1answer
49 views

In unity, how do I rotate a vector in relation to the player?

I am making a radar script in a unity FPS game project I am making for class. I already have a working example of a radar script that works in relation to the player's position. However the rotation ...
1
vote
0answers
187 views

Water drops on camera

How can I create water drops on camera something like we see in Ripitude GP, I tried using Unity's default GlassStainedBumpDistort shader though its performance heavy on mobile plus it do not let ...
2
votes
1answer
177 views

Unity2D 5 - Flickering sprites on Android

So the game had been working fine for a few days on Android phone without any issues. Today, after adding some scripts and tweaking the game a little bit (tweaks which have nothing to do with the ...
2
votes
1answer
143 views

Using XBox 360 controller in Unity game - game doesn't recognize axis movement

I have a problem with the usage of XBox controller in Unity game. I connected the controller to the PC and it works fine, I also managed to use it in the game itself - I'm using "A" button to fire and ...
3
votes
1answer
47 views

Do I have to resize and manually move the checkbox with a Unity Toggle?

I have a Toggle UI element (the stock one from Unity 5.2), and when I resize it to make the text legible, the checkbox doesn't resize or move: Am I missing something, or is the control ...
1
vote
1answer
103 views

Transformation by right vector using TransformPoint return an identical position

I think the following code should work. I'm trying to set the position of a GameObject where the pointer currently is, I mean, where the player is looking currently: public void SetTransform ...
1
vote
2answers
398 views

Set Parent to Instantiated Objects in Unity

i am having problem in attaching parent to the instantiated objects. I have attached the code below. please tell me where i am doing wrong. Thank you. public GameObject brick; public Transform ...
0
votes
3answers
78 views

WaitForSeconds isn't working

I have a class which is changing the player speed. Here is the code: using UnityEngine; using System.Collections; public class MultiplySpeed : MonoBehaviour { public int multiplier = 2; ...
0
votes
0answers
325 views

Unity - OnRenderImage hides UI

I have a component which renders a few different cameras and the images. However, this obscures my UI when in Screen Space - Overlay mode. I can put the canvas in WorldSpace mode, which works, but ...
0
votes
2answers
2k views

How to detect mouse over for UI image in Unity 5?

I have an image that I have setup to move around and zoom in and out from. The trouble is the zoom can be done from anywhere in the scene, but I only want it to zoom when the mouse is hovering over ...
1
vote
1answer
222 views

Snake game tail

I am working at a 2D Snake Game in Unity. This is the head of the Snake: http://i.imgur.com/RrKr9cg.png And this is the Extension of the tail of the snake. It is added everytime I eat something: ...
0
votes
0answers
64 views

State Machine help

I'm using a state machine for my enemy's AI. I've not worked with state machines before & followed Unity's live training on State Machines. I added a HitState to handle animation sequences. The ...
0
votes
2answers
210 views

2D animated sprite in 3d Game

I have a model created in Blender for a character with a sprite as a child of the character that I would like to animate. I'm making a turn based strategy game in which I would like to be able to ...
2
votes
0answers
89 views

Rotate perspective camera to align screen width to procedural object's width (Unity, C#)

I give up. After much trying and searching, I have to say I was unable to achieve the following task, for which I must call for your wise advice. In my current Unity 5 application (using C#), there ...
1
vote
1answer
402 views

Image target display in unity Vuforia

I am using unity 4.5.1f3 and using the Vuforia sdk 5.0.5.I have downloaded the sample project from the Vuforia site.When I tried to run the sample of Imagetarget project,it asked to add license ...
0
votes
1answer
213 views

Unity3d - Transform rotation(angle) help

Im trying to rotate an object 90 degrees to the left but instead of rotating straight left it rotates 270 degrees to the right. Here's the part of the code which controls the rotation: ...
1
vote
0answers
98 views

Bold black bar on right side of game in Unity (Android)

I am trying to create an endless runner. I have already created a system to generate infinite backgrounds from an array of some. However, on running the game, I get huge black bar on the right side of ...
2
votes
2answers
610 views

How to achieve lighting like this in Unity for 2D games?

How could I accomplish a lighting effect something similar to this game?: I'm not talking about the shadows but about the glowing/lighting effect on the crystals and the torches. Anyone got any ...
0
votes
0answers
39 views

NavMesh giving jerky like motion

I instantiate Gameobjects that have a NavMeshAgent attached to them. Their destination is the player that can move around a map, and there is a baked NavMesh on the map. The problem I'm having is ...