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

Cube goes through objects

I have Unity Pro 4.6.1 and I am trying to make a cube move with the arrow keys. Here are the barriers before I move the cube: And here's when I move the cube (the problem): I don't want the ...
0
votes
1answer
37 views

change sprite color from properties of parent object in inspector

I have a compound GameObject that is made up of 5 sprites name dot1 till 5. I'd like to have a little script on the parent object that would allow me to change the colours of the child objects from ...
3
votes
0answers
51 views

Unity Canvas blocking objects in Editor

I think I am missing something really basic here..., I'm creating a 2D game in unity, and the UI Canvas (with the setting "Screen Space - Overlay") is blocking exactly a quarter of my workspace. I can ...
1
vote
1answer
43 views

Unity Android Build SDK Problem

So I've been trying to build my unity project for android, but my problem is that I don't know how to find the Android SDK. I have the old developer bundle installed, when it was still the one with ...
1
vote
1answer
66 views

Unity3D setting blend mode in shader using vertex data

I'm porting a game from iOS / Obj-C / OpenGL ES 2.0 to Unity. I have a procedural mesh script that generates a batch of quads that need to blend together to create a game board. Some of the quads ...
0
votes
1answer
45 views

How to increase the selectable size of an object for dragging

I am currently dragging a gameobject like this. Vector3 screenSpace; Vector3 offset; void OnMouseDown(){ //translate the cubes position from the world to Screen Point screenSpace = ...
1
vote
1answer
57 views

Methods to remove horizontal world slices of voxels in a 3D voxel world

I've recently been working on a hobby voxel world recently. I'm currently interested in ideas or solutions which would enable me to basically step up and down the Y-axis 1 horizontal block slice at ...
4
votes
2answers
117 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 ...
1
vote
1answer
67 views

How does Unity input work with touchscreens

I'm trying to make a racing game on android using unity. I want to make a car move forward when I touch an image button like in the picture below. I've already made it work using the keyboard. How ...
0
votes
0answers
23 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 ...
0
votes
1answer
39 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
46 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 ...
0
votes
0answers
38 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 ...
-1
votes
1answer
72 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 ...
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 ...
0
votes
0answers
36 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
47 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
31 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
25 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
70 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 ...
1
vote
1answer
45 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 ...
1
vote
0answers
30 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 ...
1
vote
1answer
71 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
1answer
80 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
1answer
74 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 ...
1
vote
0answers
36 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
15 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
2answers
41 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 ...
0
votes
1answer
39 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
1answer
84 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 ...
0
votes
0answers
19 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
123 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 ...
-2
votes
2answers
223 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
20 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 ...
0
votes
1answer
42 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
100 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
1answer
45 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 ...
0
votes
0answers
70 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
68 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
61 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
0answers
41 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 ...
1
vote
2answers
78 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 ...
1
vote
1answer
48 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
1answer
50 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
54 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
71 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
47 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
54 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
34 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
52 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 ...