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
0answers
9 views

How to sync animations of 2 different characters in Unity 3D?

I am working on an endless running 3d game. I have 2 characters. One of them is a small kid and another one is a security guard. Both characters and animations are exported as separate FBXs. The ...
0
votes
0answers
15 views

How can I learn Java Script easily in Unity 3D [on hold]

I have been making games for a bit now. But I have very low skills in making them. I work with Unity 3D and it uses 3 programming languages. I want to learn Java Script. I know the basics like ...
0
votes
2answers
32 views

What do “position.transform” and “Input.GetAxis” mean in Unity?

I am making the transition from Game Maker to Unity, but I feel lost when I look at Unity's programming. When I followed a tutorial to make basic movements, I had this code: public Vector3 ...
0
votes
0answers
14 views

Unity3d building troubles [on hold]

I have some problems with my 2D game made by Unity. UWP builds works good on PC, but on the windows phone some of sprites deform, not by scale. Moreover, when I tried to install UWP package on Chuwi ...
0
votes
0answers
16 views

Physics Object on Client moving too quickly in comparison to the Server: Should be a copy

I have a client server scenario. On the Server a force is applied to a 2d object. I want the client to copy the movements of the server but not through constant positional updates. My current approach ...
0
votes
1answer
26 views

Moving script not working after SetActive/Pause change

I have a pause menu for my game which instantiates a texture and sets a text frame to active and slides both objects onto the screen using the code below: Instantiating the menu texture and ...
-1
votes
0answers
30 views

How to access a Steam Leaderboard using the Steamworks.NET C# Wrapper?

I'm using the Steamworks.NET C# Wrapper for Valve’s Steamworks API to enable Steamworks features within a Unity project. But there does not appear to be any documentation on Leaderboards for ...
0
votes
1answer
35 views

How can I simulate tapping on touch for Android?

I'm searching on Input.Touch properties to find how can I simulate tapping on touch for Android. Something like Input.getmouseButtonDown() on mobile.
2
votes
1answer
78 views

Programming strategy to handle big programming project in Unity3d [on hold]

Almost three months ago! We started a big Tough project and still it is continue almost done, some bugs, some logic issues and some redundancies in code. Its a Unity3d Project. Every ...
0
votes
0answers
33 views

How to create a dynamic Map in Unity (Augmented Reality)

I created a dynamic map with a LineRenderer. The LineRenderer gets a new position assigned, for each movement my 'character' does. It works good, but I expect it to get a really bad performance at ...
0
votes
0answers
12 views

Automate Material assignment and imported texture size setting for Unity 5

I work in Unity 5. Is any way to automate Material assignment on several models at 1 click (not to drag and drop on every one) and set default imported texture size to 4k (2k is default usual). I ...
1
vote
1answer
30 views

Put a coroutine on potentially infinite loop

I have several coroutines always running. I want to put these coroutines on hold as I set the game to pause mode. Consider the content of these coroutines as follows while (timeleft > 0) ...
3
votes
1answer
60 views

Why flip sprites instead of creating extra assets?

Why is the preferred method for changing the direction a character is looking in a 2D game a sprite flip? Why not just create the extra asset and show that one on screen?
0
votes
0answers
13 views

Saving issues Unity? [on hold]

I am testing this on an Android device and I cannot save the High Score locally properly. What's the problem with my code?
0
votes
1answer
23 views

How do I interpret the differences between the “Time” and “Self” columns in Unity's profiler?

I'm not quite understanding how to read the results of the profiler: A method Pathfinding_NodeAdjuster.CheckSpecificArea() method is using up 94.7% of the BehaviorUpdate overall time, while taking ...
-7
votes
1answer
53 views

Should my all team mates learn the engine [on hold]

I have 5-10 people in group, we want to develop a game. My question is do graphic artists need to learn Unity game engine as well.
1
vote
2answers
96 views

Pausing the game

I've had a look around and kept finding about using Time.TimeScale = 0 to pause the game, although this is the normal way to do it, it is not exactly what im looking for. When my menu button is ...
1
vote
1answer
79 views

Ways to improve endless racing traffic

I am looking for ways to improve my traffic AI for endless racing game. Currently, I have hard coded situations where randomly cars will be spawned ahead of user bike depending on position of player. ...
0
votes
1answer
67 views

Unity 2D Diablo style movement

I've made a totally new scene for a 2D mobile game. I placed a sprite on the center of the screen and attached the following script onto it (this is basically a diablo-style click-to-move control ...
0
votes
0answers
28 views

Play multiple animation on same object at same time (Unity) [on hold]

I have created two animation for the same object, lets say fly animation and forward animation, but I want to play both animation simultaneously. I've researched for it, and I get something like using ...
0
votes
2answers
71 views

How can I prevent 2D teleportation from teleporting through solid objects?

In my 2D game, the player is able to teleport to any place on the screen with the click of the mouse button. What I am trying to prevent is the ability to teleport across solid objects. If the point ...
1
vote
2answers
44 views

How do you freeze your cursor in Unity?

In a typical MMORPG, when I hold down the right click button and drag, the cursor disappears and stays in the same position. How does one do that?
-2
votes
2answers
47 views

How solve 400 Bad Request error in unity? [on hold]

400 Bad Request UnityEngine.Debug:Log(Object) FBScript:DisplayUserName(IResult) (at Assets/Script/FBScript.cs:63) Facebook.Unity.c__Iterator1:MoveNext() (at ...
0
votes
0answers
43 views

Question for my Interview for game artist [on hold]

i had a question about gaming. I have soon a interview for game artist in a school. I need to draw, but not Manga/Anime-Style, do you have any tips for me for what I can draw? i want to study game ...
0
votes
1answer
32 views

Animation timeline organization for Unity 5

I create stuff for AssetStore and use 3ds max and Unity 5. Can someone tell me how I need to work with timeline? When I create animation for several objects, I need to animate them one by one? ...
0
votes
0answers
9 views

Unity Networking dedicated server hosting multiple game instances

I am making a multiplayer game on Unity that uses a dedicated server for the networking needs. From what I found a dedicated server is simply you Unity game compiled headless which only allows one ...
0
votes
0answers
16 views

Error with Instantiate? [on hold]

I'm getting error with this code: var myNewSmoke = Instantiate (cube, temp, transform.rotation); myNewSmoke.transform.parent = gameObject.transform; error: Type ...
0
votes
0answers
32 views

Absurd issue with Vector3.Distance [on hold]

I am encountering an extremely absurd phenomenon. When I run this code on my smartphone via Unity Remote or even on the computer, it works as expected. But when I install the APK on the device and run ...
-1
votes
1answer
43 views

Detect the position of the mouse press? [on hold]

I am encountering an extremely absurd phenomenon. When I run this code on my smartphone via Unity Remote or even on the computer, it works as expected. But when I install the APK on the device and run ...
1
vote
1answer
33 views

How to fix this unexpected movement?

I am facing a problem below is the detail. There are two scripts(actually more than two but these have the problem) Cannon.cs and Launch.cs and three buttons(up, down, and launch) to move cannon and ...
0
votes
1answer
35 views

Unity UI, how to hide on play

I have created a menu on Unity using the built in UI components,I can't create this on a seperate scene because I used the toggle button, which basically when you click it, it spawns a specific object ...
-4
votes
0answers
32 views

How to generate random bonus point in unity?

I make a 2D unity game like flappybird in my game I generate obstacle it work proper but i also generate bonus point between two obstacle but random position ,so how i can do this......
1
vote
1answer
28 views

Unity sidescroller with 3D objects/environment. Should I create a 2D or 3D project?

I'm looking to make a side-scroller in which the camera and all objects can only move in the x and y directions. However, I'm going to have all objects and environments as actual 3D models. Is it ...
0
votes
0answers
14 views

Preventing a NavMesh agent from moving Diagonally?

I'm currently working on a topdown game that uses 3D models. I am planning on using the NavMesh system in Unity to handle the movement of my NPCs, however, the NavMesh agents move diagonally when ...
0
votes
0answers
11 views

Physics related actions for interfaces of IPointerDownHandler, IPointerUpHandler vs. FixedUpdate in Unity?

I've been reading anything physics related in Unity should be handled in the FixedUpdate() call. Is this also the case when you implement the IPointerDownHandler and IPointerUpHandler interfaces and ...
0
votes
2answers
58 views

Unable to move GameObject?

This simulates a GameObject swinging between two positions. I am unable to manually move a GameObject on the Y axis using the Unity editor (in scene view) when the following script is attached and ...
0
votes
0answers
19 views

Browser Multiplayer Game - Where to start? (Newcomer) [closed]

I am currently working on a game, which the end goal is for it to be a multiplayer game on Browser. I am pretty fluent in C# and have been coding for almost a year. I would be fine learning new ...
0
votes
0answers
24 views

Getting error with transform.position? [closed]

This simulates a GameObject swinging between two positions. I'm getting this error when I run the code below: error CS1502: The best overloaded method match for ...
3
votes
1answer
75 views

How do I “teleport” an object in Unity?

I'm trying to make a script where once a player triggers a collision they are teleported to another position that is determined by a empty game object. I think it has to do something with the ...
1
vote
0answers
20 views

Translate D3DXMatrixLookAtLH to Unity compatible code

I am currently trying to port a really old Game (I have the source of it) to Unity as a fun project. And I'm currently stuck with the object rotation techniques in Unity compared to the ones used in ...
0
votes
0answers
40 views

My Movement Function is working good but called only once

I have a function, It's working but not getting called every frame if It's in canMoveDown function but !canMoveDown its not. if (!canMoveDown && UpdateTilePhysics(currentBoardPiece)) like ...
0
votes
2answers
54 views

Unity UI Problems

I am using unity UI for the first time and trying to create a level selection menu just like angry birds. I had successfully created the dynamic level selection menu it was all good in the inspector ...
0
votes
0answers
23 views

Create multiple object with for loop [closed]

Like in question, I want to create multiple object from the same prefab in for loop. Something like this: for(int i = 0; i < 4; i++) { GameObject Orb = (GameObject) Instantiate (OrbPrefab, ...
0
votes
1answer
47 views

Combine Unity games in one app

I want to combine multiple Unity games in one Unity app (or other framework if necessary). This app would have a bunch of buttons that will start the desired game. Is this possible and what would be ...
0
votes
2answers
30 views

How can I implement Player Prefs to Save High scores in unity?

I am new to both unity and C# and facing trouble in saving and displaying the highscore.text in the game.Til now I only successfully managed to display the scoreUI and update them whenever player ...
0
votes
0answers
41 views

Mathf.PingPong Speed Issue?

How can we stop Mathf.PingPong speed from increasing once the object1 and object2 have reached a specific distance between each other? float min; float max; // Update is called once per frame void ...
0
votes
1answer
57 views

Can I use JavaScript for Unity 5?

Sorry for my bad English. I wanted to know how similar is JavaScript with Unity Script. I know that Unity Script is not JavaScript and it was done for marketing purposes but I just wanted to know if ...
1
vote
2answers
60 views

Player shooting himself when moving - Unity UNET

Setting : Creating my first multiplayer game and running into an odd issue. it's a tank game where players can shoot bullets and kill each other Problem : When the client shoots while moving, the ...
0
votes
1answer
28 views

Keep a rigidbody velocity constant

I have a "board" with a ball (rigidbody) moving over it and colliding with obstacles. I want its velocity magnitude to remain constant throughout time. How do I achieve this? What I've ...
0
votes
1answer
36 views

How to make a GameObject ignore a camera effect?

I have a 2D game and I wanted to apply bloom to the main GameObjects so I attached the effect onto the main camera, however the background also gets affected by the bloom and it gets all shiny. How ...