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

An Object is moving but its velocity is 0

In Unity 5 I have an object move when I press a button, force is added as seen by the code below. Then once this force is added I print out its velocity. The problem is that in the console my first ...
1
vote
0answers
90 views

How to make a part of an object with navmesh agent rotate separately?

I have a game object (a Humvee jeep) and it has a turret gun on top of it. What i want to do is while the vehicle is moving in a line the turret look at player. I tried rotating the turret gun with ...
0
votes
0answers
341 views

How to draw a screen aligned quad by command buffer in Unity deferred rendering

I want to draw a screen aligned quad by a command buffer, and add it at CameraEvent.BeforeLighting. I create a quad mesh in code, and I'm sure the mesh is right, because it works if the command ...
0
votes
1answer
86 views

Drawing Chess Board vs Using Picture

Would it be better to actually draw the board in a script and attach colliders to each piece or get a picture and add the colliders before the game starts? Is the difference in processing power ...
2
votes
1answer
115 views

Given a 3d goal point and a turn rate in radius, find max speed to reach goal

I'm working on a 3d space sim with AI agents flying ships through space. I am trying to get them to follow a waypoint path nicely, which involves figuring out how fast they can be travelling and still ...
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 { ...
2
votes
3answers
237 views

How to create in game menu attached to unit

I'm creating a game similar to Banner Saga, except my game will be in 3D, with a camera that can move around and zoom in and out. What I want is for a menu to appear after the user clicks on a unit. ...
0
votes
1answer
373 views

How can I export a model from Unity to three.js?

I want to buy some assets from the Unity asset store and use them in my three.js project, but I am not sure what the best way to go about this is. Some cursory googling got me this, but Collada ...
-3
votes
1answer
51 views

In Unity how do i make the camera follow a character in the y axis..? [closed]

I have a character which keeps moving in the y-axis and the camera needs to be fixed to follow with the character for some extent and when the character falls down camera should freeze at the point. ...
0
votes
2answers
55 views

Limit the boundary of Touch

a game that I currently working on is in a way that player should actually draw a rainbow on the screen by tap and drag gesture in order to make a hills for the car. but the issue that i currently ...
0
votes
2answers
103 views

Create a custom shape from a basic shape

Is it possible to create a custom shape by modifying one of the regular 3D objects in Unity3D 5.1? For an example: Make a cone from cylinder.
0
votes
0answers
55 views

Unity Mechanim makes physics behave weirdly

I'm developing a 2D Wrestling game in Unity 5 build 5.1.2f1. It's just the beginning so the character only has a number of animation states and a rigidbody2d. This is the state machine and these are ...
0
votes
1answer
340 views

Click to move - get NavMesh layer

I'm using NavMesh, and NavMeshAgent for my character movement and Pathfinding. I made a testing NavMesh with 2 area layers: 0 = Walkable 3 = Water. In have a click to move script, and i need to ...
1
vote
1answer
380 views

Difference between terrain and plane

I'm going to make an environment with trees, walls, rocks, mountains and bushes in Unity 3D 5.1 . I don't know what game object suitable for the ground. I have used both terrain and plane in earlier ...
-1
votes
2answers
78 views

How to attach a weapon to a player in unity?

I need to know how to attach a weapon (GUN) to a player and how to control him. Please be detailed as I'm a Beginner. Thanks in Advance
1
vote
1answer
107 views

How do I know what button was clicked? (Unity)

I have a prefabbed button (UI.Button) which I'm instantiating ten times: public void LayoutButtons() { GameObject newCanvas = Instantiate (canvas) as GameObject; for (int i = 0; i < 10; ...
-1
votes
1answer
27 views

C# Refence or instance ( For List and assignment ) [closed]

First question : Does List holds the refence to an object or the instance itself ? Second question : When I assign an object to another, are they the same instance or two different ones ? ...
0
votes
1answer
148 views

Change the color of GL.wireframe in Unity

Need to render something with GL.wireframe, this is what I have at the moment. void OnPreRender() { GL.wireframe = true; } void OnPostRender() { GL.wireframe = false; } However the ...
1
vote
1answer
52 views

Unity 2D, do Touch event must happen in the update() function?

(Unity 5.1) My Issue is when attaching a script to a gameObject, all the examples I've found are based with the update() function and it's pretty wierd for me, as a desktop games developer. Is there ...
0
votes
1answer
735 views

Movement Issues: jumping to another GameObject

My code can make a GameObject jump while simulating gravity. Now I want my GameObject to jump. The purpose of this is to always have a nice "touchdown". Instead of the parabola, I want to use my jump ...
0
votes
1answer
147 views

How to stretch screen image to fit higher res monitors set to lower resolutions with Unity?

Using Screen.SetResolution(width, height, windowMode); , how might I stretch the image to match the monitor size? I've noticed this problem occurs both with this line of code and also the default ...
3
votes
1answer
181 views

Batching texture to texture rendering in Unity on the gpu

I'm working on a 2D sidescroller within Unity 5.1. The terrain is intended to be semi-infinite in all 4 directions, procedurally generated using a noise algorithm. I'm using a 3x3 grid of quads as ...
0
votes
0answers
372 views

Unity3D & Matlab communicating

I have a few Matlab scripts that analyze motion data (i.e. process motion-capture files generated by Xsens MVN Studio) but the scripts require a file to work on; meaning the motion-capture should be ...
0
votes
1answer
130 views

Unity 5.2 — Animator window / tab

I have downloaded the latest Unity 5.2.0f3 so I wondered if it is just me or others are having a similar problem: When I double-click on an animator controller to launch it, the animator tab/window ...
0
votes
1answer
136 views

How to set rotations to 0,0,0 in 3ds max for exporting in unity?

I'm a modeler in 3ds max and the unity programmer ask me that the object must have: pivot with Y up rotations at 0,0,0 but every object that I export in fbx he says don't have rotations at 0,0,0. ...
0
votes
1answer
223 views

Rotate arrow without using Unity3d physics engine

I have this code that simulates the movement of a projectile without using the unity physics engine IEnumerator LaunchProjectile(int angle, float speed) { // Move projectile to the position of ...
1
vote
0answers
135 views

Unity and TFS Merging

I'm trying to come up with a good Unity dev collaboration solution for a company where TFS is used as main version control system. I've setup the Unity projects to create metadata and store all as ...
0
votes
0answers
70 views

[Unity 2D]Player movement not working against diagonal elements

I am building a game like The line Zen. Player is moving along a road and has to avoid hitting the edges. Right now, i have planned it as follows: On click , cast rays in 8 directions. For the ...
2
votes
2answers
39 views

Unity Physics Trouble with Platform Objects

Hi Game Development Community! I'm new to designing in unity, and I'm having some issues with my player game object traveling through platform game objects. Several of my game objects (pink in ...
-1
votes
2answers
51 views

Before I change position I want to check if the gameobjects are collinding

For starters I'm new to Unity3d. So my question is when I click on an object I want to change its position but without collinding with the other objects and I need a function to check that. I already ...
2
votes
1answer
201 views

Player takes too long to start walking

I'm new to Unity and after doing some tutorials and reading documentation from Unity, I've started a test project. The game is a 2.5D platformer and I wrote the PlayerController; it looks like this: ...
0
votes
0answers
134 views

Snap gameObject to grid tile

I'm making a 2D TD game and currently I have made using quill18 tutorials a simple building system. However I'm trying to have it snap on my tiles as I mouse over them. This is my script applied to ...
2
votes
2answers
2k views

Unity 5 Standard Assets for Linux / Ubuntu

Unity recently has released Unity3D Editor for Linux machines. But in its website there is no support for Linux / Ubuntu. As of Unity 5 standard game assets have been removed from the editor itself ...
0
votes
1answer
51 views

Call function after Level loaded

I'm stuck in this situation: I have a GameObject with a script, that persist trough Level loads. Inside this script, when a condition is meet, i Load a Level, and also call a function. That function ...
-2
votes
1answer
44 views

How to manipulate unity camera in a C# script? [closed]

I am new to unity and i'm trying to move the camera to follow the player, but everything i tried won't work. Please explain what each step is and show code. I want to add to its position not use ...
1
vote
0answers
113 views

Reverse Movie in Unity 5

guys! Is it possible to reverse video or apply a rewind in Unity 5? I searched in the web but could not find the solution.
0
votes
0answers
67 views

Goal keeper AI with animation

I'm working on football simulation game. I am trying to implement Goal keeper AI. I did calculated ball trajectory and intersect point. I wanted to Goal keeper to dive to the interaction point and ...
1
vote
1answer
49 views

How can I simulate a “Hot Swap” betwen Audio Clips?

I have a Unity project with 3 separate looping Audio Clips and a single Audio Source. Based on certain events, I swap between which of them are playing. This works fine, but whenever I swap between ...
3
votes
1answer
35 views

Why doesn't the animtor animate in unity5?

I have a player consisting of 20 different body parts which I have animated into a walking cycle. When I play the animation in an 'animation' component it works as intended, but when I try to play it ...
0
votes
1answer
108 views

How to force Landscape Mode Unity3D Android Game?

I am developing a small side project on Unity that will ultimately be for Android but I cannot figure out how to force landscape on the device and when I have tried it out the game just goes all over ...
0
votes
1answer
76 views

How to manipulate unity objects in a C# script?

I am new to unity and i was wanting to know how i can change a objects position and angles and stuff like that in a c# script. I exported the object from blender as .3ds. The objects name is ...
1
vote
0answers
32 views

Unity PhotonView - Ownership problems when synching objects

Im creating a billard game where one white ball will be controlled by two online players. I have set my object photonview to ownership takeover: https://www.dropbox.com/s/kq79lfh4clerx7q/no.jpg?dl=0 ...
1
vote
2answers
58 views

Is it possible to have FixedUpdate execute once every n frames?

I'm currently building a small game, and I've created this simple character controller using FixedUpdate, which executes every frame. using UnityEngine; public class PlayerMovement : MonoBehaviour { ...
1
vote
3answers
971 views

Unity LoadLevelAdditive and baked light scene settings

I am a programmer for a small game. For our levels, I separated the UI from the level data, so one scene is a scene which contains only the UI, the other scene has all the gameobjects and models and ...
1
vote
2answers
467 views

Unity crashes when opening a project

Why does this happen? I'm new to Unity development. I have installed Unity yesterday (2015-09-06). This is the error that I get:
0
votes
1answer
119 views

Objects with custom shaders cast grayscale shadows when lightmapped

Unity 5 seems to be able to calculate colored shadows from objects mapped with standart shader and legacy shaders. What should I do to make my custom shader to cast colored shadows as well?
0
votes
3answers
108 views

A method to create and assign a name to a GameObject (Unity)

I'm trying to create a function that takes in a name of an object in the editor and assigns this accordingly as well as the name of a sprite, rigidbody, etc. Basically what I have so far is- ...
1
vote
1answer
248 views

Change Material color programmatically

I'm writing a simple C# Script to change Materials color of a object. public class Highlight : MonoBehaviour { public bool Mouse_Over = false; public Color Highlight_Color = Color.white; ...
0
votes
1answer
358 views

UNET start game with friend by finding their name, Android

There is a game at the google play store called Fun Run 2- Multiplayer Race. I loved its feature to find friends by writing their names, and then to play with them. Is it possible to achieve that with ...
0
votes
3answers
144 views

Making a 2d sprite based game in Unity? [closed]

I'm looking at developing a 2D sprite based platformer. Usually I make games in Gamemaker, because I find it very easy to use. I have never used Unity before but have heard a lot of good things. So, ...