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)

2
votes
2answers
409 views

Using A*Pathfinding on terrain created by scripts?

I'm looking to use A* Path-finding as a method of navigating my game terrain. Trouble is, my terrain is built upon play using a script and A* grid does not detect this, therefore marking all nodes as ...
0
votes
1answer
22 views

Programmatically creating sprite animations in Unity

Some background: I have a set of animated gifs which I've converted to spritesheets, which are then imported into Unity as multiple sprites. The end result is that each spritesheet in the Unity editor ...
1
vote
2answers
91 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. ...
1
vote
1answer
19 views

Unity import text or json

Can't seem to find a definitive way to import text to C# in Unity3d. I'm looking to import either a lot of different text files or one large json file to represent all the text in the game. Thanks ...
2
votes
2answers
89 views

Jumping higher when the player touches a trigger collider in Unity

Im using Unity engine to create a 2D platformer. My character can single/double jump, this works fine everywhere except when i am in range of a collider with a IsTrigger set to TRUE, then my character ...
0
votes
1answer
267 views

How do I animate Unity GUIComponents?

I want to transform my GUIWindow from the bottom of the screen to the middle whenever the user presses a button. How can I do this?
2
votes
1answer
366 views

How to translate swipe gestures into rotations?

I am making a snake game. I want to rotate my snake in the direction specified by swiping on the screen, the directions are limited to orthogonals (90 degree increments). It's an android game. Can ...
-1
votes
0answers
11 views

Why does Unity ignore my Debug extension method? [on hold]

I have created an extension method for Unity's Debug.Log using UnityEngine; public static class DebugExtension { public static void Log(this Debug debug, string label, object value) { ...
1
vote
1answer
35 views

Mesh fading to transparent

I have a 2D Mesh object generated at runtime painted all with uniform color. I want that mesh to have its color fade to transparent color close to the edges. Despite I searched everywhere I could not ...
1
vote
1answer
24 views

Using a different “max texture size” depending on the device

I am developing an Unity game for a wide range of iOS devices. I noticed that some scenes load pretty fast in the iPad mini 3, but very slow in the iPad mini 1. Of course, that's to be expected as one ...
0
votes
0answers
12 views

Can't submit facebook app for review

I'm trying to submit my app for review with publish_action. I keep getting the following error: "It looks like you haven't made any API requests to access content with the publish_actions permission ...
1
vote
1answer
73 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 ...
1
vote
1answer
28 views

How to call a method from another c# script using invoke?

I want to call a method from another script in my script using Invoke(),but unable to run it.How can i achieve this ? Following is my code - void Start () { int randNum; randNum = ...
0
votes
1answer
42 views

Unity3D | Cost of accessing a script via a static reference to the instance

I saw this pattern around and I was wondering what would be the pros and cons about it. Does this suffer performance issues ? If so what would be a better alternative? using UnityEngine; using ...
0
votes
0answers
24 views

How to execute events one after another?

I have a mortal combat spritesheets from which i am creating a animation clip.So, I have 2 characters and I want to execute its different actions at different time.When one character is doing action ...
0
votes
0answers
11 views

Unity android app chrashing [on hold]

I have samsung galaxy ace gt-s5830 (android 2.3.6) and I'm trying to compile an app for it. I'm, trying the CameraRelativeSetup scene (from default assets - mobile). But it keeps crashing at startup. ...
0
votes
0answers
34 views

Visual studio and Unity does not sync

I'm pretty new to Game Development world. I'm using Unity 3D (4.6 - Latest version I think) and Visual Studio to code the script and something when I edit the script un VS 2013 and go back to Unity ...
0
votes
1answer
33 views

How do I make this block go back to the left with another click?

This is the script I've written so far which makes the block move from the left of the screen to the right on a mouse click. What I want to achieve is for the block to move back to the left when I ...
0
votes
0answers
30 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 ...
0
votes
0answers
22 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
0answers
14 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? ...
1
vote
1answer
5k views

Enter Key press event detect from textbox - Unity3D - C#

i am doing a project with Unity3D . in the interface there is a textbox. once user input some text and and press enter key then i want to read the text in text box. so please tell me how to ...
0
votes
3answers
41 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
36 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
17 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
9 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
1answer
26 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
30 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
1answer
235 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 in to a selected area the current dragged object get destroyed and the object ...
0
votes
0answers
13 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
0answers
19 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 ...
7
votes
2answers
712 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
169 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 ...
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 ...
3
votes
1answer
201 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 ...
0
votes
1answer
19 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 ...
0
votes
1answer
75 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
2answers
495 views

Set new forward directions based on camera position

I have a 3rd person camera which can rotate around the player. When I look at the back of the player and press forward, player goes forward. Then I rotate 360 around the player and "forward ...
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 ...
0
votes
1answer
245 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
62 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, ...
2
votes
1answer
111 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 ...
2
votes
2answers
146 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 ...
0
votes
0answers
35 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. ...
0
votes
2answers
58 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 ...
1
vote
1answer
56 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
2answers
41 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 ...
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 ...
3
votes
3answers
588 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
56 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 ...