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)

1
vote
0answers
277 views

Unity 5 light reflection on the water surface

How to adjust reflection in Unity 5 to show up it on the water surface. So I have few light elements in the scene. So I want my water pro to reflect this lights. As example you can see red and yellow ...
1
vote
0answers
54 views

Collision issue [closed]

I have a player who i control with tilting. Also i have some game objects (something like ground or areas where player can not move). The problem is that if these objects are too small the player can ...
2
votes
1answer
133 views

Unity3D Joystick Buttons Xbox360 & PS3 have Inconsistent Button Inputs?

I've been browsing through Google and researching button inputs in Unity, and I came across this page. When looking at it I noticed that the B button on the Xbox360 controller is set to Button 1, but ...
1
vote
1answer
53 views

Why the skyline continues to stay on the same place and how to change this?

I started my first Unity3D project and in this game main hero should be able to fly up passing clouds and then reaching open space but i faced with the problem. No matter how long and fast i am flying ...
3
votes
1answer
106 views

How to write a custom shader in Unity 3D that lights up a specific pixel or group of pixel?

I'm making a FPS game in Unity, and I want the environment to light up as the player is shooting on his environment. The map would be entirely put in darkness at the beginning, but as the player ...
2
votes
1answer
160 views

Texture tearing with UV texture atlas mapping

The following code maps the texture from a texture atlas to a UV. The problem is I'm having texture tearing issues. Does anyone know how to overcome this problem and have any suggestions? Here is the ...
3
votes
1answer
63 views

Play Audio After Countdown In JavaScript

Is there a way I can have an audio sample play after a certain amount of time, like 3 seconds in JavaScript? I've looked everywhere and can't seem to find what I'm looking for! I'm very new to this ...
1
vote
0answers
147 views

UE4 or Unity or Libgdx for VR project using Oculus rift and Novint falcon

I've to make a multiplayer game Air Hcokey using 2 Oculus rift and 2 novint falcon controllers , I know that these 3 engines support the Oculus Rift but have no Idea if they do support the Novint ...
2
votes
1answer
252 views

Animation conversion failed: transform for bone not found?

I'm trying to animate my first humanoid, and the animations in the Standard Assets pack (HumanoidIdle etc) work really well right out of the box. However, when I try to use other fbx files, like those ...
2
votes
2answers
69 views

Creating a delay by using Invoke

Is it possible to delay the effects of a script that is attached to a game object? I have 2 characters in a scene, both receiving live motion capture data, so they are both animated identically. I ...
2
votes
5answers
673 views

Jump a gameobject when a key is pressed

I am working on a platform game,When I press the space bar the object should jump and when I release the space bar it should come down. The code I have used for jump is void Update () { ...
2
votes
0answers
49 views

Improving Position Sync Bandwidth Usage in a Multiplayer Game

This is the class i use to sync position between clients in a multiplayer top-down 2D shooter game: [System.Serializable] public class MovementUpdateClass { public int MessageTime ...
1
vote
0answers
166 views

Smooth+Flat shaded meshes cause shadow artifacts (understanding the source of the problem)

I'm using blender to create assets to use in Unity3D, and I'm having some trouble understanding how the smooth/flat shading interacts with shadows, I'm sorry if it has been asked before, but all the ...
1
vote
2answers
103 views

Error with Quaternion.FromToRotation in Unity?

I get multiple errors whenever I run this code: transform.rotation = Quaternion.FromToRotation (Vector3(0, 0, 0), Vector3(0, 0, 270)); Can you suggest a fix for this code? Errors: Expression ...
2
votes
1answer
130 views

Use Accelerometer for Roll-a-ball Movement

I'm working on maze game for Android in Unity 5.1.1f1 and I have troubles with controlling my ball with accelerometer. At start I tried: public class PlayerController : MonoBehaviour { public ...
-1
votes
1answer
104 views

gameObject rotation in Unity issue? [closed]

Can someone provide me with a script that makes a gamebject calculate its rotation speed based on the next collision, in a way that when it collides, it collides with its original rotation. I do not ...
5
votes
2answers
745 views

My game crashed… Access Violation (0xc0000005)

I guess this is the first official crash I've had in Unity (that is not just an infinite loop.) The game works just fine in the editor but when build and run it, the game won't even start. I just ...
4
votes
4answers
173 views

Better way of handling the relation between Bullet and Enemy

I was wondering how should I design this relation in terms of "better OOP"? Should I have a Singleton EnemyManager which contains a list of enemies (EnemyList); then Bullets can access the EnemyList ...
2
votes
1answer
183 views

My player sprite get stuck to walls while moving along

Hello, My player sprite is moving along the wall (not even diagonal, just straight down) and get randomly blocked in the corner of some walls. By blocked, I mean that the Y movement is stopped. If ...
2
votes
1answer
66 views

Is It Possible To Reset UI To Initial State At Runtime Without Any Direct Assignments?

Is it possible to reset UI to it's initial state (the state when game started) without directly reseting elements one by one? Thanks in advance. Edit: I'm asking for runtime. (ResetToPrefabState ...
2
votes
2answers
141 views

How I can count how many time gameOver scene is loaded?

I'm building a game using unity 3d and I want to add an interstitial ads to it, but I want it to appear after the player lost every 3 times. So when the player loses for the first time the ads will ...
3
votes
2answers
165 views

How to animate a character with props in Blender and then have these props modifiable in Unity3D?

I have created a fully rigged and fully animated humanoid model in Blender with rigging based on Unity's Mecanim standards for humanoid models. Now, I want to create custom animation for it in ...
1
vote
1answer
34 views

Unity object stuck where it shouldn't

Here's the thing. I am making a 3D top-down game about cars on the road. Right now I have different-colored cuboids representing cars. They are position-locked in Y and rotation-locked on all three ...
1
vote
1answer
100 views

The type or namespace name `OpenCVForUnity' could not be found

I am working on face traching in unity3D I have downloaded and imported the sample project on "FaceTracker Sample using OpenCV for Unity". But when I tried to runned the project,its showing me the ...
2
votes
0answers
221 views

How To Create A Dynamic 2D Rope In Unity?

I'm trying to create a 2D rope in Unity that is fixed at one end and other is moving up and down to pick up objects just like a crane. I've tried adding a cube and making more instances of it, ...
1
vote
0answers
379 views

Failed to load QCARWrapper.dll

I am using unity 5.1.0f(64 bit) and Vuforia SDK Version: vuforia-unity-5-0-5 The web cam is operating normally in windows but in unity in Play Mode not. I am getting an error message "failed to ...
2
votes
1answer
74 views

Game over when both players die

I watched the Unity Space Shooter video tutorials and then I have added a second player. I can not seem to get the 'Game Over' when they both die. It will happen when one player dies but not both. ...
1
vote
0answers
22 views

3d Engine for corsair 3d Game [closed]

So I want to create corsair 3d game for PC, maybe Xboxes, PS and etc consoles. As the game is about corsairs, there will be a lot of water, ocean waves and etc effects. So I know this is not a ...
1
vote
1answer
134 views

Unity/vuforia imagetarget - object not showing properly

I learn it from vuforia tutorial on youtube. I add a white cube(or sphere) as the child of image target. When the camera catches the image target, the screen turns to be totally white. It seems that ...
4
votes
2answers
181 views

Does Google Play allow an account to log in to the same game on 2 devices?

I'm developing an online Android game with Unity. I want all Google Play accounts to have only one session logged in at a time. Do I need to write my own code to disconnect an existing session on ...
3
votes
1answer
114 views

AddComponent with Network* at runtime?

I am trying to figure out how to dynamically add network components to game objects that are managed by the network. I started unity about a month ago, and I started writing all sorts of components ...
-5
votes
1answer
204 views

Make Camera follow object only on Y axis?

Can someone give me a script that makes the camera follow a specific gameObject only on Y axis without changing the camera's X axis position, in C#?
1
vote
1answer
80 views

Shader and Texture Scrolling depending on Direction

I am trying to scroll a texture using its uv in Unity but I don't get the result I need. The aim is to have two components, the speed and the direction. I would like to define the direction in ...
1
vote
1answer
310 views

Create sprites from 3D models at runtime in Unity

From my previous post where I search solutions to have animated characters in an isometric world (using 2D engine as base) arised this question. I'd like to create and instantiate 2D sprites from 3D ...
3
votes
2answers
165 views

Unity Inspector - Turn off script for a group?

I have a large group of objects in Unity that can be grouped and for one instance I want to turn off a script on each one, for over 100 this can be tedious, can this be done group wise within the ...
2
votes
1answer
93 views

How to orbit an object at certain speed in Unity?

I want to move an object around a circle. So I have this code below: static public int theta = 0; void Update(){ Vector3 position = this.transform.position; position.x = 0 + 50 * ...
1
vote
1answer
383 views

Unity Additive particle effect blends with background

I created a fire particle effect with the Particles/Additive (Soft) shader in Unity 5.2.2, and it looks fine against a dark background, like the editor background: However, when I move it in front ...
2
votes
0answers
101 views

Ways to get around the limiting default terrain shaders in Unity

I am trying to use the Toon Rim Light shader for Unity however there are a few problems when trying to use any custom shaders for a terrain in Unity. The most well known is of course, that all ...
1
vote
0answers
22 views

Unity - RageTools Performance

Has anyone used RageTools for Unity? What do you know about the performance? Is it more performant than using raster, for example with "puppet 2d" or the other way? I'm developing mobile games, so ...
1
vote
0answers
22 views

how to change default third player controls in unity, to work with touch?

I am developing a game for my project using Unity 3d and have currently used the third player controller available in standard asserts. I have to export it in android phone so need to modify the ...
1
vote
1answer
165 views

Unity apple/google ID access?

After extensive Googleing I have not come up with a way to access Apple ID's or Google ID's from unity running in respective devices. Either ID's or something else unique to the accounts logged in. I ...
2
votes
1answer
135 views

How to convert UV position to texture atlas pos and reapply to UV in Unity

I'm trying to apply a texture from an atlas to a mesh by reiterating through the UV array on that mesh, but I'm a bit lost on converting the coordinates. For example, if the texture required is at ...
-1
votes
2answers
54 views

FixedJoint error in Unity?

I get the following error every time I run the code: error CS0120: An object reference is required to access non-static member `UnityEngine.Joint.breakForce' Joint.breakForce = Mathf.Infinity; How ...
2
votes
1answer
105 views

In Unity, why does my IndexOutOfRange exception disappear when trying to debug it?

I don't get errors when playing from Unity "Game" tab. But when I build an executable (development or not) it stucks. I get "IndexOutOfRange" exception. Which also magically disappears (yes) when I ...
1
vote
1answer
65 views

Error calling another class? [closed]

I get the following error every time I run the code: error: error CS0119: Expression denotes a `type', where a `variable', `value' or `method group' was expected void OnCollisionEnter() { Stick (); ...
1
vote
0answers
27 views

Controlling gameObject with WiiRemote

I would like to get some information on how I can control my gameObject with a wiiRemote. Can't seem te find a decent guide on how to implement the WiiRemote into Unity. My game is just a simple ...
1
vote
0answers
65 views

How can I override a trigger scripts for different triggers in Unity?

I am trying to develope a story based game. And I developed my dialouge system (not an interactive system) with triggers. It is like this public class Trigger : MonoBehaviour { public ...
2
votes
0answers
53 views

Proper setup for Mecanim standing jump animation

I have a character standing jump animation with that the character at start prepares for the jump (flexing downwards) and then jumps up in the air and i'm wondering how to get it working properly with ...
1
vote
0answers
94 views

In Unity, How to format Old RPCs into new “PunRPCs”

In older unity versions you could simply used RPC. With newer verisons of Unity my code now doesn't work and it says that it needs to be transformed into "PunRPC" , Pun being "Photon Unity ...
2
votes
1answer
159 views

How can I ensure a Unity game continues to run in RAM, even if the disk it loaded from is removed?

I'd like to make a game with Unity, put the build with all the data on a USB key, plug it in another Windows computer, and run the game from the USB drive, then remove the USB drive, but keep the game ...