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

Quaternion.Lerp doesn't rotate object with exact degrees

I want to rotate my object 90 degrees with Quaternion.Lerp when user press the upArrow. But after each rotate I can see that it does not rotating my object exactly 90 degrees. approximately 88 degree ...
0
votes
1answer
31 views

Unity draw part of sprite sheet

Im working in Unity and im finding the animator isnt working for what im trying to do in my 2d game. What I want to do is build a specific animation using sprite sheets, then be able to reuses that ...
0
votes
2answers
72 views

Invalid AABB aabb

Invalid AABB aabb UnityEditorInternal.InternalEditorUtility:CalculateSelectionBounds(Boolean, Boolean) I've got this error when I place any convex mesh collider in scene. What does it mean? Game ...
0
votes
0answers
32 views

Unity3D LLAPI and Pyhton UDP communication

I need a Unity3D game on Android to receive UDP packages from a Python script running on a different device. Using System.Net is not (yet) an option, as it is only supported on Android with a valid ...
1
vote
0answers
126 views

How should we begin to create our 2D Tower Defense? [closed]

Me and my friend are going to make a 2D Tower Defence game as our last assignment in highschool that has to be finished april/june next year. We both know a handy bit of Java and C# but our game is ...
0
votes
1answer
32 views

Collision in EdgeCollider Unity

I want to make a collider for a line that I've drawn on the screen using mouse. so the detection should be cover the whole line that has drawn. What I've learned from edge collider is you can have ...
1
vote
3answers
102 views

How to build a spaceship with interior in unity?

I've begun to study a unity engine in one purpose: I have a great multi player game idea! The main essence: In space there are two (or even more) huge spaceships with crew consisted of players (all ...
-2
votes
1answer
51 views

How to remove this NullReferenceException in Unity

NullReferenceException: (null) UnityEditor.SerializedObject..ctor (UnityEngine.Object[] objs) (at C:/BuildAgent/work/812c4f5049264fad/Editor/MonoGenerated/Editor/SerializedPropertyBindings.cs:39) ...
1
vote
2answers
92 views

Is it possible to have a GUI in world space in Unity3D game?

I'm trying to make a tank shooter game for learning purpose and I want to have it viewed in first person, is there a way to make it so that the GUI seems projected onto the interior of the tank ...
1
vote
1answer
51 views

How to do offline notifications for Android in Unity3d

I am making a game for Android with Unity3d. I've been looking for a solution to this on the web for a little, but I couldn't find anything suitable: I want to make my game have offline ...
4
votes
3answers
505 views

Unity 5 disabling a script

I'm using Unity 5 and want to disable a script called Unit based on whether the instance is a client or a server. I have tried using: GetComponent("Unit").enabled = false; However I get hit with ...
0
votes
1answer
32 views

GUI.DrawTexture problem in Unity

I'm having a problem with GUI.DrawTexture() and I'm looking an alternative function to draw 2D Texture Images. The problem I have is that my textures draw above all other objects and when my camera ...
2
votes
1answer
17 views

Unity3D (5.1) NavMesh Agent Error

This is my first post in GameDev StackExchange, so please excuse me if I make any mistakes on best practices here (if I do, please refer me so I can learn). I'm making a prototype where I have 2 ...
0
votes
0answers
24 views

Using unity's car ai for enemy tanks or creating a simple vehicle ai?

I'm creating a simple game that you are a guy with anti tank / rpg-7 and you have to destroy waves of enemy tanks and jeeps that come toward you. Do you think it is an overkill to use unity's car ai ...
2
votes
1answer
35 views

Make a plane to display material from both sides

I know there is a setting in Cry Engine, which allows you to be able to read materials of the plane from both sides, so I am wondering if there is such a setting in Unity5. Thanks in advance
0
votes
2answers
67 views

Player in Spaceship

I want to realize space game on Unity3d engine. There are some huge spaceships in the void. So, I want players flying in space in weightlessness, but when they go inside any spaceship, they will be ...
-2
votes
1answer
53 views

I cannot move a gameObject in my scene

I am trying to move a cube to the right in my scene with this piece of code, but it does not work. What is the problem? using UnityEngine; using System.Collections; public class Jump : MonoBehaviour ...
0
votes
1answer
8 views

Unity3D (2D) - Make sure Item Dragged Is Top Item Visually

I am using Unity 5 and making a 2D game in which many sprites will be stacked on top of each other and can then be moved by dragging. Sometimes when the users goes to drag from a pile, ones that ...
-2
votes
0answers
26 views

Does this place support Blender questions [migrated]

I am new to Game Development and I am studying game programming in India. I learn game designing via YouTube and other online sources. Where can I ask Blender related questions?
0
votes
1answer
27 views

accelerometer not working unity

why is the cube moving when I use a controller, but not with the accelerometer? void Update () { text.text = "X: " + Input.acceleration.x + "; Z: " + Input.acceleration.z; ...
0
votes
0answers
53 views

2d pixel art in isometric 3d world

I've been working on an isometric game and I'm using 3d to simplify collisions and also I heard it was just a better idea. My art is 2d sprites, so I've been using billboarding to render them. It ...
1
vote
0answers
17 views

How do i change the vertical fit of a constant size fitter?

How do i change the vertical fit of a constant size fitter? For example changing vertical fit from min size to unconstrained. Is it posible to do this?
2
votes
1answer
55 views

How to move on iTween path when a button is clicked

I have set the iTween path and also I have added a button. When I click on the button the object should start moving along the iTween path.But issue I'm facing is when I run my project at initial ...
1
vote
4answers
61 views

Moving Object on One Axis

Hi Im trying to move some 3D text on one axis, but for some reason it moves on 2 with this code. Can someone explain why this is/ how to fix it? Maybe this is a simple solution but i cant find it. ...
0
votes
1answer
18 views

Having trouble with a trigger zone. How do I make it so that it deletes certain objects, but ignores others?

I'm trying to setup a system where I pickup an object drop it into a zone, and then the object is destroyed. So far I have: using UnityEngine; using System.Collections; using UnityEngine.UI; ...
0
votes
0answers
36 views

UI Element in World Space OverrideSorting

Let me explain my problem. From a database I create buttons (around 40) in a World Space. The problem is that some buttons are displayed in front of other. (screenshot) Personally I would like the ...
2
votes
2answers
58 views

Instantiation of a GameObject not working for a threading reason

I receive the following error "INTERNAL_CALL_Internal_InstantiateSingle can only be called from the main thread." "Constructors and field initializers will be executed from the loading ...
0
votes
0answers
47 views

AssetBundle not working properly

I am using Unity 5.0.1. I have created the asset bundle of a sprite by selecting the name "img.unity3D" from the dropdown and then running the script : BuildPipeline.BuildAssetBundles ...
0
votes
0answers
8 views

is edit tangent possible in 3dsmax?

I have a custom hlsl directx shader, it takes vertex normals for rim light calculation. and vertex tangent(it stores unified normals) for edge render(enlarge model & cull front). I can export ...
0
votes
0answers
25 views

Enlighten interfering with smartfox user objects

This code is checking if a userID matches any id in a SFSUser List: foreach(GameObject element in connectedPlayers){ if(element!=null) { ...
0
votes
1answer
34 views

UNET Error handling

I am trying to handle errors received by a UNET (new Unity3D networking) client. The below code successfully connects to a server when it is present, but obviously gives a timeout error when there is ...
2
votes
3answers
34 views

Get OnMouseDown to work with a 2D Polygon Collider

I'm having a hell of time getting a 2D polygon collider to register a mouse click. I've attached images and code to show where I'm at. I cannot get the click to work. Ultimately, the thing I'm trying ...
2
votes
1answer
152 views

Creating Fog Of View in 2D game with lighting method

I'm creating 2D side scrolling game with Unity, and i want to add feature where the player come into a cave, then all going dark, the player turn on the flash light, so the player can see around ( ...
-2
votes
2answers
82 views

How to set a background image in Unity?

I am trying to create a game on Unity but I am still learning. I want to make a start menu, and I want to set a background image. Then, I will add "Play" or "Exit" buttons on top of this image. How ...
1
vote
2answers
80 views

How to check if grounded with rigidbody

Does anyone have a better way to make an object with a rigidbody check for ground and then jump, right now I wrote a script where a raycast is cast downwards and it checks for distance but then I ...
-2
votes
2answers
76 views

How to stop game but animation is running?

i want stop my game but the animation is runnig. how to make it ?? for Example : i call anim, i want when press the eScape , my game stop but animation is running. void Update() { ...
0
votes
1answer
42 views

Quaternion.Lerp not working properly in Unity3d

I'm using Quaternion.Lerp to rotate a joint with a certain angle, but when I use the below code I find the joint rotating very far although I specified it to rotate with only 5. Any thoughts please? ...
1
vote
1answer
104 views

How to change the transparency of an object in Unity c# scripting?

I have laser-object in my scene, which I want to be seen only when I press the 'E' button on the key board(just an example of a key). I have seen many ways to change the transparency , however, none ...
-1
votes
0answers
26 views

Can I use Unity 5 without payment? [duplicate]

I'm just a teen that wants to get into game development, and so can i use unity 5 and make a game? If I decide to publish my game on the app store or something at any point will i have to pay some ...
0
votes
0answers
22 views

Unity fill in Sprites/Animations at runtime for Mecanim & State machines

I'm creating a 2D wrestling game in Unity 5. There are going to be 10 or more characters with exactly same states like walking, running, idle, jumping etc and same sprite names. I'm not sure but It's ...
0
votes
0answers
50 views

In the Unity Editor, how do I find prefabs containing a specific component?

I want to find all prefabs in the project that contain a specific Component? I only need this in-editor; no need at runtime. If they are in added to the Scene, I can right-click and Find References ...
1
vote
3answers
75 views

Collision Detection/Response Issues in Unity

Sprite A: Box Collider 2D and Rigidbody 2D. Sprite B: Box Collider 2D. Both sprites have a Sprites/Default material with Pixel Snap enabled. The textures being used are set to Truecolor Format and ...
0
votes
2answers
65 views

What will happen with PlayerPrefs data after updating the app?

I'm using PlayerPrefs (Unity3D, on Android). If a user updates my application via the Google Play store, what happens to the data I've stored in PlayerPrefs?
0
votes
1answer
29 views

Instantiation of multiple objects with varying velocities

I am looking to multiple objects of the same prefab at the same time with varying velocities. public GameObject prefab; public float xDirection; public float yDirection; void Update () { ...
0
votes
3answers
66 views

2D Physics friction on a moving platform?

I have a few basic platforming mechanics going on in this scene. I have a prefab platform with an animation that loops back and forth between two different x positions, but does not begin looping ...
2
votes
1answer
46 views

Unity 3D - Rotate towards object with random offsets

Title is a little confusing, but let me explain: I want to make the enemies look at the player, and shoot at him, with random precision, meaning that one time the enemy will shoot a little bit to the ...
1
vote
1answer
68 views

Unity3d seamless level loading

I've read that application.loadLeveAdditiveAsync is a pro only feature. I'm looking for an asset that can do something similar. I would like to load assets based on the camera/player position. ...
0
votes
3answers
56 views

What is the alternative to Time.time for scrolling texture?

In my game, I'm using the standard SetTextureOffset method to smoothly scroll texture on background quad. However, on game over, instead of reloading the scene, I'm just reseting all values initial ...
3
votes
1answer
62 views

Vibration on Android

How to change duration of vibration on Android(Unity3D)? For example: public void Jump() { if (grounded) { rb2d.velocity = new Vector2(rb2d.velocity.x, jumpPower); ...
0
votes
0answers
32 views

Unity - Meta pass and Precomputed Realtime GI

I am writing a shader in Unity and I would like to use some special values for the precomputed realtime GI. I am using a vertex fragment shader as it seems that it offers much more controls than a ...