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
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
53 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
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..
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
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 ...
2
votes
1answer
35 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
33 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
37 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 ...
0
votes
1answer
65 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
votes
0answers
43 views

camera following with strange behavour

I'm not sure why my code doesn't work.When I run it my camera just rockets off into space. using UnityEngine; using System.Collections; public class CameraFollow : MonoBehaviour { public ...
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 ...
0
votes
2answers
67 views

Need Help with Hovering Mouse Code

I am new to Unity and C#. I have a script here for a card game where my card is supposed to move up and down when the pointer is hovered over the card. But when my point hovers over each card, they ...
0
votes
0answers
52 views

Store Player Stats

My character creation order is: Select Race, Select Class, Assign Bonus Stat Points, Customize and Name the character. Because I am using Unity's UI components I am using scripts attached to empty ...
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 ...
0
votes
1answer
27 views

Adding a function call to a prefabbed button in Unity

For each of my scenes, I have an empty GameObject _Manager that stores my scripts for setting up the level, keeping track of variables, etc. On my main screen, I have a play button that isn't ...
0
votes
0answers
8 views

Unity - Eclipse Error :Failed to receive dispatch signal. status=-11

I develop game . This Game run directly in unity but it export to Eclipse this error : channel UnityPlayerNativeActivity (client)' ~ Failed to receive dispatch signal. status=-11
0
votes
0answers
22 views

Only StartCoroutine of Update on child prefab functions

I have a script attached to a prefab. That prefab attached to a child and I want it to rotate the root transform. The Update of the script executes nothing but the Coroutine of a class I wrote. ...
0
votes
0answers
16 views

Importing into Unity “Character Controllers” together with “Locomotion” and “MoCap” packages

I first imported the Standard Character Controllers package and then both Mecanim Locomotion Starter Kit and Raw Mocap data for Mecanim into a fresh Unity project. Please see the attached image for 6 ...
-1
votes
1answer
22 views

Unity trigger problem

I have been making my first game but I have encountered a small problem. To show the text when you win, you have to go into a block with the OnTriggerEnter line. I cannot get to this block however, ...
0
votes
1answer
69 views

How to animate objects in Unity 3D

Yesterday I played around with Unity 4.6 and I came up with a question about animation. I have an fps-survival project (most for educational purpose). I use the default build-in fps camera ...
1
vote
1answer
45 views

Why is everything lit by default?

I am following the unity tutorial here and when i drag my environment into the Hierarchy everything i already lit up on my Game view, i noticed this was also the case in the Space Shooter tutorial ...
1
vote
1answer
47 views

how to instantiate UI image in unity2D

I'm making 2d racing game .... and I'm using UI image in the canvas background (road) .my car and enemy cars and I have tried to instantiate enemy car with this script by attaching this script to ...
0
votes
0answers
13 views

Unity Asset Prefab Bug ThirdPersonController (left rotating bug) Unity 5.1.1f

I've been struggling on this for an entire week. There is a very annoying bug in the ThirdPersonController Prefab. Take a look at this video for better understanding. Once I turned 360° degree I ...
3
votes
1answer
165 views

Can Unity support / use textures that are not square?

I have been told by another highly skilled Unity artist that Unity cannot efficiently handle non square images. Since that doesn't sound right to me, I wanted to get a second or third confirmation to ...
-1
votes
1answer
40 views

Cloning a gameObject which use properties similar to original gameobject

How to make clone of gameobject have the same properties as the original gameobject just placed right to it and the clone should fire exactly parallel to original character. Every property should be ...
1
vote
0answers
29 views

Guidelines to create textures for materials in Unity3d

I'm facing a problem with realizing particle systems. Following many tutorials including the recent live session everything end up assigning materials to particle to get custom shape ones. What I'm ...
0
votes
0answers
44 views

Cell Loading System / Efficient Instantiation

|Summary| So essentially I am looking to create a system where the world is split up into cells. By cells I mean a square in the world that as the player approaches or retreats it decides if the ...
0
votes
2answers
80 views

What are the steps to instantiate a button in Unity?

Given a Canvas test_canvas containing a Button test_button and an empty GameObject that manages instantiation and scripts and the like called test_manager, what are the steps to instantiate this ...
1
vote
0answers
40 views

Calculating orbital elements from Cartesian Vectors

I'm having serious troubles with getting my calculations to work. I'm calculating the orbital elements from a position vector, and a velocity vector. (I also know the distance and mass of the bodies ...
2
votes
0answers
59 views

360 Degree Snake [closed]

I'm using Unity / C# to make a variation on a 360-degree snake game, but I'm having trouble just getting the movement of the tail right (I have a similar problem as in this question: How To Approach ...
1
vote
1answer
71 views

How to save the Mesh from an Interactive Cloth at runtime in Unity?

At the start of a scene I have GameObject called 'sheet' positioned above a 'ball' GameObject. The sheet has an Interactive Cloth component on it and a Cloth Renderer. The Mesh for the Interactive ...
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 ...
-1
votes
2answers
55 views

How to make different 2 object's collider with the same location in Unity 2D

I have made my own game, but I can't change the object's collider properties from the interface. I can't click on the expand button, because behind it there are other colliders. How could I change ...
6
votes
1answer
115 views

(Unity) Optimised networking solution for many moving objects

I've currently undertaking quite an ambitious project. In short, it's a real time multiplayer strategy game which has bacteria mechanics. Essentially, I have two remote players in the environment, ...
1
vote
1answer
107 views

How not to show ads to paid customers when I decided to make it free?

I am planning to publish a paid game built with Unity. After a while I will update the game as free and will start showing ads. But I do not want my first paid customers to see the ads after ...
-1
votes
0answers
68 views

Check if a UI Button is pressed in Code

The following button is a ui element. Is the following if statement checking if the button exists or if it is clicked? If it checks for its existence how can I check if it is pressed? using ...
2
votes
1answer
51 views

Dynamically save prefabs

We have made different types of prefabs, if we want to change small thing in all prefabs, we do drag all those prefabs to scene ,create script which will do its required work .All is fine till now ...
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
79 views

unity 5.1 how to control the animation?

i clicked a cube and added a simple transform animation by using animation timeline, and the cube has a "animator" component was added into the inspector. My questions are how can i set the ...
1
vote
1answer
66 views

How to create scrolling input text field using Unity UI

How to create scrolling input textfield using UI in Unity 4.6.6 problems in my project are 1.Cursor is not masking 2.Scrollbar size is automatically become 0 to 1 size 3.Scrollbar is not working ...
0
votes
1answer
40 views

Algorithm to fill a shape defined by 4 pixel points?

I'm developing an application in Unity3D where a user can define 4 pixel points on screen, and what I would like to do is fill this shape with pixels using Unity's SetPixel. While I can do this ...
0
votes
1answer
41 views

Unable to Set Text of another Text Object

The Idea: Pressing a button in the canvas will allow the player to select a race. A script is attached to an object which is accessed though the OnClick() function of the button. The script is ...
-1
votes
0answers
49 views

Unity 2D topdown car physics - backward movement

Im trying to implement some movement physics to my car in unity 2D. Im trying to achieve this behavior : if press up - car move forward. if i press down and car is moving - brake deceleration. if ...
0
votes
0answers
18 views

Resizable textured windows

I want to have display a window with a textured background, but the window should be resizable. How would you recommend going about this? Using a 9-sliced image for the background will not work ...
-1
votes
1answer
63 views

Unity Ui slider volume control

I have the ui slider to control my volume, I have my slider to control all the volume of the game. I have make it so when the main slider change value all the other slider change with it but when I ...
0
votes
0answers
27 views

Unity3d iOS build restarts when regaining focus from browser

I have an app made in Unity3d for android and iOS. In it, the user has the ability to link their accounts with Facebook and Twitter. For Facebook I use their Unity plugin, for Twitter, I open an ...
0
votes
0answers
25 views

CreateDelegate need some highlights

I'm trying to understand how to properly use Delegates in c# with Unity3d. What I'm trying to achieve is to dynamically create on Start a list containing all the methods contained in the class so ...