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

FPS using mouse to move rather than keys

Hi I am developing a First person game but would like to use the mouse to move on a click to move as opposed to the keys. I also need to disable Y movement and restrict the x movement to 180. What ...
-2
votes
0answers
16 views

What does unity3d has so much that udk doesn't(vice versa)? [on hold]

I did some research and found that the main difference is that udk is better for 3d games than unity because of its graphics and that unity is better for 2d games. What does unity has so much that ...
0
votes
0answers
8 views

Adding Player Movement and Firing on Touch Input (Unity)

I am having many problems with this. I am a new game developer and I am using a Unity tutorial. But I want to add touch input for movement and a touch button for firing the weapon. How can I do this? ...
0
votes
0answers
13 views

Unity3D: One Armature/Skeleton For Many Models

I have multiple box colliders attached to a model's bones, and I want to be able to make these boxes into a prefab as multiple models will be using this same armature, and I would prefer not to ...
0
votes
1answer
32 views

Help with understanding “transform.root.GetComponent<>” in Unity

I'm reading through a tutorial for making an RTS in Unity, and in certain scripts it wants you to make a Player field and then OnStart(){ transform.root.GetComponent}. I am not quite getting what that ...
0
votes
1answer
21 views

Set Non-Looping Animation Time to Seconds

I have an animation that does not loop. It plays for the default duration (n seconds), then stops on the last frame. This is exactly what I want to have happen, but I want it to play for m seconds, ...
0
votes
1answer
28 views

Animation works, but Unity doesn't realize it

I have an animation which plays once, and it played once just fine. I want to Invoke a method as soon as the animation finishes. I have been researching and experimenting for over an hour now, but ...
0
votes
0answers
11 views

Update Sprite Sheet

Every time I overwrite my sprite sheet with additional sprites, I have to reattach the textures to all of my animations. Is there a way to update a sprite sheet without affecting the sprites on that ...
0
votes
1answer
16 views

Add Existing Animation

I have several animations that I am using on a GameObject. I switched the folder they were stored in, and they got detached from the gameObject. How can I add the existing animations to my ...
1
vote
1answer
8 views

EditorApplication.SaveScene followed by EditorWindow.Close throws InvalidOperationException

I'm making a really basic custom editorwindow that has a textbox for a scene name, creates a scene with that name and closes itself. Trimmed down to the essence it looks like this: public void ...
0
votes
0answers
16 views

Arrange Jumble Word into English Word

Actually I want to make a Game. Game is very simple. There are 5*5 matrix with Jumble words and player needs to arrange those words into proper English Word. I have done small part of ...
0
votes
0answers
6 views

Mac build not working, closes upon opening [on hold]

I made a Unity2D game. And built it mainly for standalone windows. Now, when I try to build a standalone for mac. It simply opens, and a second later, it closes it self, without showing anything, no ...
7
votes
2answers
649 views

Unity 3d 4 players Only 4 buttons can be pressed at a time

Only 4 buttons can be pressed at a time, so players cant move sometimes Each Player Has their own Controls i Change, Up Arrow and the other ones for each player---v InputsV-V-V public string ...
0
votes
1answer
18 views

Android OpenGL: Use several Textures for one Animated Sprite

Good evening. I'm programming an Android Game. To reduce the amount of textures that need to be loaded (OpenGL ES 2.0) I've created several spritesheets of size 1024x1024. Some frames of the same ...
1
vote
2answers
74 views

2D Boat controlling physics

I'm working on a top-down 2D boat game with Unity3D. I couldn't able to understand how to implement physics of rudder controlling. My physics knowledge is not enough to think how rudder dynamics work. ...
0
votes
0answers
11 views

Image turn to white issue in WP8 [on hold]

I am using Unity 4.6 with new UI system. Please take a look at a normal dialog and the bug dialog below: When I press play button on normal dialog, the game will go to Main Scene, after that I ...
1
vote
0answers
53 views

Discard Transparent Pixels in Z-Buffer

I am building a 2D game using sprites. I'd like to use the z-buffer to aid with shading. For that I need Unity to write only opaque pixels to the z-buffer (aka depth buffer). In Unity, sprites are ...
4
votes
1answer
50 views

Multiple Scripts versus single script

I have (methink) a simple question regarding attaching scripts to a GameObject. Is there any performance loss if I attach a script to a GameObject for each action to be performed (such as movement, ...
0
votes
0answers
32 views

UV Mapping Best Practice for Architectural 3D Assets?

What would be a commonly preferred method of UV mapping for architectural 3D meshes that are being used as game assets. What I'm talking about are segments like walls, floors, ceiling, corners, etc. ...
2
votes
2answers
140 views

How can you subscribe to Unity input events, instead of polling for them

Been trying for days to figure out if there is a way to subscribe to keyboard/mouse events in unity. Instead of having to poll for them every frame and make my own events. Right now I poll through ...
1
vote
2answers
39 views

Displaying scores in tutorial projects - GUI and UI

I've just started learning to use unity by working through the tutorial projects but in both roll-a-ball and space shooter I've hit dead ends in the text lessons. The lessons tell you to simply add a ...
3
votes
3answers
574 views

Creating an in-game time system only works with real time

I'm trying to create an in-game time system. Thus far it only works properly if you use 1440 minutes to the day (realtime), but I would like to be able to alter the day length to something like 10 ...
0
votes
1answer
32 views

Show size / dimensions of an object in Unity Inspector

I want to see the size of the currently selected objects in the Unity Inspector, however I can't seem to find how to add it. Currently when I select a model in my scene, the Inspector panel shows info ...
0
votes
0answers
68 views

2D Distortion shaders for water effect

I'm working on Unity, and I'm trying to improve my water. The water will be seen top down, and I want to apply a shader to it to make it better looking. I understand the concept of distortion shaders ...
1
vote
1answer
85 views

Cannot use imported image with Unity's UI controls

I know this question sounds banal but its a problem. I received a project and opened it. Now I try to edit it by adding my own images. I do the import but the image does not show up when selecting ...
1
vote
1answer
28 views

Weird windowed resolution - can't seem to change without changing the name

My game is windowed, and when I set the resolution in the build settings (960x540 - 16:9 - Windows standalone), and build it, it works as intended, but from then on, I can no longer change the ...
0
votes
3answers
40 views

[Unity]Avoid boucing when ground move down

I have a sphere & a quad, when the quad move down, the sphere fall after and bounce back continuously. I dont want to change my project setting like bounciness, gravity,mass and I need the sphere ...
0
votes
1answer
31 views

How to retarget animation from Generic to Humanoid?

I am in a constant struggle to convert a character that is indeed a humanoid character but its rig has been assigned as a generic rig. I want it to be humanoid so I can easily retarget its animation ...
1
vote
2answers
49 views

Unity prefab script “GameObjects” can't be ones on the scene?

Currently, I have an object on the scene, and one in prefab. I want the prefab's script to reference to the object on the scene through the public GameObject obj; code. However, when I tried to ...
0
votes
0answers
33 views

Marching Cubes Chunks

i'm doing some voxel based game, where i want to have voxel planets. i decided to use the marching cubes algorithm, and i successfully created a planet (even with noise) with the following density ...
0
votes
2answers
57 views

Accessing colliders from one script C#

I want to access specific colliders(to see if they are been clicked) from one script insted of making multiple scripts for every collider.How? I am using unity. using UnityEngine; using ...
0
votes
0answers
38 views

Unity Photon/PUN - Updating booleans with RPCs

I'm using the latest version of unity with Photon's PUN library. I used a tutorial to make a really simple multiplayer game (cubes moving around) which works fine. Now I'm trying to make a turn based ...
0
votes
1answer
39 views

How can I add banking and rotation to this object manipulation script?

I have made a drone script that allows user to move in four directions and ascend/descend. I found a nice tilt snippet which makes the thing bank when it moves. However, when I include this, the ...
3
votes
0answers
93 views

Unity2D tall grass

I'm using Unity to create a 2D top-down game. Everything has been great so far, but I have come into a problem that I fail to solve properly. I want to implement "tall grass areas" where part of the ...
0
votes
1answer
53 views

Unity, Why a Text object can't be edited?

I have an input field and event that calls a function when I press enter. public Text theText; I take the Text part of the input field (connect them in editor), display the content and set new ...
0
votes
1answer
60 views

Rotate camera keeping player not in the middle

Here I have a 2D top down game. Currently the camera is set on the player position. The player constantly points to mouse position. I want to modify this setup having the camera to be set slightly ...
-1
votes
1answer
54 views

How to should I create a connection between a simpe Unity UI and a game? [on hold]

This the link to the UI :https://www.assetstore.unity3d.com/en/#!/content/25468 And I wish to connect it to my game.What should be the code for It
1
vote
1answer
35 views

Set box collider size in meters instead of percents

TL;DR: Can I set the size of a collider in meters instead of fractions of the size of the object it's in? I'm implementing a classic NES game, and my scale is 1 meter = 16 pixels. I have an 8x1x1m ...
0
votes
0answers
68 views

Voxel (Marching Cubes) Terrain Creation / Terrain Editing

im working on a voxel based game in unity. the terrain(sphere-->planet) should be out of voxels and at first i built a minecraft like voxel plugin for unity. this means that i had a sphere out of ...
1
vote
1answer
35 views

Unity can't build AssetBundle for iOS

From http://docs.unity3d.com/ScriptReference/BuildPipeline.BuildAssetBundle.html, I am using the sample code using UnityEngine; using UnityEditor; public class ExportAssetBundles { ...
1
vote
1answer
44 views

Explaining Unity Sprite-Default Shader

I would like to know why we would use alpha blending in that shader for just rendering a sprite, which is just a texture ? What is tint color ? Why we multiply the alpha value by the color here ? ...
1
vote
1answer
52 views

Keeping high scores on Unity web player

I want the player to be able to save his score when she makes it into top 10 of high scores. Upon success, player will be asked for a name to submit. This does not need to be unique per player. I just ...
1
vote
1answer
107 views

How to create water with ripples in custom places for top down game in Unity?

I want to make topdown row boat game with Unity. I want graphics to be simple (sprited), but the water must be "very nice" and realistic and it should reflect movement in it (paddles and boat movement ...
0
votes
1answer
93 views

Vector-based Pong-ball bounce calculations

I'm making a 2D game with pads and balls, sort of like Pong, in Unity 4.6.1. The calculations, however, won't be (very) Unity-specific. The pads are going to appear in various rotations, and therefore ...
0
votes
0answers
35 views

Need Help in Restricting Player Movement to Only 2 Axis,

I am creating a 2.5D Side Scrolling type Game. For the most part I am using a 3rd Person Character controller. The Major Problem that I am facing is how I can limit the motion of my Player Character ...
0
votes
0answers
57 views

Unity Networking RPC confusion

I'm new to Unity Networking as well as networking in general. I am looking to call an RPC on multiple machines, but for the RPC to do something different if the machine executing the function is not ...
0
votes
0answers
36 views

Unity Height Field Fluids

I am trying to implement the fluid simulation in the slide deck found here in unity. http://matthias-mueller-fischer.ch/talks/GDC2008.pdf I was able to implement what is found on page number 2, the ...
0
votes
1answer
45 views

How to check a value from the last frame, while using events in Unity

What I am trying to do is check if a value has changed from the last frame, while using events. Typically I could use threading to my advantage and have a check at the bottom of Update() to see if a ...
1
vote
1answer
66 views

Unity3D sprites vs Mesh Quads - Depth, Blending, Shadows

I'm new to unity but not new to game development. In my OpenGL ES 2.0 (mobile) games I create a vertex array of all my "sprites" and stuff it in a VBO. Then draw them as I need them one at a time, ...
0
votes
2answers
56 views

Unity2D Collision Issue

I have a crate setup (in pic below) with a rigid body component, box collider and 3 circle colliders(they allow me to push the crate most of the time without getting stuck on the floor textures which ...