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 (2)

0
votes
1answer
21 views

Why object spawn duplicate and double sides.?

I have a script, I am using this script to instantiate new path and also wall (as border) to generate new path and wall. Before some time all scripts work fine. but at this time my player enter in ...
0
votes
2answers
18 views

Rotate character 180 degrees determine direction

In my game it should be possible to rotate the character 180 degrees. I always want the character to rotate clockwise. If the character is rotated 0 degrees and I press the rotate button, the ...
0
votes
3answers
288 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
0answers
14 views

Unity Android Build failed after adding admob

I am using Unity 4.7.1 and Google Mobile Ads Unity Plugin v3.0.5 After adding google abmob plugin , i cant take build . Following error is showing Error building Player: CommandInvokationFailure: ...
4
votes
2answers
2k 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
0answers
7 views

How to use OpenCV/EmguCV with Unity3d

I am beginners to OpenCV and want to use with Unity3d. I found different costly packages at asset store but i can't use it i.e., I want to try it myself and found EmguCV that provide openCV wrapper in ...
0
votes
0answers
24 views

car movement problem

i have use simple C# code for my car move. this: using UnityEngine; using System.Collections; public class mov : MonoBehaviour { void Update() { var x = Input....
-3
votes
3answers
56 views

How to make an OnCollision reset level script?

I am making a game and I want to make a script that if a player collides with the resetting object the scene will reset/reload.
0
votes
1answer
48 views

Can I use Unity remote with a Android emulator instead of Android phone?

Unity Remote is good app. It allows to connect with Unity while you are running your project in Play mode from the editor. But what if I want to test game but I don't have an Android phone? Yes, it ...
0
votes
0answers
7 views

File transfer between Unity clients [Photon]

I'm working on a project using Photon PUN for the multiplayer (using Photon Cloud servers provided from Photon) To provide context, i have player customizable graphics (which are kept locally - think ...
0
votes
1answer
18 views

Changing path if another gameobject is triggered

I have an idea of a ai controlled game which the gameobject will follow a path but it will change its path if i put another gameobject how can i do that plss help? Ex. game object constantly moving ...
0
votes
0answers
17 views

Unity detecting edge of mesh or end of mesh

I'm trying to create procedurally generated tiles and I've reached a point where I need to figure out the boundaries of the mesh or the outer vertices of the mesh. RaycastHit hit; if (...
0
votes
1answer
40 views

Is it possible to debug a Unity Android game directly on a device?

I'm working on my game and every time I make changes to it I send the game to my mobile device to debug it. I want to know how I can directly debug my game using an Android device instead of the ...
0
votes
0answers
11 views

Unity3D - Async Socket multiple message

I'm trying set up server/client communication using the asynchronous sockets on the MSDN example. I'm running into issues getting it to send and receive multiple messages though. I've tried sticking a ...
1
vote
1answer
19 views

Unity - How to serialize / show private fields and custom types in Inspector?

By default, Unity only serializes public fields. How can I serialize private fields and custom types to show them in inspector?
0
votes
1answer
150 views

What is the `AssetBundle` dropdown in the inspector for?

I know what an AssetBundle is alright. But what is the dropdown at the bottom right for? Apparently you can choose an asset bundle for this asset to belong to. So what? What happens when you choose ...
6
votes
1answer
9k views

ResolutionException: Cannot find candidate artifact for com.google.android.gms:play-services-games:8.1+

Getting this error: ResolutionException: Cannot find candidate artifact for com.google.android.gms:play-services-games:8.1+ Google.JarResolver.PlayServicesSupport.DependOn (System.String group,...
-4
votes
0answers
22 views

How to make a cleaning like dumb ways to die cleaning a vomit in unity for Android [on hold]

How can i make a dumb ways to die like game? https://youtu.be/DOXMzqHqNwQ?t=91 i know its masking but i dont know how to integrate it
-1
votes
0answers
30 views

What are the “hidden” limitations of Unity Plus compared to Unity Pro? [on hold]

Unity recently announced their new plans, which comprise of Personal/Plus/Pro/Enterprise. The scope of this question is to compare (carefully) the differences between the Plus and Pro licenses only, ...
4
votes
2answers
91 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 ...
0
votes
1answer
20 views

Unity: Build on specific wall of the box

I'm trying to program game similar to Minecraft - you build environment from cubes. So far I found that Unity has a function which tells if mouse is over a box collider. I need a function which will ...
1
vote
2answers
60 views

Unity / How to Hide “Editor Script” in the Inspector?

I want to hide the "editor Script" in the Unity Inspector, so it doesnt show up with all the other components (transform/other scripts etc.) It works with every other "normal" component like this: ...
5
votes
1answer
198 views

How can i convert non-canvas mesh collider object as canvas mesh collider object

I am new to unity i created a character object in Maya and stored it as char.obj, then i import the object in unity. the char1 object is not colliding with any other unity objects like cube, plane, ...
2
votes
1answer
216 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 ...
3
votes
5answers
3k views

How to reset the world in an infinite runner game to prevent an overflowing float?

Im following Mike Geig's 2D infinite runner tutorial. However, I'm seeing a potential problem of overflowing the float How can I reset all objects and camera back again to the origin? The approach I'...
1
vote
1answer
45 views

Swipe Detection with mouse in Unity

This is my swipe detection code. This code uses touch input. I want to do this using the left mouse button. So basically I want to 'swipe' using the mouse.How can I achieve that? public float maxTime;...
1
vote
1answer
2k 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); ...
8
votes
1answer
135 views

How to await async operations / coroutines?

I'm looking for a generic / reusable way to wait for coroutines and asynchronous operations to finish in Unity 5, similiar to C#5's await keyword. The simplest way I can think of is something like ...
1
vote
2answers
28 views

unity Tilt Android Device player Freeze When Die

I attached tilt script to my Player to move player x and y Axis. Player have Rigidbody2D and also IsKinematic=true. but the problem when the player can Die i want to stop tilting and player goes down ...
2
votes
1answer
524 views

Mesh fading to transparent

I have a 2D Mesh object generated at runtime painted all with uniform color. I want that mesh to have its color fade to transparent color close to the edges. Despite I searched everywhere I could not ...
1
vote
2answers
81 views

Help with Javascript touch button

I tried many buttons but I can't connect them with the (Java)Script. So I made 2 gui buttons: one for jump which was easy because I have an if statement and if it's true then jump. But I have ...
0
votes
1answer
116 views

2d Player animation issue in UNITY 3D

I have a player and i want to move the player from left to right. I can move the player by the keyboard events.but the problem is that when i release the key the player animation should be idle. ...
1
vote
0answers
36 views

Unity won't compile project successfully

I am trying to build the project into a Web GL, but it throws 3 errors when it reaches the "Building additional assets" stage. Error 1 Building - Failed to write file: resources.assets ...
-3
votes
0answers
46 views

First person bullet not shooting

Instead of spawning from the barrel the bullet just appears about halfway down my gun and just sits mid air? #pragma strict var PrefabBullet : GameObject; var speed = 100; function Update() { if(...
1
vote
0answers
30 views

Unity example project error

I just downloaded last version of Unity and it assets. But when I try to play example projects I get error! Unable to parse YAML file: [Control characters are not allowed] at line 0 Assets/Standard ...
1
vote
1answer
60 views

How do you render planets without distortion?

I've recently been working on a little spaceship flying sim in Unity and want to add planets. Up till now, I've been hand modeling them in Blender. But I want to have a way to generate large planets ...
-3
votes
0answers
48 views

Drag and Drop Functionality in Unity

I am new to Unity and I need to drag and drop objects to a grid in my game. Something like this: I googled it and found some things but they where not what I am looking for.
2
votes
1answer
248 views

UI Text Won't Change Color in Unity 5

In Unity 5 on Windows 10, I try to change the text color from the Inspector and in scripts, but the color won't change. Here are some screenshots of my Text objects open in the inspector, with there ...
5
votes
1answer
647 views

Fixing text on the screen for Oculus Rift

I would like to fix text to the screen for an Oculus Rift in Unity. The text should say something like "get comfortable and then press any key". It seems like OVRGUI.StereoBox should work for this and ...
2
votes
1answer
23 views

Unity Animation Tracking

Background I've recently reached a bottle neck in my game's code that forced me to completely decouple the logic/networking from the graphics. Thanks to the nature of my board game, I was able to ...
3
votes
1answer
276 views

Handling touch input with Event Trigger

I wrote a simple script to control my 'Player' object: using UnityEngine; using System.Collections; public class PlayerMovement : MonoBehaviour { public float jumpVelocity = 10; ...
1
vote
1answer
22 views

IsolatedStorageException : Could not find file

I'm trying to save/load player data from a file using the persistenceDataPath using the following code: private void Save() { if (File.Exists (Application.persistentDataPath + "/...
-1
votes
0answers
28 views

Which is better between animaion and Script for rotation

To Rotate a particular object in unity, which way is better? Rotating it by animation or by applying rotation from script.
0
votes
0answers
57 views

How to keep my player in center of path.?

I want to keep my player in center of the path. I have different paths like strait and 90 degree rotated. I want keep my player moving in center in center like temple run also when I rotate my player ...
0
votes
0answers
16 views

Can`t login in twitter with Fabric! [migrated]

I use fabric for Twitter Share function in my Unity game (Android). I follow all instructions, but I can`t authorize in twitter. But i have my app on dashboard in my fabric account! Full code: ...
0
votes
1answer
45 views

Best client/server architecture for a mobile management game?

For the past year I have worked on a small company that develops a traditional browser based strategy game, of the likes of Travian or Ogame, but using a more interactive approach like Tribal Wars 2. ...
3
votes
1answer
233 views

An invisible object that deletes anything behind it?

I am using augmented reality to put a 3D object on top of a "camera detected" object. The 3D object can be though of as leaves that go above the real world object but also fall in front / behind / on ...
0
votes
1answer
29 views

Raycasting against my plane does not detect collisions in Unity

I'm trying to keep the camera above a plane which acts as the ground, so I wrote this bit of code: RaycastHit hit; if (!Physics.Raycast (transform.position, new Vector3 (0, -50, 0), out hit, 5)) { ...
0
votes
1answer
430 views

Click to move - get NavMesh layer

I'm using NavMesh, and NavMeshAgent for my character movement and Pathfinding. I made a testing NavMesh with 2 area layers: 0 = Walkable 3 = Water. In have a click to move script, and i need to ...
1
vote
2answers
86 views

Collider not working

I have a 2D object (without a parent) with a 2d box collider (dimensions are not small) added to it and set as trigger when I place it in the scene it works just fine however when I instantiate its ...