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 (2)

0
votes
1answer
59 views

Unity - Exporting and Importing Terrains

To provide modding support via Unity editor, I need to export terrains in editor and load the exported terrain in runtime. Is this possible by any manner?
1
vote
0answers
21 views

Can I make global illumination from directional lights only affect their assigned layers?

I have a large space station scene, where there are giant mirrors that are sources of reflected light, and to emulate this, I made directional lights attached to the mirrors with cookies to make them ...
0
votes
1answer
34 views

Unity: Mouse control only works when I first click outside of the game window

I am new to unity and am programming my first person view. I have a camera attached and a character controller and I have the following script to run the character controller using UnityEngine; using ...
0
votes
2answers
43 views

Sprite with shadows in both sides

I have a gameobject with a SpriteRenderer, and I want it to cast (and receive) shadows like a 3D model. The sprite will turn around depending of his direction, so all faces must cast shadows. I ...
0
votes
1answer
18 views

Animator consecutive set parameter problem

I'm having a little problem with my animations transitions. I have this diagram: http://imgur.com/Se8Ix1L My transitions is made by updating the parameter "stateparam". My code, changing the ...
0
votes
1answer
28 views

Unity 3d - Touchscript Asset: Get object when “touched”

I have a question regarding the exact method for getting the game object that I'm touching. I thought it would be getting the name of the PressGesture once the touch starts...but it returns me a Swipe ...
0
votes
1answer
51 views

Synchronize objects' movements moved by coroutine function

I'm using Unity version 5.3.5. I'm having problems to synchronize the movement of three different objects from point A to point B and vice versa. To move the objects I use the following code: public ...
0
votes
1answer
42 views

how to get current zoom level from scene window

I want to show some label on some rect transforms using Handles.Label(). it shows the text with a default font size regardless of the zoom level in the scene window. public class NodeWrapper : ...
0
votes
1answer
29 views

How to access triangulates in a 3d model that was imported in Unity?

I have a 3d model of a city. It is in collada format and ina dae file. I imported 3d model to unity but I don't know how can I access the objects of this 3d model with c# script.Because I am new with ...
0
votes
2answers
46 views

Constructor in derived class from MonoBehavior [closed]

So i've got a Part abstract class which inherit from Monobehavior public abstract class Part:MonoBehaviour​ And then I've a class frame which inherit from Part class public class Frame: Part { ...
4
votes
1answer
150 views

How do I apply domain warping to my marching cubes voxel terrain in Unity?

So, in GPU Gems 3 there is a cool warped terrain that i seek to replicate. Currently, I'm generating the terrain fine, but I want to add that warp effect. // Do this before using 'ws' to sample the ...
0
votes
3answers
82 views

How to do camera follow without drag and drop in Inspector in Unity?

How to do camera following an object with special tag without drag and drop into Inspector? I have 2 prefab model they are not into hierarchy for the moment when player start play. To load selected ...
1
vote
1answer
40 views

Gradient Banding in Unity Android

In an Android game, I have a gradient background that changes color over time. This was achieved by creating a 1x2 pixel texture in code, and stretching it over a large quad with bilinear filtering. ...
0
votes
1answer
43 views

(Unity) Player movement script keeps moving

My player in unity moves but doesn't stop when i let go of the key heres the code: using UnityEngine; using System.Collections; public class Player : MonoBehaviour { Vector3 movement = new ...
0
votes
2answers
46 views

Particle System Hangs the Game

I create a Smoke Effect in my Game Scene using Particle system. it works Perfectly in unity Editor, but when I run Game in Android Device it hangs. I search about that but not getting any right ...
1
vote
0answers
43 views

Moving along the surface of a mesh?

I'm trying to replicate the movement in this game: https://www.youtube.com/watch?v=OcvD8BXars8 The players ship along with all other game elements move along the surface of a mesh. I've tried ...
0
votes
1answer
36 views

Unity Wwise. No audio in my game build

I'm building a game in Unity using Wwise as the audio engine. I'm on a Mac and whenever I build the game, there is no audio. Apparently this is because the sound banks are not in the correct folder. ...
0
votes
0answers
15 views

Unity VR: Possible to render a multiple mesh/material model transparent without seeing innards?

I would like to render a model in VR using Unity. This model consists of multiple meshes, some with different materials. I would like this entire model to fade in and out without having depth sorting ...
3
votes
0answers
43 views

How do I find the face of an object?

I'm working on a build mode but the thing of it is the player is able to deform meshes. Part of my build system includes having "snap" points thus I need to be able to find the face and recenter the ...
1
vote
0answers
15 views

Unity Google VR SDK Main Camera showing Game Objects Behind Left and Right Cameras

I'm trying to get a basic VR app up and running on iOS with the Unity Google VR SDK and I've run into a strange issue where my game objects are appearing behind the left and right camera views in ...
1
vote
1answer
39 views

UDP server in unity not working

I know there are a lot of UDP examples out there, but I really need to know specifically what I am doing wrong. I have Wireshark monitoring my data traffic and according to that program Unity is not ...
-3
votes
1answer
40 views

How to assign GUIText from heirarchy into prefab object?

I want to assign GUIText from heirarchy into prefab using that C# code: private Text HighScoreText; void Start(){ HighScoreText = GameObject.Find("HighScore").GetComponent(); } But ...
1
vote
2answers
46 views

Reset Polygon Collider Runtime (Unity)

I've created an animation by using different frames. Then applied polygon collider on that object. Problem is that when frame changes in animation, it does not reset collider. I've searched for ...
0
votes
1answer
58 views

Unity saving and loading of images in game

So I'm planning out this game for unity but I don't know how feasible it will be with all of the image loading and saving. I've worked with some other coding, and while I am in the process of ...
1
vote
0answers
32 views

UDP client code throwing a very nonspecific exception

so I'm writing a UDP server and client on a couple of the machines in my virtual reality environment to allow (in this case) data from the location in the environment to trigger some air nozzles. The ...
13
votes
3answers
954 views

How can I create light shafts like Journey's in Unity?

I'd like to create cartoon looking sun / light shafts that look very close (or identical) to the ones in very well known and loved games like Journey: and Ori: How can I accomplish this?
0
votes
1answer
148 views

How do I create the terrain mentioned in GPU Gems 3

So, i want to create this style of terrain: http://http.developer.nvidia.com/GPUGems3/gpugems3_ch01.html However, as much as I scour the web trying to find ways to implement this inside Unity, I can'...
1
vote
3answers
723 views

Do editor errors affect device performance?

Do errors that come up in the Unity editor affect a game's performance on a device (on Android in particular)? I'm talking about errors that keep coming continuously during Update() such as ...
1
vote
0answers
40 views

Everyplay not working on Unity 4.6

I am using Everyplay in my game and when I run my game on mobile. It showing me as recording supported as false. I put the Client ID and client secret as well and checked on Android enabled. Can ...
4
votes
1answer
39 views

Box Collider center relative to GameObject

I'm trying to get the distance from the BoxCollider center of a gameobject to the bottom of that same BoxCollider. Note that the center of the collider is slighty modified. So far, I have: float ...
1
vote
1answer
33 views

How to set the position of objects in pixels on the scene editor

I created a camera of the size of 480x854 as the project is meant for Android but whenever I try to position objects on the scene editor, their positions dont seem to be in pixels. It is like -10 y on ...
1
vote
1answer
37 views

Interactive Controls (switches, knobs, buttons) in Unity

I'm working on a puzzle aspect of a game, and wanted to make a section where players relay information to one another, and have to input the correct values. At its most basic, its a few stored ...
2
votes
3answers
141 views

I want to delay 3 sec to load next level after the collision in C#

I need to delay the load new level by a few second. Please help.This is the script I need to use: void OnCollisionEnter2D(Collision2D col) { if (col.gameObject.tag == "Enemy") { ...
0
votes
2answers
86 views

Need some advice on how to decide where to implement my enemy behaviours

I'm in the middle of writing a platformer game in Unity using C#. I have my character, if he presses the kick button his state switches to kicking. During this "kicking" state the character doesn't ...
1
vote
0answers
49 views

Unity Facebook “An access token is required to request this resource.”

I have installed Facebook SDK 7.6 for Unity 5.3. It is fine with login and logout stuff things but I am having a problem when it comes to use FB.API. I want to be able to fetch players' profile ...
1
vote
2answers
57 views

How to slow down this rotation

My goal here is simple. I am making a top down shooter kind of game, and I want the player to simply rotate in one axis, towards where the mouse is on the screen. I got it working, but it rotates so ...
0
votes
1answer
51 views

Did they remove Sprite sorting layers from Unity?

I can't figure out how to set it. I thought it was a setting on the sprite renderer but it doesn't seem to be there? Google isn't turning up any results.
1
vote
1answer
75 views

Tire mesh rotates faster than wheelcollider in Unity

I have a car in Unity. Scripts are C#. I have noticed that my tire meshes' rotation is faster than whellcollider rotation. I am using this code for wheel rotation flWheel.localEulerAngles = new ...
1
vote
1answer
106 views

What's wrong with my food generating code?

This script is intended to produce amount of (food) objects for the players over the network. What should happen is that when a player eats one food, another food object gets created in another random ...
1
vote
2answers
100 views

FBX animation works in 3DSMax but not with Assimp [closed]

I have an FBX file that represent a plane with an animation of the gear opening. In my editor 3DSMax or in the Unity editor, the file and animation seem good, but when I use Open 3D Model(the official ...
-1
votes
2answers
48 views

AddComponent with string in unity5

At runtime I want to copy one Gameobject component to another gameobject. In my case I have one camera where multiple scripts are added with values settings. the same components i want to add into my ...
1
vote
1answer
24 views

Raycast will not hit generated box colliders at initialization

In my map class I have an algorithm that is generating and merging box colliders together. These belong to the layer "Ground". After that, in some places on my map I'm generating some new cubes on-...
1
vote
1answer
97 views

How should my creatures see the world?

This may not be the best forum for this question, but I know a lot of you have dabbled in the field of general AI for games so here it is. I'm doing the cliche population evolution of creatures in a ...
1
vote
1answer
51 views

How to follow a car with correct rotation

I am making a game where car will follow a user car. I am moving use car using keyboard keys it is working fine running on my game environment roads smoothly. To follow enemy car i am using nevMesh, ...
0
votes
0answers
46 views

What is the more efficient way of implementing 3d TD maps

This question is more on the design aspect than coding. I am working on a 3d tower defense game, where essentially each map is built on a 27x37 grid (not using real units), filled with walls(cubes ...
0
votes
1answer
48 views

UNITY3D How can my capsule rotate with my camera?

I'm new to 3D game development in Unity. I'm using Unity5. I've created a first person character controller that can move using WASD and I've created a crosshair along with a mouselook script. Here's ...
1
vote
1answer
29 views

Stuck on walls or sliding on top dilemma

I'm making a 2.5D platformer game. I earlier had problem with my character getting stuck on walls when holding the forward button. I solved this problem by adding a physics material with zero friction ...
1
vote
0answers
27 views

How to manage this problem in a multiplayer client-server game with Photon ?

Good day. I'm developing my first simple game, a racing car, using Unity and Photon. In my game there are a function that generate random Bonus on random position each (for instance) 5 seconds. ...
2
votes
1answer
58 views

How do you solve where the camera should be on a bezier curve depending on player? (camera on rail)

I am writing a game where I require a camera on rail; That is, the camera's path is fixed and follows a bezier curve. However, I cannot find any resources online for solving the closest point on a ...
0
votes
1answer
81 views

Massive CPU Usage by WaitForTargetFPS in the Profiler

So I was checking the Standard Assets Example Projects of Unity, and they all have high FPS numbers in the Profiler. I started a little project myself, just a simple sprite with movement via ...