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
3 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, ...
1
vote
0answers
13 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
10 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
64 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
38 views

How to deal with cheat avoidance and trusted client issue

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

Unity Pro license for android and ios [on hold]

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
89 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
25 views

Sine wave angle calculation [on hold]

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
19 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
18 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
18 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
13 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
33 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
47 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
68 views

Is XNA still relevant? [on hold]

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
42 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
26 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
19 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
25 views

Methodology for scenario creation [on hold]

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
39 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 ...
1
vote
1answer
25 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
320 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
110 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
16 views

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

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

Does Unity 3d cost money? [on hold]

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 ...
0
votes
0answers
16 views

How can I increase the horizontal speed of something every N seconds in Unity and make it STAY increased? [duplicate]

I have these particles that only move horizontally and to make the game harder I would like to increase the speed of these particles every 5 or so seconds. I am not sure how to do this I am still ...
0
votes
2answers
84 views

How to stop objects pushing each other away on collision?

I'm creating something along the lines of Super Smash Brothers. There's a problem with the collision between the two players and projectiles. We have rigid body on the characters and projectiles and ...
1
vote
1answer
100 views

Do I need the dev kit in order to release for Wii U?

In nintendo's developper website I found this quote. Q: How much does it cost to develop on Wii U? It’s free of charge to participate in the program and to submit games to Nintendo for ...
0
votes
2answers
69 views

How to add a logo to a captured image?

I have a plane which contain a WebCamTexture and a button to capture the image script to capture the image void CaptureAndSave () { Debug.Log (Camera_panel_script.webCameraTexture); ...
-2
votes
0answers
41 views

i want to increase timer by 40 sec but code is not working . help me [on hold]

using UnityEngine; using System.Collections; public class Timer : MonoBehaviour { public double timeremaining = 40 ; public double newcount ; // Use this for initialization void Start () ...
1
vote
1answer
46 views

Rotate on key down, revert rotate on key up?

How would I rotate an object a certain number of degrees when the left arrow is pressed and then rotate it back to its start when the left arrow is released?
4
votes
1answer
56 views

Blocking Physics Raycasts with Unity's 4.6 UI?

I use raycasts to determine hit objects and object selection in our game. I want these to be blocked by UI elements. Before I had a crude form of that where I just excluded rects of the screen, though ...
-1
votes
2answers
46 views

Accelerometer bike game rotation help

Hi I've been making a game for the last few months and not sure what to do. It's a 2d bike game and I want the rotation done with accelerometer, at the moment To test on computer I've set the ...
0
votes
1answer
37 views

How could you create an SSX style snow trail in unity3d?

So it SSX (a snowboarding game) when you are snowboarding you leave behind a dents in the snow(like a trail) .It's like how if you take a step in the snow you will leave a footprint behind but with a ...
0
votes
0answers
21 views

Unity: Animation Controller: Does “atomi” attribute in 4.6.3 same with “has exit time” attribute in 5.0

I'm viewing tutorial that base on Unity 5.0. In this version, I see an option which name is: has exit time: But on my Unity version is 4.6.3 doesn't have this option instead atomic. AFAIK, it ...
0
votes
0answers
51 views

Anti-Roll bar doesn't work

I'm making a racing game in Unity that has trucks as vehicles. For the truck movement, I'm using WheelColliders. After some testing, I found out that after a certain speed (~60km/h), turning made the ...
0
votes
0answers
30 views

LineRenderer is not collide [closed]

I am trying to make a jumble word game in which there are number of English letters in matrix form and the user needs to make a proper English word by drawing a line between letters. The line can be ...
1
vote
0answers
53 views

Building Mesh topology the math behind it

I'm trying to know the math of building a topology like that from a set of vertices P1,P2,P3, and get the desired indices for those triangles. Currently I'm just making a plane but I don't take ...
-2
votes
0answers
32 views

i am trying to access static variable from class “Scoremanager” to “Timeincrease”.but i have got an error [closed]

using UnityEngine; using System.Collections; public class Timeincrease : MonoBehaviour { //public Scoremanager plustime ; Animator animax ; void Start(){ int x = ...
1
vote
1answer
35 views

Pick which directional light shades which object

Suppose you have two directional lights pointing at one sphere from different angles. You would expect the sphere to cast two shadows, but it turns out that this isn't the default behavior. The first ...
3
votes
1answer
63 views

Cannot use DLL in my Unity project

I'm pretty new in Unity and i'm trying to write reusable code to use across multiple "project". So I wrote this class to POST and GET highscore via WebRequest. I compiled the project to a DLL and ...
0
votes
0answers
27 views

Raycasting from vertices is not working

I have two perpendicular planes in xz and yz like this I want to find the projection of the vertices of plane 2 on plane 1 using raycasting.The rays are hitting the plane but the log is showing ...
0
votes
0answers
19 views

front camera not working in unity 3d android

i have this peace of code : public string deviceName; WebCamTexture webCameraTexture; public Text txt; private WebCamDevice[] devices; private WebCamTexture webCam; // Use this for initialization ...
1
vote
1answer
54 views

From XML to class method

I'm trying to implement a dialogue system for a game in Unity(c#). I'm going to use xml cause I want the dialogues to be editable/added from outside. I have a practical problem. Let's say I got this ...
1
vote
1answer
142 views

Camera is centered on character, but doesn't show character in game window

I'm using Unity 4.6.3. I create an animation from sprite. When I press Play button, I see animation plays on scene window, but on Game Window, I don't see anything. Here is Inspector for main ...
2
votes
1answer
181 views

Pathfinding and clusters

For an assignment, I am required to implement an A* algorithm in order to find the shortest path between two object using different heuristics null, this effectively becomes Dijkstra Euclidean ...
0
votes
1answer
50 views

How do I convert a vector into a distance?

I'm doing a 2D raycast where i have to pass distance. The scenario is this: I'm using rigidbody2d.Moveposition to move my character instantly. However, before a character is moved, i want to do a ...
0
votes
2answers
34 views

Why is this 2d game object platform not moving [closed]

I found this code on a website and translated it to C#. While there are no errors, the platform still doesn't move. It's probably something really simple but I can't figure it out. My game scene: ...
0
votes
1answer
51 views

How to find the closest point on a plane

So I have this terrain with a perpendicular plane setup, now I want to move the vertices of the plane to their closest resp. vertices on the terrain. I made a drawing to illustrate my thoughts. ...