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

Why has my refractive water shader become reflective

So I was making a water shader in unity and well it looked fine in the scene view but as soon as I went into the game view the refraction texture basically flipped up 180 degrees and made it look like ...
0
votes
0answers
8 views

Unity and ASTC support

I have configured in unity all compressed diffuse map textures as 6x6 ASTC blocks and normals and other maps as 4x4 blocks. However when I profile my game using Mali Graphics Debugger it tells me ...
0
votes
0answers
8 views

How does Unity Static batch handle submeshes

I have the following 2 meshes: Mesh 1 Submesh 1 - Mat 1 Submesh 2 - Mat 2 Mesh 2 Submesh 3 - Mat 1 (same as mat1 from submesh 1) Since submesh 1 and 3 have the same material and they ...
0
votes
1answer
23 views

How to create axes for a console controller

What should I change in the input manager to enable me to use a joystick? I have a usb cable to connect the joystick to the computer but how do I set up the controls?
0
votes
1answer
39 views

Can't set up a PS3 controller in Unity

So I connected a ps3 controller to my computer via USB cable, when I press play I am able to move by using arrows on the left of the ps3 controller and also I am able to shoot and aim by triangle and ...
0
votes
1answer
43 views

Can't move character at all in unity basic platformer guide

so, I followed below tutorial. https://unity3d.com/learn/tutorials/modules/beginner/live-training-archive/creating-a-basic-platformer-game Going well until 18:50 (video time in tutorial), when the ...
0
votes
1answer
31 views

How to correctly draw a 2D polygon in Unity

I'm trying to draw a 2D polygon using GL.Line; however I'm not getting a polygon but separated lines instead. In the example below, I would expect a rectangle formed by the spheres: My code is the ...
-3
votes
0answers
47 views

Orbital gravity in Unity 5 [on hold]

It's pretty much in the title: how can I make orbital gravity? I am trying to make a space-themed FPS.
0
votes
2answers
27 views

get back unity default interface

i installed unity recently .and interface of unity looks like that [see the image] in all tutorials i see on the internet. but this is my one(I'm not in the game tab I'm in the scene tab)it's look ...
2
votes
1answer
23 views

How do I make UIText scale properly in a VerticalLayoutGroup in Unity?

I have a Panel with an AspectRatioFitter on it. In there, I have a vertical layout group, with three buttons, Standard Mode, Speed Mode, Chaos Mode. I have the Layout Group's anchors set to keep its ...
1
vote
2answers
40 views

BoxCollider not blocking other object(s)

I'm really newbie , watched about 20 videos about and tried to do something. But I still have problems with collisions. I'm working on 2D. I have a Sprite and a Cube (GameObject>3D Object>Cube). ...
0
votes
1answer
15 views

Export normal map from unity?

In unity I can create a normal map out of a black and white image (By changing the type to normal map and select create from grayscale) Im wondering if there is a way to export the normal map like it ...
1
vote
1answer
19 views

Water4Advance far view seems stale and plain

Hi How can I remove far clipping in Water4Advance so that it matches near view like following img? Currently far view water seems plaine with no wave n bumps at all.
0
votes
1answer
42 views

Unity why do all gameobjects not dissapear from view when I switch cameras?

I am having trouble with camera switching. I have two cameras: "Camera1" and "Camera2". A "button script" attached to Camera1 allows a switch to Camera2. It also positions the cameras. There is a ...
-1
votes
1answer
10 views

Cant sign in to MSDN/Visual Studio in Unity after trial [on hold]

I've been using VS13 instead of Monodevelop for my Unity projects and my "30-day trial" has ended. Apparently all I have to do is sign in with my MSDN account and it should let me continue using VS ...
0
votes
1answer
22 views

UNITY3D - Orthographic Camera not render SHADER (2D GAME)

I have a problem with camera render, see the video please :) (note.: sorry for the music) http://youtu.be/BB8rXIzIWVU In Camera "Perspective", i can see the effect of shader: In Camera ...
0
votes
0answers
14 views

Need help with torque and velocity [on hold]

I made some basic movement code for my player in C#. Here it is: public class Movement : MonoBehaviour { public float rotationspeed = 100.0f; public float maxrot; void Update () { ...
0
votes
0answers
14 views

How to make multiple characters with similar design [duplicate]

I am making a 2d platformer RPG game and I would like to create a character creation system that allows you to create your character as you please in the beginning. Since I want at least 10 different ...
1
vote
1answer
32 views

Using coroutines to instantiate larger GameObjects in Unity/C#

We are making a scroller type game for mobile platforms and we got pretty far (Beta is already out). Now we are adding some additional content and are starting to experience a noticable lag when ...
0
votes
0answers
15 views

Unity WebGL or WebPlayer? [on hold]

The last time I tried WebGL (a couple of months ago), it ran at 30x lower framerate than webplayer, took forever to build, and had increased build size. Since then, I haven't seen significant work ...
0
votes
1answer
24 views

Is it possible in Unity to Flip a 2D Sprite Without Flipping the Object it is Assigned to?

I 'built' (followed a tutorial) on a collision detection system, and when I flip the object to go left and right the collision messes up. So I have three options; find a way to modify the collision ...
1
vote
0answers
15 views

Unity - drawing halos behind everything else

I would like it so that the halos created by the draw halo parameter in spotlights are drawn behind all other meshes etc, currently it does this very weird thing where halos are sliced in half by ...
0
votes
1answer
21 views

Create a WebGL native plugin

I am trying to create a WebGL plugin and I read in the docs here: http://docs.unity3d.com/Manual/webgl-interactingwithbrowserscripting.html But I'm not sure I understand. I created a file in ...
0
votes
0answers
41 views

Framework with multiplayer? For DotA like game [on hold]

I'd like to create realtime multiplayer, DotA like game, the problem is - realtime multiplayer is really, really hard to do properly. I wonder, if there's a game framework that has full support for ...
4
votes
3answers
147 views

How to clip game objects to a rectangular area

I'm trying to figure out how to do this but am coming up short. I'm making a slot machine in unity 2d and would like to clip the tile prefabs when they leave a given rectangular area. I can't seem to ...
4
votes
2answers
522 views

A* pathfinding for dynamic obstacles and player made blockages?

Hi I'm creating a TD in Unity 5 and need some help with my Pathfinding. I'm going to use Arons A* pathfinding for my AI which enables me to use dynamic objects and update the path during run-time. ...
0
votes
0answers
19 views

Camera rotation in maze game depending of accelerometer

I'm still newbie in Unity 3D... I'm trying to develop simple maze game. I want to roll my ball through maze, but I have to rotate camera left or right, otherwise the player can't see what's behind ...
-5
votes
1answer
36 views

How can I properly implement Lerp in this code so that the it can run smoothly in every device? [on hold]

How can I properly implement Lerp in this code? if (isJumping) { actualSpeed -= slowAmount * Time.deltaTime; transform.position += Vector3.Lerp (0.3f, actualSpeed * Time.deltaTime, 0); ...
1
vote
1answer
25 views

How to load sprites manually from a file in unity?

We're making a game, in which the User can apply their own textures to the game in order to make their own rooms. Is there a way to make a prefab with sprites, scripts, colliders, etc during runtime? ...
0
votes
1answer
29 views

Rotating A 2D Cannon Based On Mouse Position [duplicate]

I'm creating a game like bubble shooter, I have a cannon which is in the image bellow: I want to rotate the cannon based on mouse position. So far I tried various solutions I found over the web but ...
-1
votes
1answer
29 views

Simple voxel-block melee removing script

I'm trying to create a voxel based game, now I want my character to remove blocks with a melee weapon, but I'm not sure which way to go. I mean is it the only way to get the Block with a raycast? I ...
0
votes
1answer
13 views

Dynamiclly applied texture to gameobject using GUI button

In a scene Multiple different gameobject (almost 30 kinds of gameobject) with parent child relationship. At run time (by selecting on gui button) I want to change the texture of each clicked ...
0
votes
1answer
38 views

Collsion on place without collider

I'm creating a simple endless runner game, I'm dynamically generating the terrain, I'm placing obstacles at runtime at pseudo-random position. Here is the script that generates the terrain and places ...
0
votes
2answers
37 views

Stitching terrain tiles made in Blender at runtime

Background I'm making several individual terrain tiles inside of blender for use within a Unity 3D 5 game. Each tile is square and is made to represent a segment of a world. In game the tiles are ...
2
votes
2answers
26 views

How to instantiate a sprite from a sprite sheet using script in unity?

We are creating a 2D top down rpg, and we have multiple textures, and we need to be able to change which sprite sheet its reading from in order to change the look of the walls and floor in each room. ...
0
votes
1answer
55 views

Generate random position within object

I have a plate object which is generated somehow (I don't care how), now I want to put another object within this object on random position. Lets say that I want to put random trees on this plate. How ...
2
votes
1answer
39 views

Getting the Volume of an Uneven Mesh

Let's say I have a cube, and that cube breaks apart into 100 different unevenly sized pieces. How can I get the volume of each of those pieces compared to the cube's volume? Using this in order to ...
3
votes
2answers
88 views

Unity - Water Cube (to 2D game)

I wonder if you can create a cube of water within the unity! I'm starting to use the Unity, and took a sought as to whether there was already something like this ... but have not found any tutorial ...
-2
votes
0answers
28 views

Getting size of Unity3D scene (bounding box)

I have following problem. I need to get bounding box of Unity3D scene in order to both making it impossible for character to fall endlessly if he happens to get out of the scene, and to calculate AI. ...
1
vote
1answer
41 views

How to Slice the external Spritesheet programmatically by using C# in Unity

I have a sprite sheet like this: I am using Unity Engine to develope my game. I would like to load this external spritesheet outside and slice it as Grid type programmatically instead of using ...
1
vote
3answers
112 views

AI Random Path Genenrating

I would like to make an enemy walk randomly around a map I have made and if the player is in his zone of sight the enemy to change state to attacking/following. So how would I accomplish something ...
-2
votes
1answer
50 views

How can I make a gameObject “stick” to another gameObject after it has collided with it?

How can I make a gameObject "stick" to another gameObject after it has collided with it? Right now the gameObject just passes through! [C#]
0
votes
2answers
48 views

Unity - Determine direction vector3 from a point in space and an angle in eulers

I have a ball positioned as Vector3(x, x, x). I was able to get the direction of the ball to the mouse clicked position with: Code (csharp): Vector3 direction = Direction (clickPos2 - startPos); ...
0
votes
1answer
24 views

Unity Application.LoadLevel freezes the game on Android device

I'm developing a game using Unity. The game has a single level and after the player wins/loses, I simply want to reload the same scene. Here's the code I'm using: private void OnLevelFailed() { ...
0
votes
1answer
33 views

Is there anyway I can make a plane visible from both sides?

In Unity i have a model of a tree with leaves made of a plane and a texture, when I upload it to unity the texture is only visible on one side so how can I change it to be visible from both sides ...
0
votes
0answers
18 views

Use Lerp Position and Slerp Rotation together

This is what I try to do, When I click on a UI Element, the camera smoothly rotate (to look at the target) and simultaneously move on top of the target. To perform that I use a two Coroutine one for ...
0
votes
2answers
14 views

unity - get component variable from object in trigger

i want to get a component value from the game object which collides with my trigger's object script. this is my code on the trigger: void OnTriggerEnter (Collider obj){ ...
0
votes
2answers
26 views

WorldToGUIPoint seems always off by about 2 pixels

I'm trying to draw small boxes at each vertex of a mesh, in the editor. My OnSceneGUI code looks like this: foreach (Vector3 vertex in _mesh.vertices) { Vector3 worldVertex = ...
0
votes
0answers
22 views

Google Cardboard Application is not Running on moto G 2nd generation mobile

I am working on the Google cardboard application, here i am using the unity to develop the cardboard app. I have tested the application in moto g 2nd generation here application is not running smooth, ...
0
votes
1answer
35 views

How to set up the camera for a PS Vita game?

I am starting my first project for Unity and I want to start a new game for PS Vita. This console has a resolution of 960x544 pixels. How do I have to set up my camera so that it adapts to this ...