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)

1
vote
0answers
35 views

I keep getting a type/namespace error when I try to define my two motion controllers. What am I doing wrong?

I'm trying to get motion controls working (particularly making it act like a joystick) but I keep getting this error "The type or namespace name 'SteamVR_Controller' could not be found (are you ...
1
vote
1answer
36 views

How do you get audio clips to play on all clients?

I am new to networking with so this is probably a noob question. For context I am trying to get a gunshot sound effect to play and be heard by all players.
1
vote
1answer
54 views

2 cameras that each player sees through a different one

Im very new to Networking in Unity 5. Im trying to bring the finished basis for my 2 player, 1 vs 1, turn-based game I made for local multiplayer (both players on same computer) to an online ...
0
votes
0answers
17 views

terrainData.SetAlphamaps slows unity game

iam using terrainData.SetAlphamaps() function for changing texture of specific part of terrain in update which is like my player moves and i get its transformation and map the texture at corresponding ...
1
vote
1answer
63 views

Need Help With My Script And Animator. I am encountering a few bugs with it

Okay so I have created a player archer character which when he using the arrow keys, faces those directions and upon hitting space when in that direction, the bow attack animation is played. The code ...
1
vote
1answer
126 views

Making Cave system in Unity 5

I know there are many threads about this but none of them seems to work for me and I spent like 2 days already on that problem. Things that I've checked: http://wiki.unity3d.com/index.php/...
1
vote
1answer
13 views

How do I get the InputManager to recognize a certain axis/Vector2D with a Vive motion controller?

Right. So basically I want to map the Vive motion controller touchpads (certain locations) to the certain inputs in Unity's InputManager. How do I do this? Like I want a certain area on the touchpad ...
0
votes
2answers
30 views

How can I get all components of a type from a List with mixed components?

I have a list of GameObjects. Half of these GameObjects have Component1, and the other half have Component2. I want to get all of Component1 from the list. So an example of my list: var list = new ...
3
votes
1answer
26 views

How to edit and persist serializable Assets in the Editor Window?

I have an asset saved in my project which represents a serializable scriptable object. Code of the object is very simple: using UnityEngine; using System.Collections; public class TestScriptable : ...
1
vote
1answer
44 views

Print string letter by letter in UI Text

i'm trying to print a string letter by letter for UI Text of Unity. With each click of a button, the Stampa function, must print a letter. Up to this point everything is working perfectly. But if I ...
0
votes
2answers
50 views

smooth loading of the heavy scene in unity3d

I have a very very big/huge scene to load, I can't load it at once. So what I know I have applied but it still loading takes some time I want to make it smooth. How it possible? What i have tried so ...
0
votes
2answers
51 views

Random Functions in Unity [closed]

Is their a way to execute or call a random function in unity. Something like:- void Update(){random(func1(),func2())} void func1(){print("func1")} void func2(){print("func2")}
0
votes
0answers
35 views

How to apply physics on multiple sphere after collide like in Snooker game in unity?

I'm new in unity developement. I want to develop android game application Kanche(Marble). It's marble based game. Player need to take out other marbles from circle. What I've tried so far is, Rall a ...
-1
votes
0answers
35 views

Toggle between positions in Unity [closed]

I am making a 2D game where an object goes up, down or in the middle. I want to toggle between going down, middle or up on left click but it is not working. So basically what is meant to be happening ...
-1
votes
1answer
53 views

What properties should be private, public, and protected? [closed]

I'm currently trying to write a base player class, and I'm not exactly sure what I should make private, and what I should make public. I know that as a programmer, I need to keep as many variables as ...
1
vote
1answer
85 views

Creating a list of buttons dynamically in code

I have a list of contacts. I need to create a scrollable list of buttons that are created dynamically so I can add each contact name as the button text. How would I do this all in code? My biggest ...
0
votes
1answer
54 views

Move around object

I have problem with Unity - 2D objects. I want to rotate object around circle and on click translate it (with same angle) outside the circle to another and still rotate. Rotating is working with ...
1
vote
0answers
26 views

I can't log in Unity on Linux [closed]

I use Linux Mint 18 Sarah 64-bit version with Cinnamon. I've decided to install Unity3d 5.1.0f3 from following website: http://blogs.unity3d.com/2015/08/26/unity-comes-to-linux-experimental-build-...
3
votes
2answers
105 views

What is wrong with my Chest script?

I'm making an RPG in Unity3D and I am trying to make a script for a chest to open. So I built this script! But it doesn't work. I just want some help fixing this script. #pragma strict var Text : ...
0
votes
1answer
31 views

Transforming position in y-axis (going in the middle) in Unity [closed]

I am making a 2d game where an object goes up, down or in the middle with given Input. But when the object goes to the middle with GoMiddle() it starts glitching and it can't go back up or down ...
3
votes
2answers
42 views

Jagged shadows with default settings

This is what it looks like no matter the settings I use when I try to use shadows in Unity. Changing the Bias or the Normal Bias does effect the shadows, but I cannot get the shadows to be smooth with ...
0
votes
1answer
32 views

2D diagonal movement using Rigidbody2D

I have a problem with 2d player movement, as I am unable to move on the Y-axis. Yet, the movement on the X-axis is working as intended. Below, you can see my code: public Sprite directionUp; public ...
1
vote
2answers
42 views

Randomly instantiate avoiding overlapping in Unity 5

I'm starting a 2D game where I want all the letters A-Z displayed in a random position and, then, the player collects them all in the correct order. I need to randomly instantiate the letters without ...
1
vote
1answer
34 views

Programatically Build List of Custom Class Objects (prefabs)

This seems like it should be a simple thing, but I cannot seem to figure out a method. Currently, I have a public List<MapGraphItem> roomList variable, and in the inspector, I add prefabs from ...
1
vote
1answer
48 views

Unity Rotation - Object is rotating on Z, but should be rotating on X

I've been working on a project where I have a cube. When swiped left, the cube will rotate 90 degrees the left, and then when swiped right, the cube will rotate 90 degrees to the right. I have this ...
1
vote
0answers
29 views

Problem in player Rotation in Unity

I am trying to rotate game camera using my android device orientation.Like this Using accelerometer input of device this may be done. But I don't know how to do this. I tried lot of methods, but ...
3
votes
2answers
48 views

Preparing a 2D character to export from Blender to Unity?

I'm an animator for a game currently, and I don't have Unity (can't download due to too much gigs coupled with slow internet,) but the game designer told me I can use Blender to export animations into ...
4
votes
1answer
83 views

How do I differentiate between the two Vive motion controllers?

I am working with a Vive Pre (devkit) and I have most everything working the way I want it to. However I am wondering how do I refer to or even know which motion controller is which? From what I can ...
1
vote
1answer
29 views

Technique to find a mesh intersecting with a primitive solid without using colliders?

For what it's worth I'm using Unity3d, but I believe the problem is more general. There are hundreds if not thousands of meshes with hundreds of vertices each. There is one sphere that can be ...
1
vote
0answers
13 views

Why in Unity my character not moving 360 degrees using the mouse ? Only to the right and left? [closed]

I didn't change any mouse settings but suddenly my scene only moves to the left and right (not 360 degrees as before). I did add a spotlight but I don't think this is the problem.
3
votes
2answers
72 views

How do you restrict sideway movement in 3D endless runner in Unity?

I have been making a endless runner 3d game and implemented 3 lane side way movement. It's working perfectly, although I want to restrict my movement for the 3 lanes only. If my character for example ...
1
vote
0answers
36 views

Fixing wave-like movements when rotating an object using mouse input in Unity

I have encountered a rather odd issue with my program. The setup: In my scene, I have a GameObject which I have set as my player/character for this game. The player/character has a child GameObject, ...
1
vote
0answers
17 views

How to check for string endings for loading save files? [migrated]

I need to know how to check for the endings of all the files in the Assets folder. Its for creating a list of saved files. public static void Load() { if (File.Exists(Application.dataPath + "/...
1
vote
0answers
39 views

How to create a correct Unity package copy, which will not be replaced when you import?

I create a "Package 1" consisting of section A (unique) + section B (which will be repeated in all my other packages). This package works correctly is he is alone. Next, I create a "Package 2" ...
0
votes
2answers
48 views

Transforming Position in y-axis (going down) in Unity

I want the gameobject to go down (position.y) after pressing a key instead of pressing the key repeatedly. So in my current code the object goes down(0.05f) each time I press a key. But I want it to ...
1
vote
1answer
23 views

Unity SOAP wsdl problem

i'm trying to using a SOAP service from my game but the problem is that after using wsdl.exe for generete the connector Unity inform me that System.Web namespace doesn't exist. How can I use the wsdl?...
1
vote
2answers
34 views

Unity : Objects become black when size is changed to smaller

While working with Unity 5.4, my models become black when I resize them to a smaller scale. When I make the models bigger they are fine. I am using a directional light . On the image below as you can ...
5
votes
1answer
88 views

Unity - Small holes of light seems to go through my blender mesh

So, I am currently working on a low-poly terrain in Blender which will be flat-shaded in Unity. It all works great, however I am working on a cave for the terrain, and I seem to be getting these small ...
1
vote
1answer
50 views

Multiple Sprite animation layers overlayed in Unity Animator

I have an animator with two layers, an axe layer and a body layer. I would like to animate the two in sync with each other. They are both 64x64 sprite animations, frame-by-frame bitmaps. The ...
1
vote
1answer
33 views

Check if vertex is visible in shader

Im trying to figure out when a vertex is visible from the main camera. I have this function: bool in_frustum(float4x4 M, float4 p) { float4 Pclip = mul(M, float4(p.x, p.y, p.z, 1.0)); ...
2
votes
1answer
28 views

Unity API - Making a Sphere Jump?

I'm making a very simple game with a sphere that's supposed to roll and bounce on "planets". Also, please be ready to read a lot. I want to be very descriptive for you. :) I've pretty-much-done ...
3
votes
2answers
43 views

Clamping camera forward and backward vector in Unity3D

My perspective camera is rotated on the x axis. I've implemented a zoom with the scroll wheel and it works great. I'm trying to limit the zoom, however. My solution right now is to take the relative ...
3
votes
0answers
28 views

Unity's Touch API is exposing only half of the available Android touch data (image attached)

Unity is only exposing half of the touch data that Android itself receives. I'm using the standard Input.touchCount and Input.GetTouch() API. My test scene is quite simple. My game is precision swipe ...
1
vote
1answer
62 views

Unity 5.3.5 - How to setup a lobby with general game settings?

I am currently working on the lobby for my game. I have followed these tutorials (https://www.youtube.com/watch?v=jklWlm5v21k), which were very helpful, and was able to setup my lobby like this. The ...
2
votes
1answer
106 views

Infinite ball bouncing problem (Unity)

I am trying to develop a basic Breakout game using this tutorial using Unity 5. But the ball starts to bouncing infinitely very easily. I cannot understand why this happenes. In my physics knowledge ...
1
vote
0answers
13 views

Move around the object using head tracking movement in Unity

I am developing an app for Samsung Gear VR with unity.I have added a cube and made the cube move forward on the terrain. Now I need to move around the cube using head tracking movement.I have ...
1
vote
0answers
18 views

How to apply specific torque to configurable joint in Unity

I have a torque vector that needs to be applied to a configurable joint connecting two rigid bodies. This joint configured in such a way, that it only allows angular motion around all 3 axes. Is ...
1
vote
0answers
22 views

Skewed 3d model when moving device around with Unity and Vuforia

I am having trouble with the orientation of a 3d model that is larger (think queen-sized bed) than the target image(a4 size bond paper). The model appears to be slanted in a way that looks totally ...
1
vote
0answers
28 views

Unity Asset Store Tools Problem

So I downloaded Asset Store Tools in the Unity Asset Store. When I upload my asset to my package, I get this popup: Wrong project path The path selected must be inside the currently active ...
1
vote
0answers
27 views

Cardboard VR Mode rendering black in Unity

I've searched around and seen this problem is quite common, but none of the fixes I've read have resolved the issue: If VR Mode is enabled in the GvrViewerMain prefab, the scene will render as just a ...