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
vote
1answer
97 views

Unity3D Sprite tearing on Android Smartphone

The game was running on Samsung Galaxy Trend 2. On other smaptphones and emulator it seems running properly without glitches. Sprites import settings are following: Could someone explain why ...
3
votes
1answer
80 views

How can I use shaders in Unity to write a scientific computing program?

I want to write a GPU shallow water code on Unity3D. For sure, performance matters a lot. I've done this before using DirectX and C++. But for a couple of reasons I want to redo it in Unity3D. I ...
2
votes
1answer
169 views

Attach to a GameObject after collision? [duplicate]

How can I make a GameObject attach (or "stick") to another GameObject after collision? The problem: I want the GameObject to attach after collision even if it changes scale. What I have tried: ...
0
votes
1answer
513 views

How to animate child from parent in the Animation view?

For some reason I can't change the value of the scale properties. The scale properties belong to a child object, and I added them with "add Property". What I'm trying to do is, adding an Animation ...
1
vote
1answer
115 views

Duplicate a Prefab as a separate asset in Unity 5.2 [duplicate]

I have a Asset which is a collectable object [Pickup] and I currently have eight in my scene, I'd like to duplicate this asset and use it to harm the player [Bad Pickup]. I decided to duplicate the ...
1
vote
1answer
66 views

Screen transition effect like subway surfers

I would like to know how can I achieve this kind of screen transition effect ? The effect is screen independent. https://www.youtube.com/watch?v=Muh7QFisCfE#t=01m57s
0
votes
2answers
75 views

the half of the screen does not seem to work correctly

I am not such a professional coder but trying to code something on Unity. However, when I try to play the application in my android phone, the half of the screen does not seem to work correctly: ...
0
votes
2answers
210 views

How to handle multiple enemies with the same script?

i'm working on a basic Top-Down Shooter, kind of like... Nuclear Throne or The Binding of Isaac, but since i'm new to Unity, and it's something i'm required to do for school, i'm quite in a rush so i ...
1
vote
1answer
71 views

Prevent character's animation from causing its mesh to interpenetrate itself

I'm making a game with a pretty large group of people that respond to things the user does. They all have the same animator attached, but the animations that play differ using a script with a ...
1
vote
1answer
179 views

How to deal with inconsistent network delay caused by packets arriving at different times in the frame?

I'm developing a multiplayer game that does not have prediction. It implements client-side interpolation. The problem with this is that input delay can be perceived. I've measured the various times ...
2
votes
3answers
83 views

Unity - hierachy organisational methadology

I'm just getting into unity, so I do not know if this system of organisation will have any negative consequences. I intend to store my project files and assets under an assets directory then into ...
3
votes
1answer
641 views

Triggering animation in character OnTriggerEnter?

I've been stuck on this for hours. I have a character whose animations are based in mecanim to transition based on the bool variable ShivaEnter. One invisible cube is set to change the bool value ...
-2
votes
1answer
231 views

Add them as submodules from Git Shell or remove their .git folders. I tried the latter, but don't know to do the former. How do I do that? [closed]

I'm trying to set up version control for my group, but I'm having trouble getting GitHub to work (I'm brand new to it, and version control in general). It keeps saying "Could not commit sub-modules: [...
-3
votes
2answers
122 views

Smooth GameObject Rotation

I want to rotate a 3D GameObject from 0 degrees to 180 degrees on the Z axis smoothly at a speed that I can define. How can I do this?
3
votes
2answers
170 views

How to avoid Walls in A*

Well I had a problem with the implementation of my A* algorithm in C# for unity, and I don't realize how to prevent the diagonal movement and the cross walls, I had the next code, the print line's are ...
2
votes
1answer
337 views

Unity Profiler - What would cause PlayerEndOfFrame to have 10-16MB in GC Alloc?

I can't find much documentation on what "PlayerEndOfFrame" does. Sure it is the end of a frame but what would cause the GC Alloc to go so high? This is the profiler results from a debug build on a ...
2
votes
1answer
141 views

Why doesn't Array.Copy to mesh.verticies work in Unity?

I am rebuilding a mesh but something seems odd that I have to create a temp array just to hold the verticies rather than copy an array. I'm not using list because this is used frequently and I do not ...
2
votes
1answer
66 views

Refill lives after application exit

I try to implement refilling lives functionality after exit application. Every live is refilling after 25 minutes, but unfortunately only if the user is in the game. Here is the sample code: private ...
2
votes
1answer
44 views

Finding vector from a vertex to a plane

I am trying to implement Dual Contouring, following serveral sources, mainly http://www.sandboxie.com/misc/isosurf/isosurfaces.html but now I want to implement finding the feature point as explained ...
2
votes
2answers
3k views

Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details

I get following error while building to Android with Unty 5.2.2f1 (with a new&clean project). Notes: I use GPGS 0.9.27 and Soomla Core 1.2.1 and Profile 2.2.1 and maximum supported Facebook ...
0
votes
2answers
413 views

Using Unity's `transform.translate()` to translate relative to an object but only using two axis

I'm using transform.translate() to move an object around the world space, relative to the camera that is following it. The camera has an angle of 23 degrees on the X axis. The problem is that when I ...
-2
votes
2answers
77 views

Increase Y position on MouseButtonDown?

How can I increase the altitude of a GameObject as long as if (Input.GetMouseButtonDown(0)) is activated? "The longer the button is pressed the higher the GameObject goes." I also want to show the ...
0
votes
1answer
212 views

How do I organize and sync multiple animated sprites in Unity2D?

I have a human with three parts: legs, body and head, 2D, top down view (GTA 1-2 alike). Head does nothing, legs have walking animation and body has 2 animations: walking animation (moving hands which ...
6
votes
1answer
8k 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,...
2
votes
1answer
15 views

How To Find Out Which Package That Asset Belongs To?

I have just messed up my project with some conflicting plugins, so i need to clean all plugins and reimport them, but i can't make sure which files to delete. So how can i find out which package an ...
0
votes
1answer
136 views

Unable to rotate GameObject properly?

My GameObject is able to jump towards a moving target (another GameObject), thus adjusting its trajectory - while simulating gravity (as in the .gif). I want to make the "jumper object" rotate. But ...
0
votes
0answers
43 views

Moving a RigidBody via camera vector?

I have a third-person/first-person controller that moves a character via rigidbody. In 3rd person this looks alright but in first-person this movement is sub-par because the camera jitters and one ...
1
vote
0answers
110 views

Multiplayer turn based Android/iOS [closed]

We're developing a mobile endless runner game, on Unity3d where you can challenge your Facebook friends. The only interaction between the players is the challenge - one player challenges the other, ...
3
votes
1answer
254 views

Bouncy Ball stops without enough force

I am building a 3D Pong clone and want to implement a frictionless bouncing ball. These are the steps i took: Create a box in which the ball can bounce, consisting of standard cubic objects. Create ...
4
votes
2answers
682 views

How to place grass on custom terrain mesh

I made a custom terrain mesh and textured it, now I want to place grass on it, but I don't know how. I only find info about grass with the unity terrain. I am not even sure what exactly to look for. ...
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
153 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
598 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
653 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
67 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
74 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
163 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
80 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
67 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 :) Thanks!...
2
votes
1answer
213 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 built-...
2
votes
2answers
199 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" classid="clsid:...
2
votes
1answer
129 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
655 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
295 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
59 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
46 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
88 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
142 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
761 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 ...