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)

1
vote
2answers
21 views

Animator.SetBool: am I supposed to call it only when its value changes?

I've searched around the web for a while, but didn't manage to find anything about it. Despite using Animator in several projects so far, I've never been in this exact situation, so I'm unsure what ...
-1
votes
2answers
51 views

How to enable and disable scripts on a Game Object?

This worked briefly yesterday, I believe I did something to mess this up. All my inputs that I put in are correct; therefor, it must be the code. I want to switch players. While the red cube's script ...
0
votes
0answers
21 views

Other programs like blender that can be used by Unity 5? [closed]

Are there any other programs like Blender that i can use with Unity 5? and if no why not?
0
votes
0answers
24 views

“Your android setup is not correct” error on Unity showing up even after reinstalling OpenSSL (Using Facebook SDK)

I want to build for Android and today one error popped up after building. Your Android setup is not correct. See Settings in Facebook menu. UnityEditor.HostView:OnGUI() Important things about ...
-2
votes
1answer
24 views

showing Load 'name' (-1) couldn't be loaded because it has not been added to the built settings even after adding it

I have created 3 scenes (StartMenu, Game, Win) and added all of them to built setting with proper arrangement. StartMenu Scene has a button start which should take game to second Game Scene when ...
1
vote
0answers
8 views

Amazon IAP V1 not working on unity

I've been following the tutorial for amazon iap v1 (because it seems a lot easier than amazon iap v2) but when I built the android app and went onto the shop screen the app just force closed. Here's ...
0
votes
0answers
41 views

FPS : Hands+Weapon Animation

I want to create multiplayer first person shooter . Now I want to create animation where the soldier is walking with rifle . I have separated hands from the body of the model and I have dropped ...
0
votes
1answer
45 views

Change sprite to animation in unity 5 2d (c#)

I want to do the same as this older post with one change: Change the sprite of a Object in Unity I want to use a .anim animation (created with unity) after the space key is pressed instead of ...
2
votes
0answers
50 views

Moving a character based on a list of Vector 3's

I have a client server scenario. On the server there is an AI character who chooses a random point on the map and pathfinds to it, when at that point it chooses a new point and pathfinds again etc. ...
0
votes
0answers
32 views

Unity: object with strange transparent color?

In my game the players left arm is this weird transparent color, but the right is normal. When i drag the right arm's material over to the left it doesn't fix the problem, so there's something wrong ...
0
votes
0answers
21 views

How can a text asset be added to an asset bundle using C#?

As far as I can tell assets can only be assigned an asset bundle through the editor. Is there anyway to assign an asset an particular asset bundle in C#? Specifically a text assets? I'm trying to ...
0
votes
0answers
16 views

Problem with cameracliping unity

Hello GameDev Community, i've got a small problem with figuring out a way to do cameracliping in the unityengine with raycasting i got two main problems the first being that my camera flicks ...
0
votes
0answers
36 views

Developing a tilebased structure within Unity [closed]

I am developing an isometric tile game, which will contain the floor, up to one object, and up to 4 walls. I need to be able to select which decoration/texture on each individual wall. I of course ...
0
votes
0answers
37 views

Facebook integration issues

I have a "weird" problem with integrating Facebook in my game. The problem is that i can not see the scores of all my fb friends. (I have a high score panel where i visualize my fb friends best ...
-1
votes
1answer
28 views

Does Transform.childCount not work correctly?

This is my code: void OnTriggerEnter(Collider collide) { if (collide.gameObject.transform.tag == "Laser") { Debug.Log ("Inside If"); Transform resourceTransform = collide.transform; ...
1
vote
1answer
61 views

Developing an iOS/Android game with the free Unity license - feasible?

I recall, when I looked up the Unity license comparison page several months ago, seeing that some iOS/Android features were disabled for the Free license. However I can't seem to find that page now, ...
0
votes
0answers
29 views

Why are my smooth curved meshes bumpy?

Reference .gif of what I'm experiencing I've been trying to create smooth surfaces for my game in Blender, mostly curved ramps. However, for some reason I can't get the ball to roll smoothly along ...
0
votes
0answers
15 views

Finding vectors to create an inner border for a mesh

I'm looking to create an inner border for generated polygons, which function as provinces in my game. As an example: I have the outer black vectors, that I use to generate the mesh for the ...
2
votes
3answers
155 views

How do I make an endless road in Unity?

Basically I created 2 quads side by side and I added a road texture. I used transform.translate so that the road moves, but I am trying to make the road endless by making the 2 quads reposition ...
0
votes
0answers
76 views

Why do 100 rect contain 400 tris?

I am making a game targeted towards mobile, so I am experimenting around to know how I can boost performance. Now I have a rectangle with a road texture on it. This I made in Blender. And as expected ...
1
vote
0answers
70 views

Creating lightning effect with glow effect

I am trying to recreate Drilian's lightning bolt in unity and I have faced a problem in the "Adding Some Glow" part. I am missing glow effect (and/ or "rounded beams"). Here is what I am doing: I ...
1
vote
1answer
36 views

Cardboard on iPhone 5 doesn't render on stereo

Has anyone ran into this? I'm on Unity 5.1.1p3, Cardboard Unity Integration v0.5 (5/28/2015) and an iPhone 5 running iOS 8.3 (12F70). I made a game that uses Cardboard and on an iPhone 6 the ...
0
votes
2answers
31 views

How can I easily assign an array in the inspector?

If you make a public array class member in Unity, you can individually assign objects to the array in the inspector menu. It looks like this: However, this is cumbersome if you you want to assign ...
0
votes
1answer
34 views

unity3d - how to do pixel perfect movement with

How would you be able to move sprites move pixel by pixel in unity3d? I've tried the following things. I tried: int x = (int) transform.position.x; I tried: int x = ...
1
vote
2answers
77 views

Unity NGUI Arial Label looks different in iOS after updating Unity to 5.1.1

I am using NGUI and I have a UILabel. It uses Unity dynamic font Arial. Bold. No effects. This is how it looks in the Unity editor: And that's how I want it to look. When I build it in iOS, it ...
0
votes
2answers
26 views

Unity C#: strange texture/sprite problems

I've been making a gallery style shooting game, like something you'd find at a carnival, with ducks to shoot. I'd made the game and it was all working fine. However opening it today, it doesn't look ...
0
votes
0answers
41 views

Saving runtime animation Unity3d

I have a .fbx file and I matched it with a Mecanim. During the run time I modify some of the joints rotations, and I wonder how I can save the whole animation on a file to include the modifications I ...
0
votes
1answer
45 views

How do I get the position and rotation of an animated object in Unity?

I have this object which is being animated, the animation moves a arm and hand. I want it to look like it's holding something but I can't move the object to the hand because even though the animation ...
0
votes
0answers
19 views

Lightmapping + custom model + manifold

What are the things one should consider before doing light maps? We have custom models in Unity Scene,while doing light mapping it stuck at "Clustering job 5/11". After researching I come to know ...
0
votes
2answers
70 views

Saving/Loading PlayerPrefs only works in the editor

I'm creating a game which stores a few variables using PlayerPrefs. It saves and loads the PlayerPrefs perfectly fine while testing in the editor, however when I build it to WebGL or Unity Web Player, ...
-1
votes
0answers
37 views

Creating spiral using Shuriken

I've been trying to make a Spiral effect on Shuriken, with no luck (2D). I tried this out, but I couldn't get it to work like I wanted. Plus, I think that what I'm trying to do is pretty simple, so I ...
-1
votes
1answer
33 views

How do i move a 2D object with angle and speed variables in unity?

I want to move an object with a certain angle and speed, is there a was to set this as an initial velocity so that it is still possible for the object to collide and bounce of other objects using its ...
0
votes
1answer
44 views

handle mousedrag() for two different game objects individually in 2D environment

I am developing a pong game for android mobiles having 2 slider and want to assign movement of individual slider corresponding to its current position I tried some code for the movement of these ...
0
votes
1answer
13 views

Unity 4.6.6 iOS Build Issue

I am using unity 4.6.6 to create a Xcode build. When I create a build I am getting following error Cannot initialize return object of type 'Singleton_1_t6738 *' with an rvalue of type ...
0
votes
2answers
47 views

A cube on rotating cylinder not moving

i have an cylinder with self-rotating script, using UnityEngine; using System.Collections; public class rotate : MonoBehaviour { // Update is called once per frame void Update () { ...
1
vote
0answers
49 views

Why doesn't my orbit form an ellipse?

I'm playing around and trying to build an orbit simulator. Unfortunately, it isn't working out to well. Instead of forming some sort of elliptical orbit, I get this: Here is the code I'm using to ...
1
vote
1answer
29 views

Unity: Slow deployment to Android devices?

From the time I hit "Build & Run", I wait 2 minutes (each) for Unity 5 to push to two different 'Droids. Fresh project, one script to generate a simple mesh, and no other assets. I am deploying ...
0
votes
1answer
23 views

No shadow on custom model

I have custom low poly model ,the thing is it is not receiving shadows. Unity's default plane do receive the shadow but not my low poly plane. Here is image that demonstrate more,
0
votes
2answers
18 views

Rigidbody on UV animations

I know we need to add rigidbody if we are moving objects.In Unity 5 the performance of moving non rigidbody objects has been increased too. Though I have doubt over ,Do I need to add rigidbody if I ...
0
votes
1answer
44 views

Unity a ball bounce inside a sphere sometime will penetrate and drop outside

i'have made a ball within a sphere (which imported from blender, with mesh collider), see the pic after the scene started, the ball bounce inside around 5 seconds, and then the ball will penetrate ...
2
votes
2answers
52 views

Unity3D Get collision without having Rigidbody

I am trying to detect a collision between 2 objects, each one of them has a Collider component. In the script I have the method OnCollisionEnter(Collision other) where I want to check if the collided ...
0
votes
0answers
31 views

Hide back button bar of android mobile while playing game

I just want to hide back button bar of android mobile while playing the game. I tried to make it close by pressing back button,it getting close but its always visible. please help..
0
votes
0answers
21 views

Material spilling over to the other side of the object?

I have a material on an object which is having some strange behaviour. Here is the material settings I have along with the image file I have: and when I look very closely on the side of the object ...
0
votes
1answer
18 views

2D Lock x Axis on character

I am creating an endless runner with a flying character. I want to lock any movement in the x axis so that the character object can only move up and down but still move forward through the scene. I ...
1
vote
1answer
20 views

How do I duplicate the functionality of ugui's onClick (button component) in inspector (Unity)?

I'm trying to create the same functionality that occurs when you are working with a button in uGui in Unity. I know that I have to create a custom inspector, but i'm not sure where to go from there. ...
0
votes
1answer
34 views

Unity3D Get object size in order to be used in Vector3 coordinates

I have a plane in Unity in 3D project, and I want to get its boundaries so I can use them in random function for getting Vector3 coordinates. Currently I am trying like this GameObject ground; void ...
2
votes
1answer
34 views

Unity sprites and layouts

I am trying to learn Unity for a simple board game. The question is, is it possible to use grid layout group (or any layout component) with sprites? The goal is to fit a board into my view regardless ...
0
votes
1answer
40 views

current value of x for vector2 game object

I just need to push my game object in y direction not in of its x position,I need to assign it a new position but unable to access its current x position value so that can make it fix on its x ...
0
votes
1answer
31 views

blender imported sphere with mesh collider not collided

here is the scene i imported a sphere (the blue sphere) from blender (with a hole at back), i added a mesh collider on it but it has no effect, and there is an error message ...
0
votes
0answers
35 views

Using a Unity RenderTexture in a native plugin (4.6.1)

I am trying to create a RenderTexture in unity, but I want to update it using a plugin. I am doing this on Windows 7 Pro 64bit and I wrote the plugin using VS2010 professional. Here is the code in ...