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
2answers
62 views

How do I access my existing script from a different script attached to a different gameobject?

I have my health(script) component on my player gameobject that gets boosted whenever we tap on that gameobject. However, I want to add a separate Gui texture button gameobject and tap on that to ...
0
votes
0answers
6 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. He ...
3
votes
1answer
63 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 ...
0
votes
0answers
7 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
20 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
3answers
38 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

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
2answers
45 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
1answer
46 views

Unity: Object is underneath another object but shouldn't be

I have a simple collision detection program. The red object is controlled by the user and the yellow object is always moving up and down: However, when the objects are supposed to collide, the red ...
0
votes
0answers
11 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 ...
-1
votes
1answer
28 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() { ...
0
votes
0answers
21 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
45 views

Unity 5 Animator controls - What are their Unity 4 correspondent?

I am following a tutorial that is made with Unity 5, but claims to be compatible with Unity 4.6 I am working with the Animator panel, and I was wondering where could I find certain controls on the ...
0
votes
1answer
27 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
1answer
143 views

How can I disable an NGUI button when I pause my game?

There is an NGUI button in my game, which when pressed increases the player's power. When I press the escape key, my game pauses completely. But the button still functions normally. Here's how I ...
0
votes
2answers
19 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.
0
votes
1answer
34 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
38 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
13 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 ...
1
vote
1answer
256 views
+100

Avoidance Steering Behavior acting inappropriately

I've been trying to implement this steering behavior in Unity: Understanding Steering Behaviors: Collision Avoidance However, I'm getting strange results. Here's the code for the script, feel free to ...
0
votes
1answer
60 views

Unable to instantiate objects Straight in unity

I am creating a match card game in unity and I want to place cards in straight direction that is one below another and so on... But with my formula It's showing cards one after another.Please tell me ...
1
vote
0answers
28 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 ...
0
votes
2answers
63 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
33 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
15 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
4answers
84 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 ...
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
0answers
20 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
61 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 ...
2
votes
2answers
2k views

Is it possible to use C++ with Unity instead of C#?

The title kind of says it all. Is it possible to replace C# with C++ on a game using Unity?
0
votes
1answer
42 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 ...
1
vote
1answer
102 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
30 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 ...
3
votes
2answers
127 views

Mock Collision Object in Unity

Problem: I'm trying to set up some tests with mock collision objects, but i cannot construct collisions with custom objects. What I'm trying to do: Collision2D col = new Collision2D(); ...
1
vote
1answer
244 views

Camera movement and threshold not working

I have a platformer that is in progress, part of this has a camera which I only want to move when the character moves out of a certain threshold, to try to accomplish this I have the following if ...
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
40 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
1answer
39 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 ...
2
votes
3answers
835 views

Do I have too many colliders on my screen?

I'm running into a situation where my frame rate drops from 70 FPS (on my desktop computer) down to 5 FPS (on my iphone) and I'm trying to understand why. At the moment, I'm only drawing simple ...
1
vote
2answers
88 views

How can I run a Unity game in a window larger than the desktop resolution?

I am exploring a research problem using Unity. I require a game resolution of at least 4096 x 786. There seems to be no option under build settings for setting a fixed screen size window. (The default ...
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 ...
0
votes
1answer
27 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
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 ...
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.
1
vote
1answer
208 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
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 ...
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
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 ...