Unity is a highly cross-platform engine that focuses on easy art pipeline process and uses Mono as its scripting back end.

learn more… | top users | synonyms (1)

6
votes
1answer
228 views

Unity: Why do my normals flip during an animation?

This problem boggles my mind. I have an animation running on a face object (imported from Blender). At a few points in the animation, the normals switch direction! It causes the mesh to blink. Of ...
1
vote
1answer
40 views

Modular enemy behaviour in a shmup - Delegates unsuitable?

I'm creating a shmup type game and trying to implement the enemy wave system, which includes the associated enemy behaviours like their movement and bullet patterns. I've tried to separate the ...
1
vote
1answer
24 views

Unity 4.6: Position jumps when switching Canvas render mode from Overlay to camera in code

In the project I am currently working on I have two sets of main UI: one set that is on the screen at all times for the players use, and the second set which the player can open and look at to gauge ...
0
votes
1answer
23 views

How to invisible first window on click unity3d

I have a window called "red window" on scene1. When i click on the hello world button it should displays another window called green window and the first window should invisible. How it possible. ...
-1
votes
0answers
24 views

Unity Game dont run smoothly [on hold]

I've finished the tutorial Space Shooter for unity, but I built for Android i have two devides A phone HUAWEI G610-U15 runs perfect A tablet ME102A (Asus Memo Pad) runs but is not smooth, like ...
0
votes
2answers
7k views

Unity GUITexture or GUIText not showing up

Currently I've got a little 2.5D platformer with the camera tracking the player. Now when I go to insert a GUITexture or GUIText game object into the scene, it comes up absolutely fine in the Editor ...
0
votes
1answer
159 views

Game object position issue in unity3d

I have a set of objects placed on the same layer where all the objects are invisible except one .When i drag an object in to a selected area the current dragged object get destroyed and the object ...
1
vote
0answers
11 views

Unity Android Orientation Bug in Auto Rotate

I am currently looking for a workaround, or fix, for a Unity bug. I want to be able to auto-rotate my game, while respecting the Android system settings. Currently, if you set your Unity Orientation ...
1
vote
3answers
95 views

How do I define a required component on a Unity game object?

I have a script that expected the game object to have a Terrain component. Is there an attribute I can add (or some other way) which will prevent a designer from adding my ...
-1
votes
0answers
38 views

2D liquid physics platformer [on hold]

I'm a new independent unity3D developer. I'm planning on making a 2D platformer. The premise of the game is based around advanced physics and hopefully the 'character' interacting with different types ...
0
votes
1answer
146 views

VertexColor shader is not working correctly in built application

I want to change the vertex colors of my mesh. The light sources must not affect the objects with this shader, its lighting must be determined only by its vertices colors, so I turned the Lighting ...
0
votes
1answer
59 views

How do I draw a tilemap within unity3d?

I'm pretty new to Unity and after a bit of googling around I have come up with this code to draw my tilemap (the script is attached to my camera). I am simply trying to use nested for-loops to draw a ...
2
votes
1answer
80 views

How to mirror flip animation curves in Unity?

I have a animation that moves my camera from left to right. Now I'd like to copy it with 'mirror' transformation so I can use it to move from right to left. Is it possible to do it using script or ...
0
votes
2answers
272 views

Set new forward directions based on camera position

I have a 3rd person camera which can rotate around the player. When I look at the back of the player and press forward, player goes forward. Then I rotate 360 around the player and "forward ...
0
votes
1answer
31 views

How to access multiple 2DTexture which is assigned in Unity3D inspector panel created by an array in C#?

I am making a puzzle game, i made 5X5 cube, lets take example of orange. very left column is orange, upper with orange dot is static and lower with orange dot is also static. inbetween there are 3 ...
0
votes
1answer
73 views

Sending RPC calls from server to client inside Unity

In my game inside Unity, I have two scenes setup. One for the main server ( acts like authoritative server ) and the other scene for my client. The game starts once my client connects to the server. ...
0
votes
0answers
38 views

importing images as pixel-perfect from flash to Unity

I am not sure if this works, it just feels like it should. So I have this character in flash: And what I want to do is import him into Unity, and making him pixel-art. (And yes, for those wondering; ...
4
votes
4answers
8k views

InputManager in Unity

I´m having a rough time trying to figure out a proper way of dealing with key mapping and key bindings in unity. The built-in unity input manager is useless to me since it doesnt support key mapping ...
2
votes
3answers
873 views

(2D) Detect mouse click on object with no script attached

I'm creating a 2D project which does not have a character. So i created an empty gameobject and attached the script to it. In the script, i have declared other objects which are in the scene like ...
0
votes
0answers
12 views

Leaderboard Testing on Google Play Services

I have a shared Google Play Developer account so that he allowed me to publish a game app. Next, I want to know if in order to test the online highscore is to upload the APK and publish it first ...
0
votes
1answer
103 views

How can I allow players to draw decals for their avatar and items?

I want the player to be able to draw a simple symbol, even if it's pixelated black or white, that their character can have on their weapons, armour, forehead or even markers and monuments. How would I ...
0
votes
1answer
595 views

Creating a curved mesh on inside of sphere based on texture image coordinates

In Blender, I have created a sphere with a panoramic texture on the inside. I have also manually created a plane mesh (curved to match the size of the sphere) that sits on the inside wall where I can ...
0
votes
0answers
35 views

Top-down platform game [on hold]

I would like to start a project using Unity to learn about the engine and so on. I've already tested it a bit but I would like to do something more serious. The thing I have in mind is a top-down 2d ...
0
votes
1answer
38 views

Trigger scene loading in one device from another device using Unity WWW class

I have a master device and client device. I want to load a scene in the client device by pressing a button in the master. My method is, when the button is pressed in the master device, a data is ...
0
votes
0answers
22 views

Instantiating and deleting objects with triggers problem

I'm trying to create some kind of dust field, by now I'm just creating small balls for testing, between the bounds of a BoxCollider which I use as my dust field. When the box collider goes outside the ...
1
vote
2answers
115 views

How can I implement a futuristic “barrier field” that reacts to hits?

I want to implement a "shield" that reacts to projectile hits. Currently, my colliders are mapped to the animated sprite's outline on all frames. I'm looking for something like the image below. For ...
2
votes
1answer
500 views

unity sphere falls through the plane

I have a elongated rigidbody sphere with Mesh Collider. It falls through the plane. (I made a rigidbody cube and does not fall through.) I have problem with Mesh Collider repeately.. The collision of ...
0
votes
1answer
255 views

Unity-Animation parameters are not being set

I have the following animation controller: with two parameters of walkingSpeed and Jump. I have the following code which should change the values: animator.SetFloat("walkingSpeed",0.9f); ...
0
votes
1answer
437 views

How do I add a Rigid body and a box collider component to a Texture2D?

I am making a snake game. I'm basing it on a basic tutorial game, which does no collision detection, wall checking or different levels. All snake head, piece, food, even the background is made of ...
0
votes
0answers
45 views

How can I use a texture as a font in Unity3D

I am making a game in unity and I am trying to make a custom font for showing numbers. I created a png with the numbers, turned it into a material and added it to a custom font object. I set up the ...
0
votes
1answer
43 views

Copying a texture's colors to a new texture to create a new sprite

Let mySprite be some .PNG sprite: Texture2D tex = mySprite.texture; Sprite sprite = Sprite.Create(tex, new Rect(0,0,tex.width,tex.height),new Vector2(0.0f,0.0f),1.0f); The resulting sprite can be ...
0
votes
0answers
15 views

cross game center client api [on hold]

Is there any package or api for unity so with, we can use "apple game center, google play game services and Facebook's game services" together(achievements, leaderboards and scores)? We want to ...
0
votes
0answers
22 views

NHibernate over Mono in Unity, connection string problems

I'm using NHibernate in Unity, and running the project in the debug environment works great, but when running the compiled EXE, I was getting a NullReferenceException when trying to access the ...
1
vote
1answer
262 views

Move a sphere along the swipe?

I am trying to get a sphere curl based on the swipe. I know this has been asked many times, but still it's yearning to be answered. I have managed to add force on the direction of the swipe and it ...
0
votes
1answer
55 views

Unity, Cannot change a single Vector2 element of mesh.uv?

I have a simple procedurally generated mesh, with uvs that tile correctly for(int i=1; i<vertices; i++) { uv[i] = new Vector2(x,z); //pseudocode } mesh.uv = uv; This works fine. However if ...
0
votes
0answers
20 views

How to control animationClip though scripting or button pressed

I am stuck in my project designing Game Menu in unity. I am using NGUI plugin free version. I created image button and animated in animation view. It made animationclip and added in animator ...
0
votes
2answers
47 views

GUI Text counter Skips numbers after a few seconds

The counter counts perfectly up until the first bump. After this it starts to add about 4-5 "points" instead of just 1. using UnityEngine; using System.Collections; public class GameController : ...
0
votes
0answers
40 views

Flickering Textures

I have downloaded an FBX and its textures and imported them into my project. The problem I have is that the textures are flickering very much in my current scene whenever I move the mouse. I have ...
0
votes
1answer
356 views

Simple heart container script for 2D game (Unity)?

I'm attempting to create a simple mobile game (C#) that involves a simple three-heart life system. After searching for hours online, many of the solutions use OnGUI (which is apparently horrible for ...
0
votes
0answers
38 views

Dynamically destroy objects when player enters a boxcollider2D

What would be the best approach for destroying dynamically objects when player enters a boxcollider2D? Currently using parent objects with boxcollider2d to activate OnTriggerEnter2D, boxcollider2d is ...
-1
votes
0answers
65 views

Can anyone explain that code? [closed]

public class Player : MonoBehaviour { public float speed =10f; public Vector2 maxVelocity = new Vector2(3, 5); void Update () { var forceX = 0f; var forceY = 0f; var absVelX = ...
0
votes
1answer
43 views

Need help in tracking down memory leak in Unity standalone game

I'm experiencing a memory leak in my Unity game. If the game sits idly (no new game objects are being created in the scene), Windows Task Manager will show the memory of the .exe slowly rising. I've ...
0
votes
0answers
23 views

Can I break the UI MASK hierarchy in unity 4.6?

I'm using unity 4.6. I saw a couple of UI masks tutorials and saw that there's a certain hierarchy I can't seem to break: -Canvas --- Panel (holds the mask component) --------Image I want to move ...
0
votes
1answer
36 views

I am trying to implement a falling animation to my game and i am having alot of problems doing so

i am trying to have it so that when my character isnt touching anything he plays an animation of falling, yet when he moves from one game object to different one, he plays the animation. for example ...
0
votes
1answer
101 views

Doing imagemagick like stuff in Unity (using a mask to edit a texture)

There is this tutorial in imagemagick http://www.imagemagick.org/Usage/masking/#masks I was wondering if there was some way to mimic the behavior (like cutting the image up based on a black image ...
2
votes
1answer
212 views

Long delays in Unity3D substance generation

Currently working on an iOS/Android project in Unity3d, and we're seeing some incredibly long times for generating substances between testing runs. We can run the game, but once we shut down the ...
0
votes
1answer
149 views

touch in guiTexture

Before time in my game start. i want there will show a guiTexture.. if i touch this guiTexture, that will hidden and the time game will start. I try to make a script but it doesn't work. I'm a bit ...
0
votes
1answer
34 views

Change one prefab without changing all prefabs

I have this code that will spawn in a lot of prefabs. It then edits the prefabs. The problem is that every time it changes a prefab it will reset and move all the other ones. Can you please explain ...
0
votes
2answers
45 views

StartCoroutine function inside TriggerOnEnter2D not working - unity + kinect

So i'm using Kinect with unity to track user's hand movements, and let the user's hand act as a mouse, I have written the code to detect a collision between a button (sprite object) and the hand ...
0
votes
0answers
85 views

Best way to develop a Web based RPG game - after some research [closed]

I've been researching this for a while, and I'm in need of some pointers(:D) the thing is this - I have 3 options in mind: HTML5 + Javascript Java applets(is that still a thing?) unity web player ...