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

Hide some objects from the camera (fog)

I'm trying to implement a visibility representation in a 2D game ( no plains, no quads - plain 2D ) In the examples below I have calculated what the player can see using raytracing and added all the ...
0
votes
0answers
7 views

how to make a character control on Unity for Android

i'm trying to make a racing game on android using unity.. a have a problem if i wanna make a car move forward when i touch an image button like in the picture below.. i've already make it work but ...
0
votes
0answers
5 views

Test iOS build on jailbroken device?

I want to test my Unity iOS builds on my jailbroken iPad and was wondering how I can do that. Please note that it's just for testing purposes and I don't intend to do anything illegal with it. I do ...
-2
votes
1answer
55 views
+50

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
1answer
27 views

Z axis for player movement is being incremented, but i don't know how

I'm currently learning and developing a 2D plataform game in Unity, but now i'm having some errors that i can't solve. When I press the arrow keys to make my character move right and left, the Z axis ...
1
vote
0answers
11 views

Find References In Scene of scriptable object unity asset shows incorrect results

I'm trying to work out why my game is loading a large sprite atlas that I don't think it should be. The snapshot view of the profiler shows that the atlas is loaded. The references pane shows that ...
4
votes
2answers
212 views
+50

How can I update a sprite sheet without affecting the sprites already being used?

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

Spriterenderer on top of canvases

I have two canvases. One with a background image and one with all overlaying elements like texts and such. The background canvas has an order of 0, the overlay canvas of 1. Now, I'd like to create ...
0
votes
1answer
408 views

Unity3d wheelcollider falling through terrain

I have created simple project with 3D car and terrain. I have added 4 Wheel Colliders on model wheels. But when I run project wheels falling through terrain. Before run: After run: I am sure that ...
1
vote
1answer
63 views

Getting any type in Unity Inspector

I am developing a SaveManager system for my games. Basicly what it should do is; 1) Gets the "ANY" user created Serializable class by Drag&Drop to inspector. (save data). 2) Writes that class to ...
-1
votes
1answer
60 views

Will Unity automatically scale everything? Please help!

I don't have a GUI or anything. Just a bunch of game objects with pictures on them. I want everything to scale with the size of the screen. So if it's a small screen, the character will take up less ...
0
votes
1answer
43 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
0
votes
2answers
116 views

How to set player rotation to direction the player is moving?

I'm having an issue with my click to move mechanic. I want the player to move to a specific position in the game when the mouse is clicked (and it does just that) but the issue I'm having is that the ...
3
votes
1answer
1k views

Is it legal to sell or monetize games created with the Unity 3D free edition?

Is it okay to use Unity 3D programming and gaming software to create mobile game apps for Android and iOS? I am using a free version of Unity 3D and planning it to sell my current game app I've ...
1
vote
1answer
36 views

Is WWW reliable for downloading a large AssetBundle?

I have a very large AssetBundle. More than 200MB. Is WWW reasonable for downloading it from my server? I heard that you can't tell the timeout it has. I intend to use it for iOS and Android. Since ...
0
votes
0answers
7 views

Unity UI InputField does not consume the keyboard input

Unity UI: I have an input field in which I can type. Unfortunately, when I hit any of the movement keys, such as the space bar, I move while I'm typing which is not the effect I want. Is there a ...
0
votes
1answer
21 views

Unity3D Strafing Left & Right

I am trying to set my character up to strafe left and right and have 2 different animations, on for left and one for right, so far what i have written allows me to strafe left or right but it only ...
0
votes
1answer
26 views

Mirroring a game object to create symmetry

I have a GameObject with a primitive shape that I call "body". I want to create and add a child to it with another primitive shape. I call it 'mutation'. But i want to duplicate the 'mutation' and ...
0
votes
0answers
11 views

(Unity) Is There a Way to Add Multiple Animation Curves Together?

This is a bit of a cross post from answers.unity3d, but I don't know how much exposure my question will get there so I figured I'd try and see if anyone here had a solution for this. You can find it ...
1
vote
1answer
49 views

Loading images using their bytes in Unity

If you import an image into the Unity inspector, the image will be encoded in Unity's own format. Usually the resulting image is much bigger than the original (from 100kb to 1MB). Of course, you can ...
0
votes
0answers
10 views

Can't call for a variable of a Monobehavior [on hold]

I have a piece of code where I am gathering variables from the game object [this is in Unity]. For some reason, when I try to get a value/variable from a MonoBehaviour, it throws the error: ...
1
vote
0answers
15 views

AssetBundles for sprites, or download the images from my server?

I need to host several sprites in my server, and then have Unity download and use them. I have tested two methods: AssetBundles If I pack my sprites into an AssetBundle, the bundle is about 4MB. It ...
0
votes
1answer
74 views

Problems with Raycasting Requirements

Im working on a script which kinda works like an Enemy AI. Its kinda like a detection system with requirements that are required to be met. This is a recent question i asked using my code Raycast ...
4
votes
1answer
248 views

How can I expose a property to Unity that should be treated like an asset path?

I want to be able to do something like this: public FileInfo XmlBehaviourFile; And then use the asset browser in the Unity editor to select an asset. Ideally, I would like to limit it to XML files ...
0
votes
1answer
58 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 ...
2
votes
0answers
36 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 ...
1
vote
1answer
353 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
19 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
11 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 ...
1
vote
1answer
26 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
37 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
710 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
125 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
62 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
39 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
50 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
13 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 ...
0
votes
1answer
66 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
10 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
38 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
108 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
56 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
94 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
59 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
54 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 ...