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)

4
votes
3answers
180 views

How to create custom 3D “areas” at runtime

I've been puzzled for a few days trying to solve this problem, so far with no results. On a map, currently a Terrain, I'd need to have some "areas" which can be controlled by a specific players. The ...
0
votes
1answer
5 views

Animation package from Assert Store not working probably with Unity Model/Custom Model?

I downloaded the animation pack from here: https://www.assetstore.unity3d.com/en/#!/content/25794 The assert contains a fbx file, which contains a bunch of animations. Then in Animator window I added ...
0
votes
2answers
46 views

How to access Collider in c# script with its tag name

I want to access a Collider in c# script file with its tag name I Tried this if (Collider2D == Physics2D.OverlapPoint(touchPos)) { Some Code to be Performed } I want to access this Collider2D ...
0
votes
1answer
80 views

Need help with Physics

I'm using Unity to develop a game. Basically i want the player/rocket to follow a point on the screen where user touches. But It's based on physics. Force must be added when user touches somewhere and ...
0
votes
3answers
66 views

Calling and functions/methods from different Classes in Unity

I am learning some of the basics with Unity and am running into calling/sending code to a different script. For example, the code below is a basic menu of options. I have a different Scene set up in ...
-1
votes
1answer
52 views

Get current position of instantiated prefab

I wrote two little scripts to manage platform spawning. 1st - is attached to the Spawner gameObject. It's uset to spawn new platform. 2nd - is something like Platform Manager which not extend ...
1
vote
1answer
69 views

Random movement of game Object staying in a circle

I want to write a script which makes several objects move in a random direction but within a range around another game object. If the parent object moves then that range should also be changed ...
0
votes
2answers
53 views

Shooting at mouse in unity

I'm using unity and trying to get my bullet to shoot at a target. I am clicking the mouse and I'm wanting to fire my bullet in that direction. I have gotten the coordinates of the mouse click and ...
0
votes
0answers
74 views

Unity3D - Unable to attach script to GameObject prefab at runtime

I've got a script that manages a scene browser within my application where I'm hoping to generate a new button instance for each scene found. I've put together a button that I've made into a prefab ...
1
vote
2answers
37 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
68 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
69 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
12 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
65 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
101 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
76 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
35 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
30 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
17 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
49 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
35 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
77 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
36 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
16 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
236 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
80 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
102 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
48 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
39 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
52 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
111 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
33 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
45 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
3answers
61 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
28 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
96 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
1answer
41 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
47 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
20 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
54 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
53 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
39 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
31 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
22 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
2answers
55 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 ...
4
votes
2answers
81 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
45 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
28 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 ...