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

Why can't I access List<T> through System.Collections.Generic?

I have the following small and incomplete script, and I was wondering if anyone knew about this issue. I'm trying to access System.Collections.Generic.List<T>, but I keep getting the error The ...
0
votes
3answers
99 views

Unity3D - How do I make so when user moves the camera it doesn't go beyond the scene borders?

How do i make so when i move my camera, it doesn't go beyond the border of the canvas while playing. This is the script i use to make the camera move: if (Input.touchCount > 0 && ...
0
votes
2answers
117 views

Scaling a UI bar for progress in Unity

I have created a progress bar inside Unity for one of my energy systems. The bar progression works fine. Its just a plane pivoted on one of the faces so scaling it in x axis makes it progress further ...
0
votes
2answers
39 views

Unity2d bounce only y-axis

I want to make bounce game. I did a bouncing ball. If I wanna to move it with arrow keys, the ball is vibrating. I know why it happens but my english is not enough for explanation. How do I make ...
4
votes
2answers
106 views

Glass Material for Unity 5

Anyone know how to make a glass material in Unity 5? I can do metal and image textures, but not sure how to create a glass material(its for a shower door and just plane glass. A search on google ...
0
votes
1answer
19 views

Unity 2D Current object force

I'm working on a game with an entity firing a shot. This shot could destroy other entities as well as the entity who generated the shot. My first step was to apply a force to the rigidbody2D of the ...
0
votes
1answer
22 views

Unity 2D - scale sprite according to screen width

So I have a square sprite (width == height) and I want to scale it so that both width and height are exactly one fifth of the width screen. To find the desired pixel width I do: float ...
1
vote
1answer
27 views

What does the number in TextMesh.lineSpacing refer to?

I have a TextMesh with some text, and mutliple lines. The 4 examples have these settings: lineSpacing = 220, characterSize = 10 lineSpacing = 220, characterSize = 25 lineSpacing = 220, ...
0
votes
1answer
64 views

Implementing FSM on multiple class UNITY3D

I am recently implementing design patterns on my project, while researching around I came across many advance techniques like HFSM ,Behaviour trees. I did implemented behavior trees wherever required ...
10
votes
5answers
2k views

How to determine if character has fallen into the gap in an infinite runner/jumper?

I'm building a 2D infinite runner. In the game, character jumps from pillar to pillar and pillars are randomly generated. I have this working. But how to determine if the character failed to jump on ...
1
vote
1answer
34 views

Change Camera Contrast in VR Game

Hello there Firends , I'm developing a Virtual Reality game in Unity. As in every VR game , i have 2 cameras for stereo rendering. I want to show the same object in each camera having different ...
3
votes
1answer
143 views

How can I consistently identify location on a mesh from a raycast hit?

I am using RaycastHit.triangleIndex to identify a location on a mesh (very low poly). However, I have discovered that a given triangle on the mesh does not have the same triangleIndex value from one ...
0
votes
1answer
104 views

Controlling roll rotation when travelling along bezier curves [Unity3D]

I am currently working on implementing a curve implementation for use in Unity which includes an editor: The aim is to get an object to follow the path represented by the curve at a constant ...
0
votes
1answer
15 views

In Unity, why do my animator states wait until the end of each animation to change?

I'm trying to make a simple idle-walk transition in Animator using Unity. I've set a script that changes the Speed value from the Animator, and it works perfectly when I move the character forward ...
0
votes
0answers
9 views

With Multiple First Person Controllers i cant move the camera up and down UNITY3d [on hold]

Im making a Multiplayer FPS and im having a issue where if i have two clients on the server neither of them can move their cameras up and down BUT they can move them side to side, Why is this ...
0
votes
1answer
84 views

Create a continuous flight path on a Bezier Curve in Unity3d

I am working on a game in which a butterfly is flying along some path. What I am trying to do currently is create a Bezier curve starting from the butterfly's position(previous curves end point) and ...
0
votes
2answers
40 views

Will I lose the mesh if I delete the original prefab?

I'm working in Unity 5, and I currently have the following setup: My project contains two prefabs which we'll call "Cube" and "CubeT". Cube was imported from an FBX file generated by Autodesk 3DS ...
6
votes
2answers
3k views

Animation workflow between Blender and Mecanim

I've recently started learning Unity. Not being able to add custom animations to the standard FBXs you get from Unity's app store is really really slowing me down. When I import one into Blender, it ...
1
vote
1answer
318 views

Mesh deformation maya to unity

I have a model that has been modeled & rigged in Maya, whenever i export it as an FBX and take it into unity it seems to collapse at certain areas (see the attachments for a before and after). The ...
0
votes
1answer
57 views

Draw GUI.Button on certain position on a scrollable background

Problem is in a 2D game I have a large background around 2 screens wide. And on there I got 4 buttons placed on top of background all over complete width. Now when I swipe of move my mouse around I ...
1
vote
2answers
87 views

Why is Unity3D on OSX ignoring my XBox 360 controller?

I'm using a fork of the Tattie Bogle driver that has a signed kext. The System Settings panel shows all inputs correctly. One axis is configured in Unity3D 5 like this: Still, I don't see any ...
0
votes
2answers
385 views

Unity3d and Windows 8 run game in frame

How do I set Unity3D to run my game on Windows 8 in a fixed size frame (with a border around it) and not in fullscreen? I tried setting this in the Unity script and in the final C# project, but ...
0
votes
0answers
19 views

Rotate the camera on a given angle

Good day! I apologize in advance for my bad english. The task is as follows: "On the stage there is a camera and a gun with rays when a ray gun out of sight of the camera (vertical) is required to ...
0
votes
1answer
221 views

NGUI Texture Background Font of Sprite

I am new to Game Development and using NGUI plugin free version. There are few sprite images in my game. I made them prefab and instantiated at runtime. then I created NGUI Texture and Made it ...
-2
votes
0answers
21 views

Unity3d Crashes at Creating New Project [on hold]

I downloaded Unity3D in my laptop today, and when I click "Create a New Project", fill the details and press the "Create" button its gets me to Unity's bug report page. Why does this happen?
0
votes
1answer
400 views

Unity mouse input not working in webplayer build

I have a button script with the following code void OnMouseDown() { animation.Play("button-squish"); enlarged = true; audio.PlayOneShot(buttonSound); } void OnMouseUpAsButton() { if ...
2
votes
1answer
51 views

Efficient billboarding sprites in Unity 5

What's the most efficient way to do billboarding sprites in Unity 5? I want to make a forest of sprite trees in 3d space. Those sprites need to face the camera at all times. I am working on VERY ...
2
votes
2answers
61 views

DontDestroyOnLoad() doesn't work in Unity

I have a problem with DontDestroyOnLoad() in Unity. It does not work! My code: private static PlayerSpawningScript instance; public void Awake() { Debug.Log ("PlayerSpawningScript awake"); ...
1
vote
2answers
263 views

How to make a horizontal scrolling menu in Unity 3d 4.5

I want to make a horizontal scrolling menu that will hold levels of the game .But i have a little idea about it so it would be very great if anyone help me with it
0
votes
1answer
1k views

Slope polygon collider 2D causing box collider 2D to 'bump' while sliding on it

I'm doing procedural terrain generation. So far I've created the mesh, and attached a 2D polygon collider to it. The terrain is made up of hills going up and down. After doing so, I put a 2D rigid ...
1
vote
1answer
63 views

Unity joystick input acting strange

After setting up my joystick axes in Unity and sweeping them around I find that the Y-axis jumps to the opposite direction in certain positions. So, when I press up on the joystick, the input will ...
1
vote
2answers
78 views

Unity: Can't press space to unpause. Is this a Unity UI bug? Or maybe poorly written code?

So I think I have a bug with my pause menu. For the sake of simplicity I've boiled down what I'm trying to acheive: When the player first starts up the game there's a UI menu with one button: 'Start ...
-6
votes
0answers
26 views

Unity Shooting objects frm random postn [on hold]

If i want a gameobject to go across the screen as if its shot by a gun but just sending ot frm random directions. would i jst hv to spawn the gameobjct at diff positions and send it flying in ...
2
votes
2answers
70 views

How do I rotate and object around itself, and translate it at the same time?

I have this animated gif of my problem. I have a sprite object with a box collider, and I'm trying to rotate it around its center. My rotation script consists of this : this.transform.Rotate (0, 0, ...
1
vote
2answers
238 views

control animation using animator control class

I did a sample existing code to control animation using animation.I dragged and dropped a character into the scene then I added a Animator to it and added the animator controller.Below I have given ...
0
votes
1answer
24 views

Unity5 UI - How to trigger button click event while preventing menu item deselect event?

So I've got a load menu using Unity's new UI system, basically just a list of save games you can select with a mouse click along with a couple of buttons at the bottom to delete or load the selected ...
0
votes
1answer
113 views

Why my dynamically generated Sprites overlap?

I'm trying to dynamically generate scene representing chess board made from sprites. I'm using two textures for these: - pieces.png (taken from here: ...
0
votes
1answer
135 views

How to make a model parts glow one after the another

I have a brain model. I want to glow the parts of the brain model one after the another after a period of time. I have done to glow the parts, but when the second part glows, the color of the first ...
0
votes
1answer
94 views

How to make unitypackage from allseen alliance's android sdk?

Im making an offline multiplayer for Android device by Unity and I found only one way to do this is the allseenalliance sdk. After download its from here I found that to use it I need to create an ...
1
vote
1answer
24 views

Why do Unity networking libraries fail when building for the Windows Store?

I am using Lidgren and RSA in my networking framework, but things like IPAddress are "nonexistent" when I try building for windows store. RSA classes don't work, either. Why is this? How could I ...
0
votes
1answer
59 views

How to change the speed of the gameobject moving on the itween path

I have set an itween path for an object to move.And I have written the code as iTween.MoveTo(gameObject,iTween.Hash ("path",iTweenPath.GetPath("train"),"time",300)); The above code is working for ...
0
votes
0answers
26 views

Unity: why game app on Android takes up much more memory than Unity Profiler reports?

We are profiling a game app on Android 4.4.2 device via Unity’s ADB profiling. We have set up ADB profiling following the official guide: http://docs.unity3d.com/Manual/Profiler.html The ADB ...
0
votes
1answer
168 views

How to procedurally generate Mountains that Looks more natural

My Terrain was looking a bit plain so to freshen it up a bit I decided to add mountains to the terrain generation. Unfortunately the Mountains don't look very natural with the surrounding terrain. ...
0
votes
1answer
122 views

Unity: Animation Controller: Does “atomic” attribute in 4.6.3 same with “has exit time” attribute in 5.0

I'm viewing tutorial that base on Unity 5.0. In this version, I see an option which name is: has exit time: But on my Unity version is 4.6.3 doesn't have this option instead atomic. AFAIK, it ...
0
votes
1answer
19 views

Unity animation editor having trouble to animate twice the same component

I'm not getting warm with the Unity animation editor. This is what I want to do: The 2 lasers should be like this, rotating 360 degrees over and over. .The classname laser2 doesn't mean anything, I ...
1
vote
3answers
75 views

Unity: how do I edit a second scene when my objects are still in the first?

I have my game set up so that objects like the Canvas and the main character are set to DontDestroyOnLoad; they're only initiated in the first scene. However, this means that when I load my second ...
2
votes
1answer
191 views

How to impale and stack targets correctly according to the collider and its coordinate?

I'm making another simple game, a catch game, where a spawning target game object must be captured using a skewer to impale it. Here how: At the start, the falling object (in red) will fall in a ...
0
votes
0answers
34 views

In unity3D, is it good to use events more often? [on hold]

Does using public static event more often in my project affect any performance?
0
votes
3answers
79 views

Checking if object passed between two other objects

I have a three objects (strikers), lets say red, green and blue. When I apply force to the green object I want to check if it has passed between red and blue or not. See the image below for an ...
0
votes
1answer
2k views

Normal mapping for Android and iOS

I'm making a mobile game for Android and iOS on Unity. At the moment I am researching and designing the technical aspects of the game. Since it is not plausible to use highly detailed models for ...