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
0answers
2 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
10 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
19 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
53 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
57 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
25 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
53 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
0answers
21 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
35 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
35 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 ...
4
votes
1answer
379 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
35 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
38 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
68 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
206 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
25 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
38 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
26 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
40 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
128 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
45 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
19 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
12 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
19 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
88 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
41 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
33 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
109 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 ...
0
votes
0answers
20 views

Unity PolygonCollider2D acts different on iOS Device

I'm instantiating new game object, then adding a SpriteRenderer component and attaching a sprite object, and only after the sprite is fully loaded, I add a PolygonCollider2D, to fit the sprite I've ...
0
votes
0answers
19 views

save and view snapshot image from android device

I'm having a problem with saving image into an android device this is what i did My java class : package com.test.app; import com.unity3d.player.UnityPlayerActivity; import android.os.Bundle; ...
0
votes
1answer
38 views

How do I draw a line from a set of points in unity to use as terrain in a 2D game?

I'm trying to make a 2D game in unity. My terrain is randomly generated and what I'm trying to do is make a bunch of points with different x coordinates and then draw a line through them to use as my ...
0
votes
1answer
48 views

How to deal with events in a game with multiple players, in Unity?

As I'm developing our game I have asked myself a couple times "When we have more than 1 player, how will I ensure events from player A do not crossover to player B?" As an example, lets say player A ...
-1
votes
0answers
82 views

Is XNA still relevant? [closed]

I am currently devlopping a game with XNA. But the community seems to not be active anymore. That's why I am asking if I should still go on... What's the advantage of using Unity3D ? Will I be able to ...
1
vote
1answer
45 views

Unity2D: Automatic scaling of camera and sprites

I'm working on a point-and-click adventure game using Unity2D for mobile devices and possible PCs and I'm trying to wrap my head around supporting devices with different screen sizes and aspect ...
0
votes
1answer
31 views

maps in a multiplayer diablo clone - unity3d

I'm messing around with unity3d free, trying to figure out if i can get away with using its readymade graphic engine. I have some problems figuring out how maps should be implemented/handled (the ...
0
votes
1answer
31 views

Export Spriter animations to Unity

I want to use bone animations in my 2D game for Unity (5.0 beta). I am trying Spriter. Apparently, it has no official Unity support. There was some guy, back in 2014, who posted a plugin to convert ...
0
votes
0answers
27 views

Methodology for scenario creation [closed]

We are going to create a 2D zelda-like game with an static world (not procedurally generated), where exploration and interacting with the scenario is the focus of the game. We have a rought idea of ...
0
votes
1answer
45 views

Remove previous scenes from memory in Unity 3d

I'm making a game in unity3d which I optimized as much as I can. I've made different levels in each scene. After a few scenes the game starts to lag on mobile devices. And works smoothly if ...
2
votes
1answer
31 views

Unity 4.6: why Image object doesn't stretch all sides of canvas

I insert a canvas, after that, I insert an image at center. Then, I want to stretch this image over this canvas, so I choose last option as below: But the image doesn't stretch to fit the canvas, ...
2
votes
2answers
333 views

Unity: Make camera center of screen

Here is my camera setting: With this setting, when I run, game is not center of screen: Please tell me how to fix this. thanks :)
0
votes
1answer
22 views

GUI.Box z-index for mouseover

So I am drawing an inventory with slots like so: private void DrawItemSlotAndAttachActions(Item currentItem, Rect slotRectangle, Event e, int itemSlotPosition) { if (!(currentItem is ...
2
votes
2answers
122 views

How to synchronize damage with attack animation in a RTS game?

I have been working on a RTS game in unity and did damage deal through code and a timer but it does not fit with the animations quet well. The damage is dealt in the beginning of the animation and ...
0
votes
1answer
17 views

click to move, RigidBody2D error I am suspecting? [closed]

I have been working a bit on this, and I can't figure out why the velocity of Rigidbody2d is going haywire.Character bumps the air like crazy if isKenimatic is toggled off, elsewise he moves ...
-4
votes
1answer
78 views

Does Unity 3d cost money? [closed]

So I installed an Unity engine and I want to develop games by that. I heard that it costs 1500$ to program the code and post the game. Is that true? Did some1 developed a game with it and uploaded it ...