Unity is a highly cross-platform engine that focuses on easy art pipeline process and uses Mono as its scripting back end.

learn more… | top users | synonyms (1)

0
votes
0answers
10 views

Unity 2D detect if swipe goes through an object

I am developing a game in unity with flying arrows that the user tries to deflect by swiping through them (changing their direction). I can get the arrows to move with the swipes, but they move no ...
0
votes
1answer
23 views

Prefab disables its script when a clone is instantiated

A clone of a cube is spawned when it is destroyed, however the clones disable the script in the editor (example: http://gfycat.com/SnarlingScornfulEgg). Used the exact same script for a different kind ...
0
votes
0answers
17 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
2answers
49 views

Position GUI Text in 2D game

I am working on a 2D game, and my camera is a orthographic with a size of 320. I want to display some text, but not with OnGUI(). Rather, with a GUI Text game object. I couldn't help but notice that ...
-1
votes
0answers
26 views

Some Good Game Hosting Sites [on hold]

I was wandering while planning a game for webplayer that which company sites would provide me a free hosting of my unity game ( .unity3d file) .
2
votes
1answer
33 views

How do I change the material of an object with Script in Unity?

I was making a game with Unity and I want to change an object's material using JavaScript when the player collects 5 collectables that I made. The collectables get stored in an int variable called ...
2
votes
1answer
39 views

How do I save variables and load them in Unity with JavaScript?

I made a game and i want to save the high score and load it back. I need to save 3 variables and load them when the game starts. How do i do it?
0
votes
1answer
31 views

View Rigidbody 2D Wire Frame

Simple question. When I prototype game ideas I like to create objects without having to attach sprites. Is it possible to create a Rigidbody 2D in unity, set its size and render its wire frame? I am ...
0
votes
1answer
45 views

Save player data in Unity 3D [on hold]

I've started to design a commercial Client/Server game in Unity and I need server-side saves players data for later analysis and web consultation (like battle.net). Is there a best practice to achieve ...
1
vote
1answer
34 views

How do I use elapsed time as the player's score in Unity?

I'm making a "survival" game, where the goal is to stay on a rotating board as long as possible. I want to add a score system based on how many seconds passed. For example, if you stay on the board ...
0
votes
1answer
14 views

Unity3D: Change Background Image on a GUI Skin

So I'm testing with GUI Skins and trying to make something cool, and I want to change the background image of the application background. This is what I mean In the screenshot above, the background ...
1
vote
0answers
8 views

Unity3D: Rendering images weirdly in GUISkin

So i'm trying to make a gui skin in Unity3D and i'm having some problems with the images, what I mean is the images are being rendered all weirdly, not properly and some have lines through them. I ...
1
vote
1answer
70 views

Saving Game Data In Windows Store App

I am creating a windows store game using unity . I want to save the current high score data . I most probably use StreamReader / StreamWriter for saving data but when i build the executable for ...
0
votes
2answers
42 views

Getting neighbors of hex tiles in 3D space

I have a hex tiled model like attached below. Each of the hex tiles are separate objects meaning I can access each of the hex tiles individually inside Unity Now in my program I want to be able to ...
1
vote
2answers
50 views

Fastest way to assign sprites to components in Unity

I'm using a sprite atlas and Unity's built-in sprite editor to tease out the individual images. Specifically, I have a single texture containing lots and lots of icons for armor, and I am assigning ...
0
votes
0answers
29 views

Render text on a Quad

I have created a quad with a single color that's rendered on screen as a square, which is fine. I want to add some text to it (or slightly in front of it) that says "Hello". It sounds from reading ...
1
vote
1answer
92 views

How to save a Unity prefab on file?

I'm working on a Unity project, and what I'm doing is creating a new scene. In my new scene, I want add some prefabs that there aren't in the project folders, but I can see them in another scene. So ...
-3
votes
1answer
54 views

What is the problem with my accelerometer-based car steering? [on hold]

I'm developing a car racing game. I want to control my car with both touch input and accelerometer. touch input is working fine, but I have a problem with the accelerometer. I used the below script ...
2
votes
0answers
36 views

Transparent diffuse fails to render from all viewing angles

I'm rendering this chunk as a Unity mesh and I have just one material (with alpha) which is applied over all the mesh. Everything in the chunk is automatically generated at runtime, so it's not ...
2
votes
1answer
36 views

Lidgren peer to peer

I am currently integrating Lidgren into my Unity game. I need to move away from the built in networking capability in Unity because of the style of game I am making, basically MMO, I will have far too ...
0
votes
0answers
43 views

hex grid on a sphere in unity [closed]

I am designing a game on a turn based strategy game on a sphere using Unity. I want to use hex grids on my sphere and be able to place certain specific objects based on the type ( color ) of the grid ...
2
votes
2answers
189 views

Problem loading level layout from file in Breakout clone

I'm working on a Breakout clone and I decide to use files as method to load level layouts. The file is something like this: N,N,N,N,N N,N,N N,N,N Only indicates what type of brick I'll ...
-2
votes
1answer
60 views

if statement is executed even when condition is false [closed]

I've made some code that is triggered when the player is in range of the enemy. Everything was working fine until I tried to implement a condition when the countdown reached zero. I made a method ...
0
votes
1answer
44 views

Unity Guitext object always triggering a collision - 2D

I have a guitext object which I can drag. I have attached a 2d rigid body. I have also attached the collider with the following code: void setCollider() { Rect box = ...
2
votes
0answers
54 views

Aligning pathfinding to the center of tiles?

I'm looking to achieve tile by tile movement in a project I'm working on. I employed the use of the asset Simply A* Path-finding to allow a unit to navigate the terrain. Since the tiles are ...
1
vote
2answers
60 views

How to edit colliders in Unity2D

I can edit colliders by holding down the shift key. But when i add a second collider, the shift key always selects the first one. And there is no "Edit Collider" button in the editor (Win/4.5.4f1). ...
0
votes
0answers
52 views

Pros-and-cons of using Unity 3D to make an PvP Card Game with online matches [closed]

You see, I am looking for an engine to quickly make an online prototype of a trading card game. I was thinking about Unity3D, and wondering if I could make it work without sinking too many hours in ...
0
votes
0answers
59 views

Unity 2.5D Character Movement

I'm wondering if anyone can point me in the right direct as to how to take a 2D character/sprite in Unity and have said character turn corners in a 3D style. Solutions or resources welcome.
0
votes
0answers
28 views

Terrain texture extra blurry - Unity [on hold]

Something is wrong. Anybody had this problem before? Textures on terrain are blurry. This is what I'm seeing: Terrain is generated by Unity, I'm using 3.5.7, as it's the last version which doesn't ...
1
vote
0answers
40 views

Square tile navigation unity

I'm looking to generate a grid style navigation system in Unity. I have created a map in Tiled and am unsure how to continue considering the tiles will have different properties. The closest example ...
5
votes
1answer
102 views

Multiple SpriteSheets break batching

The problem: I can't fit all my 2d animation sprites for all units and environment in 1 spritesheet. Everything batches fine until I use two spritesheets... I noticed the following : all units from ...
0
votes
1answer
33 views

In Unity how can I know which direction is the screen auto-rotated?

From the Screen.orientation description I get If the value is set to ScreenOrientation.AutoRotation then the screen will select [...] automatically as the device orientation changes. This seems ...
0
votes
0answers
29 views

Very strange trigger behavior in Unity2D (4.5)

I am developing 2d platformer and I've faced with a very strange triggers behaviour in Unity. I have made the enemy that can throw objects into main player. So I have made two empty GameObjects with ...
-2
votes
0answers
23 views

What licenses will I need for publishing my game? [duplicate]

Me and a friend have started developing a game in unity and now it's time for getting models for our games, and the question is, if we want to use for example 3ds Max for making the models for our ...
1
vote
0answers
27 views

Unity 3D Photon Network wait for all buffered RPCs to be called

I am having a lot of fun with the Photon Network asset, and I'm having this issue where I need to instantiate the players at different spawn spots, but not in a random way, instead I thought it would ...
0
votes
0answers
95 views

What licenses will I need for publishing a game? [closed]

Me and a friend have started developing a game in unity and now it's time for getting models for our games, and the question is, if we want to use for example 3ds Max for making the models for our ...
0
votes
0answers
21 views

How should I approach building an authoritative turn-based multiplayer server that manages all games being played? [closed]

I'm building a tactics game in Unity, similar to frozen synapse, where both players plan out their turns and submit their plan to one server. Once both players have done this, the server decides what ...
0
votes
0answers
30 views

(Unity 3D) Why are bone colliders with an Animator Controller so finicky?

I have an NPC with colliders parented to its bones using the Unity ragdoll wizard. It also has an Animator Controller. The problem is, sometimes those colliders just don't work right. They're targets ...
4
votes
2answers
67 views

What's the point of [HiddenInInspector] (as opposite to [NonSerialized])?

I understand the difference between [HiddenInInspector] and [NonSerialized], what I'm missing is the use case for [HiddenInInspector]: so far every time I've encountered it, it was used by developers ...
1
vote
2answers
78 views

Trying to better understand Unity gameobjects

New to Unity, but develop in C# normally. I can't seem to get how / why / where to grab certain elements. For simplicity, I have a top-level game object, say a cube. I add a sphere to the scene as ...
0
votes
0answers
39 views

Implementing a group formation behavior

I am trying to implement a group formation behavior where all the units in my group follow a leader and maintain their position throughout. So far I am able to move them, rotate and follow the leader. ...
0
votes
1answer
30 views

Can't go above max speed with RigidBody2D.AddForce()

I'm having trouble making a character move faster than a certain limit using RigidBody2D.AddForce(). My game is a top-down 2D game (constrained to the x/y plane). I'm using a float 'MovementSpeed' to ...
-1
votes
1answer
32 views

Finding and reading a script on a mouse-selected GameObject

I can't work out how to access and read changes in a script of a gameObject that has been selected. The script selects enemy objects with right mouse button and player objects with left mouse button. ...
2
votes
0answers
31 views

Copy a folder in Assets/Resources folder programatically depending upon a constant

I have a Unity3d project in which I have 200 games and some 350 scenes. Now I want to make separate builds for each game. All my assets are present in Assets/IgnoredAssets/ABC folder. To include these ...
2
votes
0answers
91 views

How to properly do top-down aRPG melee attacks?

I'm reposting this from my own thread in reddit's gamedev community, since there were too few responses: I've been looking for some info on that, but I mostly find articles on the design of such ...
-1
votes
1answer
32 views

Recording time since last collision

I am trying to record time since the last collision happened.But this is not working as I expect it to. So, numberLimitOfCollision is equal to 0 only in the begining, Basically, what I am trying to ...
1
vote
0answers
43 views

Unity 3d 4.6b New GUI system doesn't take touch when already a touch event is occurring in 3d scene

I know this is beta version but.. I have a Canvas->Button which works fine when I tap it normally. I have a joystick in my scene which is drawn by separate camera other than mainCamera. now, while ...
-1
votes
0answers
35 views

Animation is not playing [closed]

Some animation cannot be applied on the character.This the code I have used to play a animation on the character.Can anybody help me solving this issue? void OnMouseEnter() { Debug.Log ...
0
votes
1answer
39 views

Downloading 10 images and storing their data with WWW

I would like to download 10 images, and store their texture data into my list. I don't really know how to do that - I heard that for this you use the WWW class, so I went: List<byte[]> ...
1
vote
1answer
52 views

Why are shadows not snapping to the objects?

I'm using a directional light in Unity to cast shadows. However, the shadows don't appear to be "snapped" to the objects creating them. The object appears to be floating in mid air while it actually ...