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
2answers
95 views

Why cannot I show Interstitial ads?

I have tried many things but I could not make interstitial ads display in Unity. I want to show interstitial ads after users select a wrong answer and before the score page ("Notice" scene) displays. ...
1
vote
2answers
129 views

transform.Rotate needs to change axis of rotation

So I'm making a game in Unity. After many failed attemps from either being bored of the idea, or something going wrong and me giving up I think (hope) that will be the good one. I have made a simple ...
3
votes
0answers
98 views

Unusual black squares in transparency effect after wake from sleep

I've encountered unusual black squares in semi transparent textures for a while now, usually in processes that were resumed after the computer woke from sleep. For example I've seen the effect in the ...
5
votes
1answer
635 views

How to make installable .exe file for unity games

I just completed my game but after i built the game from unity to .exe it also has filename_data folder i know it has all the resources for the game. I tried iexpress and innosetup to make the install-...
5
votes
1answer
996 views

Unity: Apply an Image Effect on one layer only

Please consider this simple scene. It’s composed of 3 different game objects. 1 background image + 1 static character image + 1 small part (with the pet) that is changed at runtime to perform an ...
2
votes
0answers
164 views

unity lag while moving a sprite

I'm trying to build a 2D game for android and after I finished developing the game I noticed that there was lag present when moving objects around. I tested it on a phone much more powerful than my ...
3
votes
1answer
65 views

Vertex position problem for connected lines

I’m trying to generate a mesh to display connected segments representing street lines in a mini map. I have problem with vertex orientation that my math knowledge has hard time to resolve. Let’s ...
1
vote
1answer
70 views

FPS camera up and down control

I am new to Unity. Now I am working with FPS camera. While pressing a key down arrow I want my camera to go down and again it come back to normal position. I am not getting any idea how to do it. ...
3
votes
2answers
284 views

High poly vs Low Poly when creating model [closed]

I am new in game development, but I have some knowledge in Maya and 3ds Max, I want to create pirate ship for game. So I spoke with many 3d artists and there are different opinions about low polygons ...
-5
votes
2answers
281 views

Unity Renderer.bounds issue?

I would like to make rend.bounds.max.y be always equal to 20 on collision no matter what, using the script below. But it seems that I can't set it manually and the script has no effect on my ...
1
vote
1answer
36 views

Modifying an array of quaternions

I have written the following function to inter-change 2 specific elements of an array of quaternions: private void ChangeRotations(Quaternion[] rotationsArray) { Quaternion bone1Rot = ...
1
vote
1answer
198 views

How to combine tiles in a procedurally generated level in 2D tile based maps?

I am developing a 2D tile-based top-down game. It is currently instantiating square objects with a sprite renderer to procedurally generate the map. Each floor and wall is a 1-unit wide object. I ...
3
votes
1answer
66 views

Question on specific custom inspector

Ive just finished Alex Stv's Voxel tutorial on http://alexstv.com/index.php/category/voxel-tutorial, and realized it would be very handy to have a custom inspector for the TerrainGenerator variables, ...
3
votes
1answer
306 views

Why is GameObject.FindGameObjectsWithTag returning null?

I'm currently working on refactoring my gravity simulator, but I'm running into a problem. I have two GameObjects, both tagged with the tag "Body", as you can see below: I'm attempting to cache a ...
-3
votes
2answers
118 views

My Simple Score System Isn't working please help [closed]

using UnityEngine; /// Handle hitpoints and damages public class HealthScript : MonoBehaviour { /// Total hitpoints public int hp = 2; /// Score System public int score; /// ...
3
votes
1answer
96 views

Unity3D Pathfinder with Crossings

I'm trying to bring traffic on my street system. The main problem for me are the different lanes and crossings and to make it complete the different types of paths. I've tried a bit with the ...
0
votes
1answer
100 views

Avoiding GC when rebuilding Mesh.uv and Mesh.vertices

Since unity will not allow users to iterate over mesh.uv and mesh.vertices, I am stuck having to use GC intensive calls when applying an array of uvs and vertices to a mesh. I run into high GC ...
1
vote
2answers
1k views

Chromium Embedded Framework and Unity3D?

I have recently heard about the Chromium Embedded Framework and was over-joyed as I want to use html as my GUI source. I did find a C# version but it seems to be for Windows Forms. I'm not too ...
1
vote
1answer
66 views

Unity animations not transitioning properly

I am currently trying to animate transitions between four different directions. I have four total animations for walking, and another four for the idle state. I cannot seem to figure out why when I ...
2
votes
1answer
471 views

In Unity, on an Android device, CaptureScreenshot writing to Phone, but persistentdatapath linking to the external card

I'm using CaptureScreentshot() to get an image. But when I try to access it on an Android device it's giving me: Could not find file "/storage/emulated/0/Android/data/appname/screenshot.png" When I ...
3
votes
0answers
172 views

Unity - reconstruct position from depth

I am using Unity and I want to reconstruct position from depth and frustum corners in pixel shader. I am doing this: In my App, I calculate view-space corners of the far frustum plane and pass them ...
3
votes
2answers
277 views

How to organize level blocks in an Infinite runner

I'm working on an Infinite Runner game. I have created many level blocks(sections) with different obstacles and pick-ups for the player. They are positioned and placed manually, in such a way, to give ...
1
vote
1answer
479 views

How to share image in persistentDataPath to facebook feed?

I'm trying to share an image taking from CaptureScreenshot() using FB.ShareLink(...) to Facebook. My code is the following: (After calling FB.Init(), etc..) string tmpScreenshotPathname = "file:///"...
4
votes
1answer
178 views

AI using character controller makes unwanted change to it's y position

The enemy parent object does not have any colliders except for the character controller. It starts out with y = .57 and immediately jumps to y=1.6355 because of my call to CharacterController.Move(.) ...
1
vote
0answers
42 views

Having trouble making game time pause and unpause

I've been trying to make it where when the player does a certain task, the game's time will pause. When the player does another action, the game's time would unpause and continue. I had my code like ...
1
vote
1answer
67 views

How to show specific item in question on trigger entry? (Unity & c#)

So I have multiple, random objects on a plane, and when my player walks into them, I want them to be 'picked up'. The player can only hold one object at a time, and needs to return the item to the ...
0
votes
1answer
32 views

Activate and Deactivate Collider with Click

i'm having some troubles working with this, it's basically a Sword that points towards your mouse position, and when you Left-Click, a Trigger Collider is activated and then deactivated, but i can't ...
1
vote
2answers
64 views

What's a simple way to send statistics from my game back to me?

For example, I set up my game to keep track of how many times people play x, y, and z game modes, and also to keep track of how often players reach a certain point. What's a simple way to send this ...
0
votes
2answers
109 views

Reading XML working in my computer but not in my Android phone

Following code works perfect in my computer but when I try to run it in my Android Phone, it does not work. string path = @"Assets\Layout\XML\file" + select.ToString() + @".xml"; XmlSerializer ...
1
vote
0answers
37 views

Make Object Turn To Face a Certain Angle

I have an object that is sometimes above or below another object. Once the object comes in close proximity with the other object, I want the object that is above or below that current object, rotate ...
0
votes
0answers
53 views

How to activate user input modules with platform defines in unity?

I'm having some trouble understanding the activation process with input modules. I'm making a game that can work on mobile or on Desktop in VR. Basically, it works by creating a world-space canvas ...
3
votes
1answer
148 views

Proper way to draw 1000 billboards that always face the camera

I have up to 1000 visible GameObjects with trivial plane meshes, which are essentially sprites/billboards and which should always face in the relative direction -camera.forward. There are so many ...
0
votes
2answers
53 views

Why is my gravity script repelling and not attracting?

I'm currently working on a small simulation of Newton's Law of Gravitation in Unity3d, and it seems to be working pretty well, except, it's doing the opposite of what I expected. Instead of attracting ...
2
votes
1answer
289 views

Unity Controller navigating UI

I want players to be able to use a controller to navigate our game's menus. We use Unity's new UI, and in the EventSystem have specified a controller axis for our vertical axis. However the selection ...
4
votes
1answer
156 views

Is there a way to determine Android physical screen size?

We're currently porting our games to Android, and would like to be able to release a universal build for tablets and phones. Is there a way to determine the actual screen size or DPI in order to ...
0
votes
0answers
67 views

Unity 5: Occlusion Culling Areas in Vehicles

I am using Unity 5 and want to make use of Occlusion areas. They work as expected in an FPS-style game. In the current scene I use a rail-shooter-like approach with the camera attached to a (very high ...
0
votes
1answer
48 views

Doesn't Unity5 support Expression Bodied Properties?

I wrote the following line in Unity5 using C#: private static float Width => 0.015f; Unity complained about the following issue: Unexpected symbol `=>' in class, struct, or interface member ...
0
votes
1answer
101 views

Unity3D Making timescale freeze and resume

So, I'm trying to make it where when a popup(Ui panel and text) appears, the game's time(timescale) would freeze. Then when the user enters input and clicks enter button, the popup would disappear ...
0
votes
0answers
78 views

Unity MecAnim Bone Structure

I am trying to modify the bone movements in LateUpdate similar to the following pseudo-method: void LateUpdate() { updateLimb(Transform[] pose, Transform[] model); } Essentially, I want to ...
0
votes
1answer
175 views

Blender FBX exports to Unity3D have incomplete animation sequences

Using Blender, I have rigged and animated this model with this attack action. I exported this model to an FBX format and imported the said FBX file into my Unity3D project. However, when I imported ...
0
votes
0answers
63 views

Is it possible to emit particles from a part of a mesh?

In Unity it's possible to emit particles from a Mesh using the legacy particle system. However: Is it possible to emit particles from only a part of a mesh, for instance to emit particles only from ...
0
votes
0answers
186 views

How to export unity project to play in HTC Vive?

I have an Unity project which I want to export and use in HTC Vive. How do I do that and in addition is there any resource online which I can use to refer how do I code to use the controllers for HTC ...
1
vote
1answer
123 views

Why does my Unity animator state “finish” before the visible motion does?

Example: Screenshot of the TopAppearing motion - boost the alpha of the sprite from 0 to 1 for total of 2 seconds. Screenshot after TopAppearing state has been finished Screenshot of the ...
-1
votes
1answer
188 views

Fade in and fade out Gui texture [closed]

i am beginner in c# that i want have fade-in and fade-out. i write script but why didn't work: using UnityEngine; using System.Collections; public class FADE : MonoBehaviour { private var alpha =...
-1
votes
1answer
83 views

How to avoid mouse click over the trigger object?

I'm detecting the mouse clicks if the click is happened over the collider but i dont't want to fire mouse click if it is on the trigger object. How to i do this. Anyone give me a suggestion. Thank ...
1
vote
0answers
61 views

Is Mogre (essentially Ogre, but C#) dead? If so what would be a viable alternative to it? [closed]

I've been looking around for a 3D engine where I can use C# to replace Unity lately, but haven't really come up with much. Ogre looked promising, but it wasn't C# however Mogre is. Sadly looks like it ...
1
vote
1answer
212 views

Unity3D RigidBody adding force diagonally (x,y,0) results in two separate movements instead of one diagonal movement?

The intentions of this function are to utilize the RigidBody component from a "target" object and clear its force while applying a diagonal force in the direction upwards and away from the side they ...
1
vote
1answer
273 views

How to use .fbx for 2D animation in unity 2D

I am new to unity so please bear with me. I have come to know that for animations it is better to fbx format in unity rather than sprite sheets. I am using unity 5.2 and till now i created all my ...
1
vote
1answer
102 views

Unity3D Sprite tearing on Android Smartphone

The game was running on Samsung Galaxy Trend 2. On other smaptphones and emulator it seems running properly without glitches. Sprites import settings are following: Could someone explain why ...
3
votes
1answer
81 views

How can I use shaders in Unity to write a scientific computing program?

I want to write a GPU shallow water code on Unity3D. For sure, performance matters a lot. I've done this before using DirectX and C++. But for a couple of reasons I want to redo it in Unity3D. I ...