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

Format of bumpmaps

I have a height map I am generating in memory, just an array of floats from 0 to 1. I want to turn this into a bumpmap to be used in Unity3D. I believe I just need to create a Texture2D with the ...
-1
votes
1answer
51 views

Unity3D 5 Personal? [duplicate]

I want to make a game in Unity3D and I am planning to launch it to Android using the free license. However, if the game becomes a huge success and earns more than $100k, does (a) unity take the money ...
-1
votes
0answers
31 views

Create overlapping transparent images [duplicate]

I want to achieve this effect in the image. To make this I don't think a single pass to a stencil buffer would be enough because stencil buffers can't mask out the actual alpha inside of the ...
0
votes
0answers
16 views

How to reset a Script? [duplicate]

Is there a way where I can make the script restore its condition to that before I hit play? Should I create a new copy of the original script every time instead?
0
votes
0answers
52 views

Unity 3D character's cloth immersing in between

I have a character in which its cloth overlaps on itself which gives you a discontinuation seen below. I'm using Unity 5.3. The model has been imported from Maya where it works perfectly. This ...
1
vote
1answer
3k views

Is there any way of creating primitive 2D shapes in unity?

I have read the whole unity manual and watched the videos on sprites but I have a question. Is there any way of creating primitive 2D shapes in unity? (I will be assigning trigger colliders to these ...
1
vote
1answer
65 views

Changing the camera movement in unity

I have a code that allows me to move the camera on the x-axis. I need it to move on the y-axis as well as the x. using UnityEngine; using System.Collections; public class orbit : MonoBehaviour { ...
0
votes
0answers
24 views

Unity Need Help With TouchControl

Just finished a simple game in windows,the commented out lines in Script works fine as intended in windows,however in android the controls felt bit wierd so modified the Script,but now the character ...
1
vote
0answers
138 views

UNet send message by Client.Send error

I'm try to implement client-server communication base on UNET. The problem i got now is send custom message to server, but the Client.Send always show error without my understanding. So what i'm ...
0
votes
0answers
86 views

crop a texture in unity

I am working on cropping a texture in unity. I have a button,when I click on the button,its takes the photo and the photo get saved to a folder in the phone. But when taking the picture I want to ...
0
votes
1answer
85 views

Unity 4.6.6 iOS Build Issue

I am using unity 4.6.6 to create a Xcode build. When I create a build I am getting following error Cannot initialize return object of type 'Singleton_1_t6738 *' with an rvalue of type ...
0
votes
1answer
70 views

Ball Speed is not increasing as per code

I am working on small project , but now I have a problem . The problem is The Player speed (Ball speed) is not increasing as per the code . In the beginning ball speed increases , but as the time ...
-1
votes
1answer
53 views

Cannot turn script back on

I've got an issue. When (Input.GetMouseButtonUp (0), Speedy script is disabled, thus we cannot enable it again from inside the script like shown below. How can we go around this? public class Speedy ...
0
votes
0answers
34 views

Unity : How to handle compound colliders 2D physics

I´m making a small game where the basic game mechanic is dragging things around the level . My Player G.O. is the one who drags the other objects around the level . This G.O. (the player GO) has a ...
0
votes
0answers
25 views

Unity3D - Collider jumps when I hit play

When I press play, my collider jumps down and offsets everything. I believe its due to the animator as it doesn't happen when its not present. I'm using the stock Unity animations. Here is the ...
0
votes
0answers
47 views

Static smoothed particle hydrodynamics

I'd like to create a browsable universe based on simulation data, pretty much replicating what is shown here. Right now I'm investigating doing this all in Unity using the default particle system, ...
-2
votes
2answers
461 views

For loop won't run in Unity [closed]

I have a basic knowledge of coding in C++ but have been following a tutorial and am having trouble following it. I have tried using Debug.Log to find out my problem and it seems my for loop is not ...
2
votes
2answers
165 views

How to embed unity webplayer built inside phonegap app?

After exporting my game made with unity, I got two files web.html and web.unity3d I want to embed this game in a phonegap app. I used this code: <object id="UnityObject" ...
1
vote
2answers
299 views

Is async image loading possible?

Can anyone tell me if there is a async version of LoadImage() method? I found about Resources.LoadAsync, however the method doesnt work. Thank you
1
vote
1answer
46 views

How to set Text in C# code?

I'm trying to make a series of text appear programmatically. It's not quite showing up, and I'm struggling to understand exactly why. Any ideas? GameObject row = new GameObject("Row"); ...
1
vote
1answer
61 views

How can I combine sprites and attach them to a GameObject?

I have the following sprites: Background Foreground Combined they should look like this: The first problem is Unity can only show one sprite with its Sprite Renderer, so I can't combine them ...
1
vote
1answer
87 views

Limiting Bounds of Camera

I'm using the following code which I've taken from Unity and edited it a bit, but I seem to misunderstand the right way to actually add bounds to the camera controls and the way to implement the ...
0
votes
0answers
23 views

How can I gain depth buffer as a array in Unity or OpenGL

When I have an object (obj) and a material (mtl) file, I can load the 3D model in OpenGL or in Unity. After this, I want to get an array of 3D model's depth buffer from the Scene. By using the array, ...
0
votes
0answers
35 views

How to edit certain positions of characters body parts, Unity3D

I have a first-person shooter character. I would like an animation to only effect everything below his hips. Masking the desired body parts has solved half of my problem. When I play the game, the ...
2
votes
1answer
86 views

Switching character and keeping animations in Unity default third person controller

This is probably a ridiculous question, but I am doing a school project in Unity and am trying to create a basic game. For movement I want to use third person controller and since this is very basic I ...
3
votes
0answers
31 views

How can non-CG shader code in Unity be included?

In Unity shaders, #include, #define, and other preprocessor commands seem to not be able to be used outside the CGPROGRAM section of the shader. Since these are required for compiling multiple shader ...
0
votes
1answer
192 views

FB.Init() is not accepting in my c# Script

I am trying to connect fb with my game. its first time i am connecting fb with game. i downloaded fb SDk 7.3.0 and i am using unity 5.2.1f1. i imported the sdk in my game asset. then i created a new ...
1
vote
1answer
47 views

Problem finding correct value for Yaw

I use an Arduino and a 9dof sensor ( gyroscope, accelerometer and magnetometer ) and i'm trying to use the pitch, roll and yaw that the sensor gives me to rotate an object in unity. I managed to ...
1
vote
0answers
36 views

How to find or compute or look for overall/max RPM by simply checking for rotation?

I find it hard to determine the wheel RPM since I'm only making a simple 2D game of rotating object via Z-axis. I wanna try this solution but I got no change since I'm trying to find the RPM from a ...
1
vote
1answer
108 views

Seams between tiled textured cubes

I've created a textured cube in Blender, which I have uv-mapped like this: The tiles are 256x256, and I've mapped the coordinates exactly at the edges (e.g. x: 256, y: 512). I then export my model ...
-5
votes
1answer
66 views

New to game development [closed]

I have some programing experience, and I have tried making some games. I have some knowledge with c#, but I am much better at python. I have a general code structure knowledge, so I am open to learn ...
2
votes
1answer
183 views

Understanding animations of controllable characters

I am a newbie trying to learn basics of Unity3D (5) before starting to do the real thing. Even though I tagged it as Unity3D, the logic should be the same for every kind of game engine. So I will be ...
-1
votes
1answer
64 views

This if statement doesn't end once triggered by touch

I have an if statement that successfully recognizes a touch, but continues executing after the touch has ended. void Update() { float currentstep = speed * Time.deltaTime; Vector3 ...
0
votes
0answers
81 views

Laying an hexagonal 3d grid on a 2d-isometric game

I'm trying to create an hexagonal grid for my 2D game, but I got stuck when determining what exact angles/rotation for this 3d plane to have in order to fit with the current 2d isometric art. So right ...
1
vote
0answers
48 views

How to generate mesh at runtime using raycast points?

I'm trying to make a clone of the trail/line renderer with the difference that everything is perfectly flat, i.e. the faces are not designed to face the camera. I'm using two raycasts to get the ...
0
votes
1answer
51 views

Code vs. Configuration in Unity [closed]

I know a thing or two about Unity at this point, but I've still lots of subjective, best practice questions, Such as: How do you decide what values are obtained via Start/Awake initialization, and ...
0
votes
1answer
349 views

How to access a variable from another C# script in Unity

I am working on a simple game project, and have a problem. The problem is accessing the variable from one script to another. For example :- I have 2 Scenes (Game Scene and Game Over Scene), Game ...
1
vote
1answer
1k views

Unity UI Text Font Size changes with the screen resolution Problem

I am working on a project and now I have a problem . The problem is the font size. The font size is OK inside the Unity but it is really small when I play the game on a real Android device . My ...
4
votes
1answer
147 views

save a particular area of the scene as screenshot in unity

I need to save a particular part of the scene as screenshot. I have done a sample to show the particular part of the scene. When I click on the rectangular area the selected area will being shown ...
2
votes
1answer
58 views

Looking for a clever way to differentiate objects [closed]

I have a lot of cubes in my game (2d squares) and I decided to add some skins to them. However the colors that they have don't really make them look appealing. For example, I have this sprite: ...
1
vote
0answers
24 views

Collision destroy a cube when player collides [closed]

Unity- I have a mesh named and tagged as player I want that when it touches a Cube it should get destroyed C# script I need ....ty
1
vote
2answers
90 views

Detecting first or second Mouse Button Release?

I want to know how to detect if the user has released the mouse button the first time, or the times after that: Pseudo-Code: if *first* (Input.GetMouseButtonUp(0)) { do something } ...
4
votes
2answers
123 views

Unity 3D C# - Shifting beetween worlds?

Let's say I want to replicate Planeshifting from Legacy of Kain: Soul Reaver in Unity. There are 2 realms: Spectral realm and Material realm. The Spectral realm is based on the Material realm, only ...
1
vote
2answers
81 views

Can Unity4 and Unity5 projects coexist in the same computer?

I've Unity5 installed (free edition). When I started with Unity3D I did with 5 and never had the 4 before. A friend has passed me legacy code of a 90% complete game he used to do with Unity4 as he no ...
3
votes
1answer
341 views

Unity - How to get UI text to follow an object?

I'm a relative beginner trying to learn Unity, and I'm trying to do something that I thought would be relatively simple: Have a piece of text hover over an object, following it if it moves around the ...
0
votes
1answer
32 views

Hang script on the button in unity [closed]

When you click on a hand should trigger the script. I do not understand how this script to the button. Here's a script, even though he can not correct: using UnityEngine; using System.Collections; ...
0
votes
1answer
82 views

Health Bar is always 100% full

I have this GUI to graphically display a variable similar to the health in a game. The variable 'test' goes up and down during gameplay. To show this I have the following onGUI (): public GUISkin ...
-1
votes
1answer
102 views

Sprite disappears on android

I am programming a game in 2D for android and pc/mac. The sprite is the same and it's visible on the pc/mac. But once I use android and move the sprite, it disappears. The code is this: what could be ...
0
votes
0answers
16 views

Buttons duplicated on game scene

I have this set of buttons in a monobehaviour class: public GUISkin btnskin; public Texture2D emptyTex; public Texture2D fullTex; public Vector2 pos = new Vector2(20,40); public Vector2 size = new ...
0
votes
2answers
183 views

OnTriggerEnter() without rigidbody?

I know this is an old question and it has been answered for a lot of people. Unfortunately none of the solutions apply to the problem I seem to have with rigidbodies. I have a moving AI character and ...