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)

2
votes
1answer
67 views

Spawn skateboard under player

I would like to know whys in which one can spawn skateboard under player like we see in subway surfers. My best two guesses are, 1.Spawnning skateboard and then making it child of player. 2.Changing ...
3
votes
1answer
137 views

In unity 5 export package is not working correctly

I am using unity 5. I Created an objects with layer names. I tried to export a package. After Exporting, i import the package in new project and ran the project its not working. observed that objects ...
7
votes
1answer
488 views

Adding multiple game objects into a prefab

Is it possible for one prefab to contain multiple game objects, preferably in a parent-child relation. I am making a complex enemy that I want to separate into a couple of game objects with separate ...
7
votes
4answers
648 views

How do I wait to execute code?

I'm trying to make a relatively simple elevator (which essentially teleports the player), but I don't want it to instantly teleport them. I want the player to enter the collider, wait 2-3 seconds, and ...
1
vote
1answer
61 views

Inherited property in derived class reference only base class

[Context] I am developing a game in Unity, and wanted to make a Game Manager. Like many examples out there, it uses a Singletron design pattern. But i have several other Managers, all using Singletron ...
2
votes
1answer
72 views

How to render multiple displays in Unity

I have a scene (lest assume, large glass table I want to looking through) and I want to render with 4 displays (each 1920x1080). How can I set up camera for this, I want the "glass cube" to fill ...
2
votes
2answers
146 views

How to make your own 2D AABB collision system in unity?

I can't use the built in unity 2d physics engine for my game, so I tried to make my own using the unity bounds.Intersects, that is working perfectly but my problem is that I don't know how to make the ...
2
votes
0answers
72 views

using IK functions in MecAnim

The documentation on how to use IK functions clearly states that an Animator Controller with at least one animation for the character is required and then Layers pane, IK pass, etc... However, I ...
1
vote
0answers
66 views

How to get into game development? [closed]

I really want to get into game development and one day be able to make simple games that are enjoyable to play. I have very little experience in coding/designing. I would appretiate any help :) ...
2
votes
1answer
199 views

Unity 2D Sprite Bending between Hinge Joints

I've created a tentacle that consists of multiple game objects, each attached to eachother using HingeJoint2D's. Gameplay wise this multiple segmented approach is great because I can use Unity's ...
2
votes
2answers
167 views

How to embed unity webplayer built inside phonegap app?

After exporting my game made with unity, I got two files web.html and web.unity3d I want to embed this game in a phonegap app. I used this code: <object id="UnityObject" ...
2
votes
1answer
118 views

Jumping onto higher ground Collider issues

What's the general solution to the following character animation problem (I'm using Unity)? You have a character with a capsule collider and a jump animation that allows you to jump onto higher ...
3
votes
3answers
476 views

Unity - Tiling of a material, independen of its size

I am using Textures and Materials to tile my sprites, for instance when building a wall in my game. The problem with this is that everytime I resize the plane or size of my game object I have to ...
3
votes
0answers
259 views

Input.GetAxis(“Horizontal”) not updating

I'm having trouble with Unity's basic character controlling. After i implemented the crouching in the code below the Input.GetAxis("Horizontal") does not update (while the left control is pressed ...
-2
votes
1answer
56 views

Where to put the script? [closed]

I watch this video https://www.youtube.com/watch?v=Uhnh8zj_VPo and my question is where to put the script? I'm a complete noob here but I've at least build a map and moving player character. Yes, ...
1
vote
1answer
55 views

How would I load a new scene when a score that is stored in a string is reached?

This is a code that I am working on for a space shooter. Part of it works and my score does increase by 7 every second while being loaded into a GUI box, but my script does not load my scene when the ...
1
vote
0answers
45 views

Spawn platform based on player location

I am trying to make an endless platformer game. I have made a lot of progress so far. I now want to be able to change platforms when I take an object(power-up or something). I modified my platform ...
4
votes
1answer
72 views

Explain Mesh.MarkDynamic

As the reference page says, this function/method is used to optimize a mesh for frequent updates, but the description seems a little bit unclear. What should I consider before using it in my code? ...
5
votes
1answer
135 views

Why don't objects far away from the camera experience floating point issues?

In Kerbal Space Program, a space exploration game made with Unity, Floating origin technique is used to overcome the floating point precision issues. While in map view, the world (a scaled space with ...
2
votes
1answer
530 views

best way to destroy an gameobject in unity

MissingReferenceException: The object of type 'GameObject' has been destroyed but you are still trying to access it. Your script should either check if it is null or you should not destroy the ...
3
votes
0answers
88 views

Unity 5 - custom lighting model

I have tried to use my own lighting model in surface shader in Unity. But there is a problem. If I init my own lighting via #pragma surface surf _SimpleSpecular Lighting_SimpleSpecular method is ...
1
vote
0answers
58 views

Unity Animator/Collider Default Property Issues

How do you use Unity's Animator when dealing with animation curve values that have a default value and the default value causes jumps in animation transitions? I have a bit of a complex problem with ...
3
votes
2answers
495 views

Unity 5 - What is the proper way to handle data between scenes?

I am developing my first 2D game in Unity and I have come across what seems an important question. How do I handle data between scenes? There seems to be different answers to this: Someone mention ...
3
votes
1answer
122 views

create a seamless room

I'm trying to create the effect of the second picture below where there is no seam between the floor or wall. An effect that is typically used in studios by having a curved wall. This way it looks ...
0
votes
1answer
108 views

Stop detecting Input in Unity?

How can I stop detecting input from the user in Unity? I want to achieve the following: "do not detect Input.GetMouseButtonDown" In C#?
3
votes
1answer
113 views

Can I integrate Unity 5 with the 0.6.0 runtime for Oculus DK2?

I am a new user and I am trying to get the Oculus running on an old PC. I had a few issues with the latest SDK so I am currently using the 0.6.0.1-beta version. I would like to integrate Oculus with ...
2
votes
2answers
75 views

How do I make my character change his ability's when his sprite changes

I am making a platformer and am currently trying to have it so that my character will have different powers based on his emotions, and his sprite will change to match those emotions. I have got it ...
4
votes
1answer
226 views

Unity3D multi-threaded data importer?

Goal I would like to be able to separate all my data file readers from the main thread and balance the load over multiple frames. The idea being that while the data is being read/parsed/filtered I ...
-5
votes
1answer
215 views

Check elapsed time in Unity?

How can I check the elapsed between two intervals? I want to do the following: "start time counter when Input.GetButtonDown("Fire1") , stop counter when collision is detected` And then Debug.Log the ...
1
vote
0answers
93 views

Character Movement and Collision with Ragdoll Rigidbodies/Colliders?

I have a player character that I'm moving with a character controller script and it is moved by applying velocity to a Ridigbody. This works when I have a rigidbody component on the player but my ...
1
vote
2answers
63 views

Wall checking not working correctly

Basically I am working on side scrolling 2d game. For that I want to check whether player is collided with wall. I have written some code for it but can't able to decide where I have done stupid ...
2
votes
0answers
102 views

Changing AnimationOverrideController “sometimes” fails - Unity 5.2.1

I have the following code, in a menu where you can chose the armor and weapon of a character: private List<string> armors = new List<string> { "armor1", "armor2", "armor2" }; private ...
1
vote
0answers
144 views

Streaming 3d model --> unity android

I want to include a feature in my game that allows me to host raw 3d models (.fbx/ .obj/ etc., not AssetBundles) on a server. The game should download these files, save them to the device and load ...
1
vote
1answer
29 views

Trying to make a respawn trigger, but any rigid body (or collider probably) keeps triggering it. Any ideas?

I'm trying to make it so that if any object passes through with the matching tag it will reload the level. However, any rigid body (or collider) is setting it off which is not the desired behavior. ...
1
vote
0answers
140 views

How can I shoot an arrow if I know the shot power and target?

I am trying to shoot an arrow at a target with a 100% success rate. Given the initial force applied to the arrow, the gravity, the location of the archer, and the location of the target, how can I do ...
1
vote
2answers
97 views

Limit buttontext to one line in Unity?

I have many buttons in my game. There are different texts on them every time. But some texts are too long and get split up into two different lines. Is there any way I can fix this without resizing ...
2
votes
2answers
168 views

Unity Ragdoll Colliders don't collide

I have a humanoid character with Ragdoll setup in Unity. However the box/capsule colliders on the various parts of the body don't collide with other static geometry. They do collide with the ground ...
3
votes
1answer
484 views

Unity XCode build linker error

We are trying to build a Unity game in Xcode but keep getting this error: ld: ...
2
votes
1answer
109 views

How do I set the Jump distance and height of my sprite in C#

I have been able to make my sprite jump for a platformer I am making in unity. I can't seem to be able to make him jump a certain height or distance though, every time he jumps it's like he's jumping ...
2
votes
2answers
146 views

Unity trigger timer

So essentially I'm attempting to implement a "security" system by using an object with no mesh collider to act as an invisible trigger (stretched across a doorway or something) which sets off an ...
1
vote
0answers
335 views

Unity 5 light reflection on the water surface

How to adjust reflection in Unity 5 to show up it on the water surface. So I have few light elements in the scene. So I want my water pro to reflect this lights. As example you can see red and yellow ...
1
vote
0answers
54 views

Collision issue [closed]

I have a player who i control with tilting. Also i have some game objects (something like ground or areas where player can not move). The problem is that if these objects are too small the player can ...
2
votes
1answer
149 views

Unity3D Joystick Buttons Xbox360 & PS3 have Inconsistent Button Inputs?

I've been browsing through Google and researching button inputs in Unity, and I came across this page. When looking at it I noticed that the B button on the Xbox360 controller is set to Button 1, but ...
1
vote
1answer
53 views

Why the skyline continues to stay on the same place and how to change this?

I started my first Unity3D project and in this game main hero should be able to fly up passing clouds and then reaching open space but i faced with the problem. No matter how long and fast i am flying ...
3
votes
1answer
109 views

How to write a custom shader in Unity 3D that lights up a specific pixel or group of pixel?

I'm making a FPS game in Unity, and I want the environment to light up as the player is shooting on his environment. The map would be entirely put in darkness at the beginning, but as the player ...
2
votes
1answer
178 views

Texture tearing with UV texture atlas mapping

The following code maps the texture from a texture atlas to a UV. The problem is I'm having texture tearing issues. Does anyone know how to overcome this problem and have any suggestions? Here is the ...
3
votes
1answer
70 views

Play Audio After Countdown In JavaScript

Is there a way I can have an audio sample play after a certain amount of time, like 3 seconds in JavaScript? I've looked everywhere and can't seem to find what I'm looking for! I'm very new to this ...
1
vote
0answers
156 views

UE4 or Unity or Libgdx for VR project using Oculus rift and Novint falcon

I've to make a multiplayer game Air Hcokey using 2 Oculus rift and 2 novint falcon controllers , I know that these 3 engines support the Oculus Rift but have no Idea if they do support the Novint ...
2
votes
1answer
303 views

Animation conversion failed: transform for bone not found?

I'm trying to animate my first humanoid, and the animations in the Standard Assets pack (HumanoidIdle etc) work really well right out of the box. However, when I try to use other fbx files, like those ...
2
votes
2answers
69 views

Creating a delay by using Invoke

Is it possible to delay the effects of a script that is attached to a game object? I have 2 characters in a scene, both receiving live motion capture data, so they are both animated identically. I ...