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

Unity 2d Side Scrolling Mobile Prefab Problem

hi im trying to use the 2d side scrolling prefab that comes with the standard mobile assets. When i drag it onto my heiarchy its default position is set and i can see the touchpads. But when i play ...
1
vote
1answer
63 views

Unity Grid Movement (Turn Based, 2D)

I trying to create a Turn Based Strategy behaviour where you move a gameObject from 1 tile of a grid to another tile near it I have created the Grid using sprites and gameObjects but can't sort out ...
-3
votes
1answer
50 views

Direct raycasting from moving point A and moving Point B

I am attempting to raycast from Point A to Point A (both moving points). I dont understand the comcept of raycasting (direction). Update() { player = GameObject.FindGameObjectWithTag ("Player"); ...
-5
votes
0answers
59 views

What is it Game Engine of Game like Simpsons Tapped out,Family Guy: The Quest for Stuff,…? [on hold]

i have a question what is it Simpsons Tapped out , Family Guy: The Quest for Stuff , SpongeBob Moves In , Clash of Clans , Boom beach , ... game engine? i believe someone say they have own engine but ...
0
votes
0answers
19 views

Unity : OnCollisionEnter Destroy not working [on hold]

I wanna destroy an object (a box) when the object is in collision with another object, for example a gun shot: The box has a box collider and the gun shot (sphere) has a sphere collider, both have a ...
0
votes
0answers
41 views

What is the technique for complete the background of ground (2D) [on hold]

What is the technique on programming for complete the ground with a background repeated. See that image for understand: (Image from Chariot, game for xbox one) In that image, you can see an example ...
0
votes
0answers
29 views

Could multiple plugins cause some problems? (Unity) [on hold]

So, I'm trying to implement three different plugins for my game and I'm wondering if they could prevent each others from working. It just seems like when I'm adding new plugins the old ones stop ...
2
votes
1answer
53 views

2D collision of thrown objects in Unity

I am currently working on a game inspired by traditional 2D Zelda games ("Link To The Past", etc.) in Unity using the 2D settings. I am looking for the best way to handle objects that the character ...
0
votes
0answers
55 views

Is there possiblity that i get sued for using models from internet? [on hold]

As the title suggest i found some pretty good looking models in internet, I am thinking about using them in my game. The websites i downloaded models does not provide background about who created them ...
0
votes
1answer
61 views

How can I raycast between two moving objects in Unity?

How can I raycast between two moving objects? I want to raycast from a moving enemy to a moving player. I dont know how to actually code to make the direction work. using UnityEngine; using ...
1
vote
3answers
71 views

3D Unity characters without Maya

I have been writing 2D iOS games for a while and I'm looking into getting into 3D. I want to know if Maya is required for making 3D sprites or if you can easily make your 3D sprites using just Unity ...
0
votes
1answer
48 views

How to create sandbox game [closed]

I have a lot of experience with programming but I'm new in game development world, so I don't know what I don't know. I want to create a MMORPG sandbox game. When I say sandbox game I have something ...
6
votes
2answers
124 views

How can I draw a line of certain length and direction?

I want to create a line of certain length and direction. What I mean by this is drawing a line from Point A to Point B. Normally in Unity C# to draw a line from Point A to Point B is simply: ...
-1
votes
0answers
33 views

Respawn destroyed object in Unity

I have this script where as to when i hit a trigger my enemy spawns at a random time then the enemy destroy itself at a random time. I want to respawn the enemy again so it can do this over and over ...
-1
votes
0answers
72 views

Unity alternative? [closed]

I have been trying Unity for the last few weeks, but I don't really like it. It is way to much constructing instead of coding yourself, and I think the coding is the best part. Do you have any ...
-5
votes
0answers
50 views

Airhockey AI C# Script [closed]

Hi Everyone i am making an airhockey game and need some help with the AI of the game
2
votes
1answer
52 views

How do I spawn an enemy at one of many spawn points in Unity?

I have a spawn script that so far only creates one Enemy spawn point and enemy trigger while only spawning one enemy. Instead, I want it to create multiple spawns and triggers, but keep it such that ...
2
votes
1answer
51 views

How can I move gameobjects using keyboard in the Unity scene editor?

I know I can click on the move button and use my mouse to drag the object around. How can I do the same using my keyboard?
8
votes
2answers
162 views
+50

How to snap player movement to the surface of a 3D object using Unity?

I'm trying to create an effect similar to that of Mario Galaxy or Geometry Wars 3 where as the player walks around the "planet" gravity seems to adjust and they don't fall off the edge of the object ...
2
votes
0answers
19 views

Find asset labels at runtime

Unity allows me to add multiple labels to my assets in the editor (the little blue luggage tag in the corner of the inspector). I can use the Asset Database to find all assets with a certain tag from ...
3
votes
2answers
110 views

How should I organize my Unity scene graph?

In programming, we have coding conventions — self-enforced rules to help maintain order. Does such a convention or consensus exist on how to lay out scenes in Unity? I've seen two styles of ...
1
vote
1answer
52 views

How to securely retrieve game stats from clients in a p2p game network?

I'm working on a P2P game and I know I should never trust the clients. I my architecture, there is a "Master Server" that stores game room (host) informations. Players can create their own rooms ...
0
votes
0answers
21 views

building .apk file [on hold]

I have made a unity Vuforia demo project But I cannot run this Simple AR Application in Android ,I have a Pro version of Unity , when i took build of it. file -> build setting ->Android The project ...
1
vote
2answers
47 views

Collision between Mesh Plane and 2D Sprite

I've just recently started programming using Unity and made a couple of games with it, I'm trying out more and more advanced stuff as I do more games, but right now... I'm trying to make a game ...
3
votes
2answers
54 views

How can I detect continuous touches/pressed with Unity 4.6's UI elements?

I've recently switched to Unity 4.6. My previous workflow when creating continuous-input controls (the kind where you measure continuous touch input on a single button) was to create a GUITexture and ...
-1
votes
1answer
37 views

Float increment give wrong result [closed]

I found something weird with my unity code : public class heroesscript : MonoBehaviour { float counter = 0; void FixedUpdate() { counter += 0.02f; print (counter); ...
1
vote
1answer
33 views

How to access an animation properties from the animator?

I'd like to change the property speed of an animation from the animator. For example, I'd like the player to be able to reload faster with upgrades. So I have a basic reload animation on the gun ...
1
vote
1answer
29 views

How do I fix the duplicate files problem in MonoDevelop?

MonoDevelop-Unity counts some files twice in a project of mine. This is very annoying, both for the "go to declaration" feature, and for the search (who finds twice anything who it would find). Not ...
0
votes
0answers
23 views

Unity Project has code but does not run in editor [closed]

I have an .exe that displays a car.. http://gfycat.com/AmpleFaroffFlicker Supposedly this source code was used to make the exectuable, however when I open/run it from within Unity I don't see ...
1
vote
0answers
28 views

import text strings into Unity editor 3D text objects so that Scene View displays them

I am having trouble finding a solution to this problem. I want to generate the text for TextMesh.text in a custom application and import into the Unity editor so that I can then scale the text to ...
-1
votes
1answer
55 views

Yeild waitForSeconds(5.0) is not working

I am trying to call another function continuously from my Update() function. So, I have used yield WaitForSeconds(5.0); but, the it stops for the first 5 seconds and it does not stop the next time it ...
-1
votes
0answers
62 views

Why does this code update my object's position so fast? [closed]

I was working on make my object appearing in the screen in random position. So I used Vector3.Lerp as it was mentioned in this question. I modified the code a bit as I was getting too much error and ...
0
votes
1answer
54 views

Why does this code not update my object's position?

I am trying to move the object in my frame in Time.deltaTime. I have not taken care the speed yet but the problem is, the object is almost at position (0,0) after I have multiplied the x & y axis ...
0
votes
2answers
62 views

What is the best practice for handling touch events on different GameObjects in Unity2D?

First of all I want to describe what I have in my scene. 1. Joystick. 2. Main character that has link to joystick and handles touch events from joystick. 2. Buttons. 3. Other GameObjects that must ...
0
votes
1answer
35 views

Unity Button Without an Image?

I want to create a button whose clickable area is only specified by a BoxCollider with Unity's new UI (similar to how you would do it from within NGUI). I can't get a Unity Button to work without the ...
0
votes
1answer
49 views

Unity Player Prefs Deserialization not working in web build but is working in the editor

for some reason i can deserialize in the editor just fine with player prefs but when i make a web build it simply doesn't work. and since there's no real console log, i can't get any useful feedback. ...
2
votes
0answers
31 views

Unity Render Texture Artifacting

I'm having weird black artifacts appear on my render textures when they are transformed while the game is running. I am using a ScrollRect as a scrolling container for buttons (the buttons are just ...
2
votes
1answer
64 views

How can I make Network.RPC call a method with params object[]?

Why do I need to do this? The game I'm working on fully conforms to a component style design. Every component that a game object uses is placed on the object and is disabled/enabled based on it's ...
0
votes
1answer
27 views

Camera bounds grow along with the game scene editor in Unity

I am extremely confused by the Unity editor. Look: I have an image, And I want my camera to fit it perfectly. I have achieved so by using a size property of 540: Notice how the viewport rect ...
0
votes
0answers
12 views

Inline sprites in Unity's text?

How can I use different materials when using the tag for Unity's rich text syntax? I want to be able to have sprites that are inline with my text without having to create custom fonts. Here's what I ...
1
vote
0answers
34 views

Setting the main camera's size to be equivalent to the device's width and height

Making a 2D game with Unity. I need a way to set the main camera's width and height to be equal to the mobile device's resolution. So if you're using an iPad Mini 3, then the main camera will be 2048 ...
2
votes
1answer
45 views

How to output to the Oculus and a 2D screen?

We'd like to present an Oculus game to a large group of people. Not everyone will have an Oculus headset, so we'd like to output to both the Oculus and a second display. The problem is that the ...
0
votes
0answers
33 views

How to embed UnityScript for scripting in Unity3D?

It is useful to have parts of your game being scriptable. Many people (especially outside of Unity) are using LUA for that job. As UnityScript (as with Boo or C#) is a first class citizen why not use ...
0
votes
1answer
38 views

Unity: Built In Scrollable Containers?

Is there a way to get a scrollable container in Unity without purchasing a plugin such as NGUI or TK2D? I want to create a scrollable container of interactive elements that can be clicked on ...
0
votes
2answers
95 views

How to reverse gravity in Unity

I'm trying to figure out how script gravity reversal on collision with an object. How can I reverse gravity?
0
votes
1answer
49 views

Casting a directional line of which an object is coming from

I want to create a directional line ( curve / linear ) depending where the direction is coming from. In some games, similar to Angry Birds, a dotted guideline is shown to provide where the gameObject ...
4
votes
1answer
284 views

How is a Game Manager supposed to be constructed?

I'm a beginner developing games on Unity3D and now that I've become a little bit familiar with GameManagers I've been wondering about certain aspects. How do you contruct a GameManager in the most ...
2
votes
1answer
56 views

How to put the game object to the upper left corner of the screen in Unity and make it visible entirely on all screens of mobile devices

I have game object which displays health indicator in my 2d video game in Unity. This gameobject contains a lot of sprites and i put it into left/top corner of the screen. In my game editor it is ...
1
vote
1answer
102 views

How can I resize my Blender models when importing to Unity?

I made a 3D model in Blender, but when put it in my Unity project and add an FPS-camera the camera is bigger then my model. I used the measurements of Blender (that one cube is 1 meter in Unity). How ...
0
votes
0answers
22 views

Unity3D C#: How to resize an inputfield according the content which is set dynamic

I've got an InputField where the text is filled in upon getting a string back from the server. We can debug the entire text so we receive it correctly. However the text is too long to fit in our ...