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
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
1answer
103 views

Player position on second player connection

I'm having some trouble trying to run my game for the multiplayer part. I'm creating a 2d game. I have followed this tutorial : ...
1
vote
1answer
43 views

Can UNet do Rigidbody2D prediction? (i.e. using gravity)

Having a NetworkTransform with transformSyncMode set to SyncRigidbody2D (as opposite to a plain SyncTransform) I assumed it would try to sync all physics, hence handling gracefully forces, especially ...
5
votes
2answers
629 views

Unity3d. Overlay of clothes on a human model

I have: Clothes model (jackets, shirts, sweater etc. with various sizes,colors) Human model with dynamic height, width, position Need overlay the clothes' model onto a human model. Variant with ...
0
votes
0answers
46 views

Unity: UNetWeaver warning: SyncVar set from within property function. This will not set dirty flags. How to?

I was trying out the new Unity networking and I added the SyncVar attribute to one of my variables to be synced. I also have a property to get/set the variable and update the visuals when set. I set ...
0
votes
2answers
120 views

Unity procedural TileMap generation without creating gameobject per tile

I've been searching all over the internet to find a efficient way to create procedural tilemap without creating a gameobject per each tile. There is none, or simply i couldn't find it, because i ...
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
2answers
254 views

Basic C# Script in Unity3D for firing a bullet (not working)

working on a 2D top-down view game. Im trying to get my player to fire a bullet when spacebar is pressed. I added a component to my player (a bullet sprite) and placed it under his gun (so you can't ...
0
votes
3answers
166 views

Unity3D - How do I make so when user moves the camera it doesn't go beyond the scene borders?

How do i make so when i move my camera, it doesn't go beyond the border of the canvas while playing. This is the script i use to make the camera move: if (Input.touchCount > 0 && ...
1
vote
2answers
156 views

Scaling a UI bar for progress in Unity

I have created a progress bar inside Unity for one of my energy systems. The bar progression works fine. Its just a plane pivoted on one of the faces so scaling it in x axis makes it progress further ...
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 ...
0
votes
0answers
20 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
1answer
218 views

Particles in particle system not being lit

I have a sprite that I want to use in my particle systems (it's just 4x4 white square). I'd also like for the particles to be lit (react to lighting within a scene). Since I'm using 2D Toolkit, I ...
1
vote
1answer
50 views

Change Camera Contrast in VR Game

Hello there Firends , I'm developing a Virtual Reality game in Unity. As in every VR game , i have 2 cameras for stereo rendering. I want to show the same object in each camera having different ...
0
votes
1answer
28 views

Importing .anim files created using the Unity Animation controls

Our artist created some .anim files using the built-in Unity Mecanim system (where you use keyframes and drag various body parts to construct the animation). However, now we're trying to export them ...
1
vote
2answers
60 views

How is setting the size of the window done?

Maybe I missed something, but I've gone through 3 full unity video tutorials (roguelike, shooter, ball) and gone through the standalone scripting videos up on the unity site and I'm still confused on ...
-1
votes
1answer
36 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
179 views

Controlling roll rotation when travelling along bezier curves [Unity3D]

I am currently working on implementing a curve implementation for use in Unity which includes an editor: The aim is to get an object to follow the path represented by the curve at a constant ...
1
vote
1answer
88 views

How to create gui image with script

So I've been fiddling around with the new UI system recently -- and one problem I have is adding images of my sprites to the ui. I know I can create a prefab of an image gameobject with the sprite ...
0
votes
2answers
48 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 () { ...
0
votes
1answer
44 views

Google Play Game Services (Unity Plugin) Turn Based Multiplayer List of Open Matches

I took a closer look at Google Play games services Turn based multiplayer, and I cannot find out if I am somehow able to just get a list of all open matches, so that I can implement my own GUI. It ...
1
vote
3answers
5k views

How can I do something only after an animation has finished?

I'm making this 2D platform based game. Basically what I want is when the player walks into spikes (which have a "deadly" tag") it displays the animation that has the parameter of animate with the ...
0
votes
1answer
24 views

Resources.Load doesn't grab values of my child class

I have a parent class Unit, and child classes melee unit/ranged unit. The parent class holds uninitialized fields such as health, damage, etc. the child class sets the values of these fields in an ...
0
votes
1answer
24 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
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 ...
1
vote
1answer
135 views

In Unity, why do my animator states wait until the end of each animation to change?

I'm trying to make a simple idle-walk transition in Animator using Unity. I've set a script that changes the Speed value from the Animator, and it works perfectly when I move the character forward ...
1
vote
2answers
345 views

Create a continuous flight path on a Bezier Curve in Unity3d

I am working on a game in which a butterfly is flying along some path. What I am trying to do currently is create a Bezier curve starting from the butterfly's position(previous curves end point) and ...
0
votes
2answers
95 views

Cube goes through objects

I have Unity Pro 4.6.1 and I am trying to make a cube move with the arrow keys. Here are the barriers before I move the cube: And here's when I move the cube (the problem): I don't want the ...
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
345 views

Mesh deformation maya to unity

I have a model that has been modeled & rigged in Maya, whenever i export it as an FBX and take it into unity it seems to collapse at certain areas (see the attachments for a before and after). The ...
0
votes
0answers
54 views

String too long for TextMeshGenerator. Cutting off characters in Unity3D

I keep getting this Error With no StackTrace: "String too long for TextMeshGenerator. Cutting off characters." did anyone else face this in Unity3d version 5.0.2f1 ? how to Solve this it this is ...
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
92 views

Draw GUI.Button on certain position on a scrollable background

Problem is in a 2D game I have a large background around 2 screens wide. And on there I got 4 buttons placed on top of background all over complete width. Now when I swipe of move my mouse around I ...
0
votes
2answers
489 views

Unity3d and Windows 8 run game in frame

How do I set Unity3D to run my game on Windows 8 in a fixed size frame (with a border around it) and not in fullscreen? I tried setting this in the Unity script and in the final C# project, but ...
0
votes
1answer
278 views

NGUI Texture Background Font of Sprite

I am new to Game Development and using NGUI plugin free version. There are few sprite images in my game. I made them prefab and instantiated at runtime. then I created NGUI Texture and Made it ...
1
vote
3answers
565 views

How to make a horizontal scrolling menu in Unity 3d 4.5

I want to make a horizontal scrolling menu that will hold levels of the game .But i have a little idea about it so it would be very great if anyone help me with it
0
votes
1answer
496 views

Unity mouse input not working in webplayer build

I have a button script with the following code void OnMouseDown() { animation.Play("button-squish"); enlarged = true; audio.PlayOneShot(buttonSound); } void OnMouseUpAsButton() { if ...
0
votes
1answer
64 views

Making a master server in Photon Unity Network?

I am trying to make a game that requires a dedicated server running 24/7 and I would like to use Photon Networking but can Photon Network handle/do a dedicated server setup? The reason I ask is ...
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. ...
1
vote
1answer
19 views

In Unity, Meta Files are Tracked but Behaviours Fall Off

My team is working on a Unity game, and we are using a mercurial repository on BitBucket. Whenever we update, all of the behaviours 'fall off' of state machines, behaviours, etc. When searching for a ...
1
vote
1answer
70 views

How do you make a Pong slider using touch events for mobiles?

I am stuck with an issue of moving the slider on android mobiles with finger touch event while developing pong game in unity 3D, though its working fine for pc. This game is developed in 2D ...
0
votes
0answers
32 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..
2
votes
1answer
163 views

RPC events with client side interpolation

I've implemented client side interpolation, where a specified delay is put on each client. This allows them to interpolate between positions and rotations. Unfortunately, this means every thing else ...
2
votes
1answer
96 views

How to check if a test ad is ready

I was going through UnityAds for Unity3D, and came across this setting: AD TEST MODE Force all So as I understood it states that I will be able to see real ads, in test mode, without ...
0
votes
1answer
74 views

[Unity]Making sure playermodel only moves 1 unit

I am doing a school assignment based off of the Unity3D tutorial 2D RogueLike (all code available here) In my version though, the movement is not turnbased and I am having some trouble figuring it ...
0
votes
1answer
35 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 ...
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 ...
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 ...
1
vote
2answers
337 views

control animation using animator control class

I did a sample existing code to control animation using animation.I dragged and dropped a character into the scene then I added a Animator to it and added the animator controller.Below I have given ...