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)

-1
votes
0answers
17 views

limit rotate of C# script in unity3d [on hold]

How can I add the following code limits the rotation ? For example, from y : -80 to 80 would be more spin. script from WeaponSystem: public class AILook: MonoBehaviour { public string[] TargetTag =...
1
vote
1answer
32 views

How to follow a car with correct rotation

I am making a game where car will follow a user car. I am moving use car using keyboard keys it is working fine running on my game environment roads smoothly. To follow enemy car i am using nevMesh, ...
0
votes
0answers
29 views

What is the more efficient way of implementing 3d TD maps

This question is more on the design aspect than coding. I am working on a 3d tower defense game, where essentially each map is built on a 27x37 grid (not using real units), filled with walls(cubes ...
-1
votes
1answer
33 views

Moving Platform

(Help me Google Translate) Hello everyone! I made moving platform from this video. Video but I have some trouble and when my hero stand on platform he have some strange vibration. Script ...
0
votes
1answer
32 views

UNITY3D How can my capsule rotate with my camera?

I'm new to 3D game development in Unity. I'm using Unity5. I've created a first person character controller that can move using WASD and I've created a crosshair along with a mouselook script. Here's ...
-1
votes
0answers
16 views

How do you understand Unity3d Scripting errors? [on hold]

So there are these things in Unity called "Compiler Errors" which is a message you get if you have an error on a JS or C# script, it would also "Give you an explanation" to what's wrong with it, I ...
1
vote
1answer
19 views

Stuck on walls or sliding on top dilemma

I'm making a 2.5D platformer game. I earlier had problem with my character getting stuck on walls when holding the forward button. I solved this problem by adding a physics material with zero friction ...
1
vote
0answers
18 views

How to manage this problem in a multiplayer client-server game with Photon ?

Good day. I'm developing my first simple game, a racing car, using Unity and Photon. In my game there are a function that generate random Bonus on random position each (for instance) 5 seconds. ...
1
vote
0answers
26 views

How do you solve where the camera should be on a bezier curve depending on player? (camera on rail)

I am writing a game where I require a camera on rail; That is, the camera's path is fixed and follows a bezier curve. However, I cannot find any resources online for solving the closest point on a ...
0
votes
1answer
25 views

Massive CPU Usage by WaitForTargetFPS in the Profiler

So I was checking the Standard Assets Example Projects of Unity, and they all have high FPS numbers in the Profiler. I started a little project myself, just a simple sprite with movement via ...
2
votes
1answer
31 views

Unity - resizing particles dont mantain collisions properly

I am trying to make particles for blood on death. This is what I got so far: Which looks fine and all. But now I also wanted to make the blood particles turn smaller over their lifetime, so I ...
3
votes
0answers
23 views

How to imbed one Unity project into another?

I'm creating an AI course in Unity. With regard to my question, there are two important properties of the course: Each tutorial is a separate Unity project that can be loaded up, allowing the ...
0
votes
1answer
19 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
1answer
12 views

Why does SpringJoint2D in Unity 5 doesn't have a configurable spring force like SpringJoint does?

I'm working in unity 5.3.4f1. Looking at the SpringJoint2D class I can't seem to find a similar "spring force" as in spring in SpringJoint. Is there any other way to make a spring stronger in ...
0
votes
1answer
13 views

Add points to a prefab in Unity

I have a prefab that looks like this: I have created a couple of 'points' in the Hierarchy using 'Create Element' and I would like to attach them to the prefab, however drag and drop over doesn't ...
3
votes
1answer
33 views

Respawn not working properly upon scene reload. Why is this?

So I made a respawn function and what is supposed to happen is the script it supposed to load a saved checkpoint. However I need to reset the scene (and again this worked just fine last night which ...
1
vote
1answer
23 views

How to make a visible area in unity3d

the simple way to explain it is an image I want to have a black background and to show only a small area around player. Which way I have to look? I have no clue where to start searching :) Thanks.
1
vote
2answers
43 views

How to create Half hemisphere 3D model

I already have an hemisphere.obj 3D model. But I'm trying to build a half-hemisphere (quarter sphere) model. How can I do that? What is the easiest way to do that? Generally, is there any easy way to ...
1
vote
4answers
46 views

How to find nearest gameobject on one side

Here is an example: The left enemy robot is closer than the right enemy robot, but I want the character to attack the robot that is closest to him on his right side. I can't use Physic.SphereCast ...
0
votes
0answers
16 views

Unity 5: Turn slippage in Rigidbody + Capsule Collider which disappears with addition of Character controller

I play the animation from the raw mocap data with my character loaded into the sample window animation...however, the character slips when turning. The current configuration is capsule collider + ...
0
votes
1answer
33 views

Combining lots of small polygons to one (some) big poly(s)

I am looking for algorithm to merge lots of relatively small 2d polygons to one or some big polygons. In case two small polygons are touching or overlapping, they should be merged to one polygon. My ...
0
votes
0answers
27 views

Zoom camera on player

I am developing a simple side scrolling game. I want to target and zoom camera on player when he dies. But it rotates the screen, and I want to prevent it. I'm copying the snippet of code here : ...
0
votes
0answers
25 views

Unity C# - The object of type 'Object' has been destroyed but you are still trying to access it

I have a cube on a plane and I'm tring to move it to certain locations. I've baked the area and added a navmeshagent to the cube. My moving script for the cube looks like this: using UnityEngine; ...
1
vote
1answer
38 views

Can't access properties of a class

Sorry for the bad title, but I couldn't think of a way to word my problem for a title. So I have this script, with two classes: using UnityEngine; using System.Collections; public class GameItem { ...
0
votes
0answers
17 views

How to force download unity asset bundle using php?

I am downloading asset bundle using <?php $file_url = 'http:XXXXXXXXXX.com/AssetBundle/bundle-numb'; header("Content-Type: application/octet-stream"); header("Content-Transfer-Encoding: Binary"); ...
1
vote
1answer
33 views

Should I slow down my animation with co-routines or update the animation state?

I want to gradually stop the car animation as it collides with another car gradually speed up the car animation as it exits the collider I have two ways to achieve this. Update Co-routine For ...
1
vote
0answers
25 views

Map video texture to a half sphere in Unity

I'm new to unity3D. and am trying to play a 360-degree video. But instead of mapping the whole 360-degree (equirectangular) video to the whole sphere, I need to map the half-video to a half-sphere ...
2
votes
2answers
56 views

With Unity and Mecanim, how do I trigger an effect animation?

We have a Mecanim animation. We'd like to play a particle effect on it at a certain frame in the animation. Do we need to use an AnimationEvent and have it call a function that triggers the effect? ...
0
votes
2answers
73 views

How do I make a game over screen like Temple Run or Subway Surfer?

When you die in one of these 2 games I took screenshots of (Temple Run and Subway Surfers), what exactly comes up to say "Game Over" and posts your score and all-time high score? Is it a different ...
0
votes
1answer
38 views

What is the difference of target frameworks for unity3d?

In Visual Studio in properties I can change target framefork. I cannot find anywhere what means all of these magic titles. What does it all mean (full, micro base, subset, web base)? And...Can I ...
1
vote
1answer
62 views

How my bullet can take HP from enemy?

using UnityEngine; using System.Collections; public class GunScript : MonoBehaviour { public Transform barrel; public float range = 0f; public Rigidbody myBullet; void Update() { ...
1
vote
0answers
26 views

Unable to control trigger events for car animation collsion control

I have different car animation running on the road which have imported from max. I want to make such an intelligent System that if car start to trigger from another car it become stop. So far I have ...
1
vote
0answers
20 views

Unity Event after Layout update but before OnWillRenderObject()

Looking for subscribe-able event that occurs right after Layout update in Unity but before OnWillRenderObject is called. Working solution is Canvas.willRenderCanvases, but useful to know if more ...
3
votes
1answer
79 views

Dragging text element into Text variable unity 4.6

So I was trying to make a UI element to keep score in a unity (4.6) project and I'm having trouble assigning the 'Text' element to the Text variable. So I have the text element with the script ...
1
vote
0answers
30 views

Export UnityProject inside Android Studio's existing project

I am new to the Unity3D, but I have made a small Unity project with a humanoid gameobject. I can move this humanoid with the demo data but I want to move it with the quaternion data which I am already ...
1
vote
1answer
41 views

Best approach for destructible car in Unity

I'm developing a simple racing car game. I'm wondering what is the best approach to manage visually car destruction. For instance: i think one option (expensive) is to build car 3d model with '...
5
votes
2answers
58 views

Force Reload VS soution Explorer when adding new c# Script via Unity3d?

When I create C# script (Create -> C# Script) via Unity3d or delete it from Unity3d - Visual Studio shows me the warning window. it's annoying. Is there any way to force "ReloadAll" in ...
0
votes
0answers
34 views

Leaderboard setup for Android

I am totally new for this setup. I am trying to implement google Leaderboard. I followed the step by step process showed in "This Link". i opened windows -> Google play games -> setup -> Android setup....
1
vote
0answers
14 views

How can I change existing hierarchy in Unity regarding animations?

I made a bunch of animations in Unity. Now I need to adjust the hierarchy. For example: My animator used to change things in this tree, where the head, legs, and arms were animated: Player -->...
1
vote
4answers
89 views

How can I determine which Trigger is hit?

I have a GameObject. It has 3 BoxCollider2Ds: Body Collider - Not a trigger - Determines if body is hit Weapon Collider - Trigger - Determines if weapon is hit Vision Collider - Trigger - Determines ...
2
votes
2answers
67 views

object smooth orbital limit around another object depending on mouse drag

I am working in Unity. I have special objects that can each be dragged freely around in 2d. The objects cannot get too close to other objects (minimal Vector3.distance allowed is 1.5f). I also have ...
1
vote
1answer
22 views

Unity WheelCollider motorTorque acceleration with ps4 triggers

I'm fairly new to Unity and i'm struggling to find some answers. Every car script and wheelCollider tutorial I can find is based in the horizontal and vertical axis and that works great. But I'd like ...
1
vote
1answer
22 views

Anyway to change the property of a existing animation to another type?

The title pretty much says it all. Take this rather simple animation I would like to reuse this same animation in a UI element but for that I have to animate the Image component and not the sprite. ...
1
vote
1answer
26 views

Modify texture of sepcific area of Terrain in unity

I am developing a farming simulator 3D game in unity. I have a crop field on terrain which is actually a texture paint in square to show a crop area, and i have to perform sowing (prepare field for ...
3
votes
2answers
88 views
+100

Gfx.WaitForPresent performance issue

I am making a 2D mobile game and it runs really well (60 fps) on my phone. However, in some cases the performance goes down drastically to the point where it runs at 20 fps or even less. It happens at ...
3
votes
1answer
27 views

Unity and Thread for Reading UDP

I have a GameObject that reads sensor data coming in over UDP (formatted as JSON). What I am observing in that my handshake (dataReady) is getting cleared by the Update() cylcle fast enough, and I am ...