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

Shader that draws just vertex points

The game I am developing is in unity and I want to make a shader which can be put on a mesh that only 'draws' color on each vertex point. I am not proficient with shaders, and out of all my searching ...
0
votes
0answers
8 views

Questions about scaling in a 2d game in unity

Okay, so: I am making an android game. I want everything to scale to the size of the screen I'm using. Further, my static background needs to scale (as well as every other object), but if the aspect ...
0
votes
0answers
6 views

Unity IOS game restart when you press the home button

Why does my unity IOS game restart when i press the home button on the device? The same game worked fine on Android device and did not restart on pressing the home button. Thanks
1
vote
1answer
341 views

Angled topdown perspective camera for 2.5d game

I have a 2d tile based game created using Unity's 2d tools and orthographic camera: The tiles are created by programmatically generating a mesh, assigning a texture to each pair of triangles, and ...
1
vote
0answers
32 views
+50

Update Sprite Sheet

Every time I overwrite my sprite sheet with additional or updated sprites, I have to reattach the textures to all of my Animations and Sprite Renderers. How can I update a sprite sheet without ...
0
votes
0answers
9 views

Sprites and AssetBundles

I packed some sprites into an AssetBundle and uploaded it to my server. The sprites are set to type Advanced, so I can check the read/write enabled box. When my game downloads it I want to initialize ...
0
votes
0answers
8 views

What is the `AssetBundle` dropdown in the inspector for?

I know what an AssetBundle is alright. But what is the dropdown at the bottom right for? Apparently you can choose an asset bundle for this asset to belong to. So what? What happens when you choose ...
0
votes
1answer
17 views

Check if object is overlapping

I have two objects, both of them with polygon colliders. When I click on one of the objects, I want the player to drag it on top of the other object (without collision). If there is overlap when he ...
0
votes
2answers
23 views

Refer to a gameobject on start

So I want my script to set the initial position of an object depending on the size of the screen and whatever. How do I refer to the gameobject? I know you can modify stuff like their location if the ...
5
votes
4answers
696 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
123 views

Creating a content pipeline for a Unity

I have a game with lots of assets, such as data files, images, etc. My understanding is that Unity is optimized to know about all resources at build time. i.e. binding those assets to Scene ...
15
votes
10answers
4k views

How do you handle aspect ratio differences with Unity 2D?

I've gotten a lot of answers to this question, but they are all generic and generally not very useful. None of the tutorials talk about aspect ratio and dealing with mobile devices and there are a ...
0
votes
1answer
50 views

Crop a texture procedurally

Is there a way to crop a texture having a list of triangles which represent the part to be kept? For instance, I have a rectangular texture and I want to obtain a texture shaped by the triangle list I ...
-2
votes
0answers
37 views

o whant to make unity laser 2d [on hold]

hi i am new in unity and i whant to creat a 2d laser light and i whant to make it move like this vidéo exemple :laser exemple https://www.youtube.com/watch?v=d2EI10mCEMo i have try sow many code ...
0
votes
1answer
157 views

Decentralized Matchmaking in Unity?

I'm making a card-playing game, similar to Magic Workstation. I've been looking into several options for networking. I have a working LAN version with the build in Unity networking, as well as Photon ...
0
votes
1answer
38 views

In Unity, how do I create a drag and drop object?

I have a 2d scene. I want the player to be able to pick up an object, move it around the scene and drop it somewhere. I can't find any way to do this, and all of the resources for Unity are really ...
0
votes
0answers
11 views

Adding new assets to already packaged resources

I have written a small utility using Unity3d for video playback. Everything is great so far, distributable will work fine when all the videos are present during making a build. I am loading all the ...
-5
votes
0answers
38 views

Please help me on my thesis unity 3d game [on hold]

I have a problem about my thesis, can you help me with my unity or give some codes on java to create a unity game? It is so hard for me to make a 3d game without any knowledge about the unity please ...
0
votes
1answer
55 views

A* Pathfinding for Procedural Platformer Levels

Im trying to write code a my Procedural Platformer Game , but i have no idea where to start. Ive looked up A* Pathfinding in general, but i cant seem to find A* Pathfinding with Procedural Platformer ...
0
votes
0answers
19 views

How to make an object move and your player move in Unity

I am making a project in Unity 4.6.1 and I don't know how to make the enemy move to certain points. I would want it to move to 2 to 4 points or more. I also don't know how to make the player move (not ...
0
votes
0answers
8 views

Pooling server list from unity's masterserver

I'm making my own server (C#), that will run separately from the unity game. So that you can host a server while not playing. I could create my own master server, but is it possible and how would I ...
-1
votes
0answers
21 views

Walls collision and obstacles [on hold]

I have an easy game in Unity 3D. But I don't know how to make wall collision.. I have two walls, one on right side and one on left. The player must jump from one wall to another because on the walls ...
1
vote
1answer
40 views

Changing Light Intensity value

I have this code for creating a light: GameObject lightGameObject = new GameObject ("Light1"); lightGameObject.AddComponent (typeof(Light)); ...
1
vote
1answer
36 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 ...
1
vote
1answer
155 views

collision in different layer

I have a game object called game object 1 on screen. It holds an image called red . when i drag an image called "animal" on a game object 1 collision happening fine and destroys the "animal" in same ...
2
votes
2answers
105 views

3D models on 2D background perspective mismatch

we are working on a tactics game, with a hand drawn 2D backgrounds and 3D models moving on them. The game generates a 2D grid placed on a XY plane, with faux isometric tiles (Diamond Grid). I have ...
0
votes
1answer
55 views

Can't play animation from script in unity

I'm making a 2D sidescrolling game in Unity, and when the player shoots an obstacle, I want the obstacle animation to play and then destroy itself. I got it to destroy itself, but the animation won't ...
1
vote
1answer
90 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 ...
0
votes
1answer
52 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 ...
0
votes
0answers
50 views

hey guys I am developing a game similar to the unity Survival shooter and I wish to join different scenes for creating different levels [on hold]

hey guys I am developing a game similar to the unity Survival shooter and I wish to join different scenes for creating different levels and the condition of clearing the level is that if the player ...
0
votes
1answer
29 views

In Unity, how can I check if an input was made x seconds/frames ago?

I'm using the Rewired input plugin, and it comes with an input buffer. I enabled the buffer for my directional keys and airdash button so that the player doesn't have to hit both keys on the same ...
0
votes
1answer
60 views

Raycast Flashing problem

Can anyone tell me what is wrong with me code ? If you can see, whenever the player is in range of the raycast. The enemy turns red. But for some reason. Even when the player has meet the requirement ...
2
votes
2answers
424 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 ...
1
vote
2answers
110 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
33 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
92 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
370 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
14 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
48 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 ...
0
votes
0answers
20 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
36 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
45 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
30 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
12 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
35 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
35 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
25 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
17 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? ...