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

How can I verify if there is no object between 2 others?

I have 2 characters in my 2D game, I would like that if both of them are on the same Y axis, and there is no collider/object between them, for an animation to happen. I can't figure out how to check ...
0
votes
1answer
18 views

One Android app, dynamic load several Unity games

I'm a newbie in this unity world, exciting about everything in it. Days ago I came up with this idea: One day someone finds this android app, naming "Blahblah Game Engine" or anything else. This ...
0
votes
0answers
17 views

Unity 5 bug with android splash screen

So I am using unity professional and I changed the splash screen. When my game starts there is a short stutter for 2-3 frames. I only captured 1 because I can't couldn't capture it. The image on the ...
0
votes
1answer
25 views

Unity 2D Prevent knockback effect from 2D Translation

I've just started looking into developing with Unity, and read through the tutorials and introductions. For my first project, I decided to try something simple - so a breakout clone. However, when the ...
0
votes
0answers
17 views

Press back again to close in unity?

I have already created a java code for press back again to exit in eclipse and its working perfect .....but I do not know how to integrate it with unity....between I have jar file and put inside of ...
0
votes
3answers
44 views

Getcomponent(), GameObject, and Component issues

I have been trying for over 2 hours now to get over these problems : I have 2 GameObjects in my hierarchy, but I do not have them anywhere in any script. I would very much like to add those 2 ...
0
votes
0answers
13 views

Using WebGL with SQL, databases and networking [on hold]

I'm part of a team working on a school project that requires a web app. We're using Unity, with either it's web player or webGL. We're currently researching our options and testing things out, and ...
0
votes
0answers
25 views

How much can Instantiate slow down my game Unity [on hold]

I want to create a game like pang 3, so you have balls bouncing and you shoot them. Every time you hit a ball it will create two balls smaller than the ball that you hit, except when you hit the ...
0
votes
1answer
34 views

Instantiating a prefab as a child to another game object (spawn point) - Unity 3D - C#

I am currently working on a 3d game in unity in C#. I've been following a series of tutorials on youtube (burgzerg arcade) for quite a while now, and i've came across the following error. This error ...
0
votes
2answers
49 views

Is it possible to control what script is active on what sprite/object in Unity?

I have 2 objects, and I have a script which makes the player change their characteristics. I applied the script to both, and as you'd expect, pressing X button does the color, size, translation change ...
0
votes
2answers
22 views

Getting warning after importing plugin to unity5 project

I am getting following warning when I import any plugin to my unity5 project.Whats the solution for this warning? Is there any problem with that which will affect my project.
-1
votes
1answer
29 views

exit application on double tap with message (Please click BACK again to exit ) …unity

Can anyone please help me here? This is not quite related to programming. I want to exit my Android application on back button tap with conformation for exit @Override public void onBackPressed() { ...
1
vote
0answers
30 views

Equivalent to Draw() method in Unity project?

I have been using xna/monogame before this. So I read tutorials about unity, made some classes, loaded some sprites, everything "seems" to be going good, but I can't figure out how to add things into ...
1
vote
1answer
35 views

In unity game appears dark exporting to ios what happened?

Everything appeared darker when I exported my game to iOS. I only updated my Unity to 4.6.3 . Any idea why?
0
votes
1answer
46 views

Unity 5 The Editor has stopped working Windows 7 64bit

As soon as I press the play button to attempt to run any of my updates games crashes the editor immediately and I can't run my games. Does anyone know how I could debug this or where to start? Does ...
1
vote
0answers
16 views

How can I resize the Unity Facebook SDK's login dialog to fit my vertical phone screen?

I have a Facebook-login button for my iOS game, but Facebook's login panel is entirely too big: The panel is cut off on both sides. It allows for input, but I cannot see most of it. My aspect ratio ...
0
votes
0answers
16 views

Unity sprites are no longer batched after the object rotates/moves

With Unity 5 and access to the profiler, I'm running our game through some stress tests so I can find where our performance issues are. While testing having 1024 units on the screen with 4 selection ...
0
votes
0answers
21 views

How to get used to an Engine from a Framework? [on hold]

I don't know anywhere else where I can ask this and get very experienced and rational responses. I am very new to game development, I barely started about a week+ ago, spent most of it learning and ...
1
vote
1answer
67 views

Space Shooter Unity 5 Collisions not working

After upgrading the official Space Shooter Tutorial to Unity 5, collisions stop working. Additionally, the following error is reported: Non-convex MeshColliders with non-kinematic Rigidbodies are no ...
0
votes
4answers
86 views

Class design and data structures for a Tower Defense

I was trying to come up with a structure for a simple TD game that has following elements Tower Each Tower has a set of properties like range, damage, health etc There could be different types of ...
1
vote
1answer
108 views

Unity 5 2D drawing sprites programmatically

How can I draw sprites in Unity 5 programmatically ? I am looking for something similar to spriteBatch.Draw() in XNA. The results I get when I search about it are either outdated ...
1
vote
0answers
34 views

unity 5 how to get a shadowmap

I'm writing a custom shader in unity 5 that requires a shadowmap (not just for drawing shadows but also for different computations involving scattering particles through fog). Does anybody know how to ...
0
votes
2answers
65 views

Vector3.Angle() Never Reaching 0

I'm having trouble understanding why with this script, Vector3.Angle() sometimes will never reach 0. This question comes from me trying to make a "turret" that rotates to face a target position. It ...
0
votes
1answer
34 views

Imported Blender modular mesh lighting/shadows issue - Unity

Hi I've very recently started using Unity and am creating a game level. I've created my environment in blender and am currently using a modular design as I'd like to include destructible environments. ...
0
votes
0answers
57 views

Physics2D.OverlapCircleAll seems to be bigger than my radius

Im trying to make a "Scorched earth"-like game using unity. I managed to fire my bullet and make it explode on contact. What I am trying to do is do some damage to the tanks even if the bullet didn't ...
0
votes
1answer
43 views

Making a gameObject push the player

I am working on a Unity 3D game for Oculus and I have problems with making my objects to apply physics on a player. So getting rid of a CharacterController and using something like a rag doll is not ...
5
votes
1answer
394 views

How can I retain the soundtrack state across levels to have continuous play?

Suppose I have two levels. I want the same soundtrack to play on both of them. At the moment I have an audio source in each level, playing the soundtrack. However, when you move from one level to the ...
2
votes
0answers
37 views

How do I get the depth data of objects closer than 800mm?

I'm trying to scan the layout of blocks on a table. My Kinect can be at most 1m away from the surface and I need to stack those blocks higher than 20 cm. I'm using Zigfu. Using the kinect 1 I have to ...
1
vote
1answer
41 views

Relation between “Run in background” setting and OnApplicationPause method

I'm working on a game for mobile platforms (Android at the moment, in the future it should be available for iOS and WinPhone) and I want to trigger a certain method when the game is un-paused. For ...
0
votes
0answers
34 views

How does unity size graphics?

I'm working on a 2D game. It has tiles. each tile is 50x50 px. I attached script to camera which sets the camera size to screenHeight/2/PixelsPerUnit. Now in the player, as an example i selected ...
0
votes
2answers
69 views

2D indicator for Rotation in 3D space

This is the view from my spaceship. It can move around in 3d space and turn up, down, left and right. The planet Earth on the top right is selected. Now I want to create the red arrow to always ...
1
vote
1answer
209 views

How to rotate an object to face another in Unity?

I'm having an issue where I can't seem to rotate my bullet appropriately whenever I spawn one. I currently have a capsule prefab I am testing with. I spawn it with the following code. ...
0
votes
1answer
26 views

Rotation and timer at the same time

I have a project where I flip a card after 5 seconds, then I want to start a countdown timer of x seconds. After x seconds the card flips again. I found a good example for the timer here, but that ...
0
votes
1answer
40 views

Unity3d iOS build - where are the textures?

First time building and running my Unity3D app on my iPhone and it appears that all the textures are missing. Everything is just a solid block of whatever color I made it. When running in Unity I ...
0
votes
1answer
28 views

Have several classes with a common interface, but still able to access MonoBehaviour methods through that interface?

In our project we used to have a PlayerObject class and then Unit and Building derived from that class. We recently started taking a look at Bolt, which requires classes that define objects that may ...
0
votes
0answers
41 views

How to obtain age of a gamer? [on hold]

If I were to make game with lots of pornography, violence, drug usage, whatever, in it. I'd surely like to verify the gamer actually being 18+ or 21+. What are the legal and trusted ways to do it? ...
1
vote
2answers
134 views

Unity: DontDestroyOnLoad

I'm viewing tutorial of Unity. In this tutorial, I see this piece of code: public class GameControl : MonoBehaviour { public static GameControl control; public void Awake() { if ...
0
votes
0answers
46 views

How to get a position from a radial distance and angles?

I have a radius and the 2 angles for northSouth and eastWest rotations in degrees. I need a Spherical position or a cartesian position (I have code translate one to the other) Where a position is ...
0
votes
1answer
21 views

Unity3d - c# - changing FPSInputController controls through script

For a game I am making I would like the user to be able to change the controls (in game NOT through the clunky launch window (wich i disabled)) I have the system working but don't know how to change ...
1
vote
1answer
30 views

2d character implementation in unity with a baseball bat

I going to make a 2d baseball game in unity so how should the player and bat be connected,Or if i use single sprite of player and bat, then how the exact collision of bat and ball should be detected.
0
votes
0answers
13 views

Does unused 2D colliders in Unity affects performance? Is an Edge Collider more performance friendly than BoxCollider2D?

I am using a lot of gameobjects for my platformer that uses BoxCollider2D component to make the scene floor. But only an a selected set of gameobjects actually have some interaction with the player, ...
2
votes
1answer
40 views

Replacing a sprite for another on runtime (Unity3D)

I need to replace the sprite of a face down card for another sprite (of a face up card). This is the C# script attached to the face down card: using UnityEngine; using System.Collections; public ...
0
votes
1answer
22 views

How to get Unity's 4.6 UI images to layer over each other perfectly?

I've been noticing that if I have two images, lets say squares. I have A as the parent of triangle B. Triangle A and B both have their offsets at their anchors, which are on the 4 corners of it's ...
1
vote
2answers
89 views

Does PBR mean only one, right technique to view 3D scenes?

For example if I call Unity 5 render pipeline a PBR and Unreal Engine 4 render pipeline as well PBR, does it mean that the same model with the same PB textures will be viewed identically in very ...
0
votes
0answers
42 views

How to deal with cheat avoidance and trusted client issue [duplicate]

I hope not to be off-topic here. At the moment I'm dealing with networking programming for the game I'm working on and I found different possible scenarios. I started to build code using a Platform ...
0
votes
0answers
36 views

Unity Pro license for android and ios [closed]

Here is the information that I get on Unity Store So as above information, I can understand: license for Unity Pro is different from ios Pro and Android Pro. That's means if I want to publish my ...
1
vote
2answers
112 views

how to 'Scale up' my procedurally generated island/continent without losing its uniqueness?

Currently I am trying to make a procedural terrain generator. When I first started creating my terrain generator I decided to use a radial mask to generate my islands/continents like so: But as ...
0
votes
0answers
29 views

Sine wave angle calculation [closed]

How do you calculate angle of sine wave during it's period? I know that period of sine wave is two PI or 360 degrees. I have been trying find answer to this, but with no luck Thanks already for the ...
0
votes
0answers
20 views

Launching projectile from a “canon” [duplicate]

I'm working on "Scorched earth"-like game just for learning purpose. I can't figure out how to launch the projectile from my tank's position, with a power of X ([0,100]),at an angle of Y ([-180,180]). ...
-2
votes
0answers
20 views

How do I store data of game assets in sdcard in unity

I am making game in UNITY3D and Its getting too big, I want to store the game data in sdcard by downloading it when the game start (same like most of gameloft's games). I tried AndroidOBB plugin and ...