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
2answers
54 views

How to create a repeating gif style imagery for a game tutorial dialog

I want to create a gif style video that shows up in a tutorial window using Unity. How can I make this? Do I record the thing I want to show and then put it in a texture? Example:
1
vote
0answers
38 views

How to reset RectTransform's position?

So, I am trying to make a simple GUI Instantiate system. The GUI is going to spawn successfully, but the position is wrong. Position : (Left, Right: 249.8423 ; Top, Bottom : 400) Anchors : (Min: X:...
-1
votes
2answers
84 views

Why doesn't Unity keep keydown states between scenes, and how can I change that?

So basically, when my scene in Unity changes and I'm holding down, say, Right or Left, when the scene resets, my player (and Unity) doesn't even recognize that I'm still holding that button, until I ...
0
votes
1answer
25 views

Changing Force of my fall after a jump

I'm trying to change the speed of the jump. I noticed if I jump twice the fall speed force gets implemented. Otherwise it is unchanged. If I try to change my onGround to be else false it remains ...
17
votes
2answers
3k views

Player jittering against wall when held down button

So, I'm making a top down RPG. Everything's going excellent, but this problem is quite annoying. Now, when the character moves against the wall, the player jitters back and forth. I'm guessing it's ...
-1
votes
1answer
87 views

Why I can't do a build for Linux?

I'm using Unity 5.3.x (free version) on a Windows machine. I would like to build my simple desktop game either for Windows and Linux, but Linux (and Mac) build is disabled. Am i missing something ? ...
1
vote
2answers
73 views

How to use touch screen for movement instead of keyboard narrow keys

I wrote this code and run the game on my desktop, now I need to build this game for android and I need to change to touch to move the player, what it should be changed in the following code and what ...
-1
votes
1answer
47 views

Is there a way to have an ai characters ask my questions so that a player can choose, leading to different story lines?

Character asks "Do you choose A or B?". Player chooses "B" . Story line changes based exclusively on the conversation.
-1
votes
1answer
37 views

How to give a mesh collider gravity 5.0

I was trying to make a simulation of an object that needs gravity to work, a hydraulic movement-assistance system for disabled people. All parts are aligned properly, all objects have mesh colliders ...
0
votes
2answers
46 views

How can I change my script execution order programmatically?

I have a script that I want to run before any other script. I want to change its execution order settings. I could do that using the Script Execution Order Settings option from within Unity, but I ...
0
votes
0answers
25 views

YouTube asset for unity does not support audio for videos with resolution more than 720P

https://www.assetstore.unity3d.com/en/#!/content/29704 I purchased this asset for unity from asset store in order to play 360 degree videos in unity . However it does not support audio for videos ...
1
vote
2answers
57 views

Unity UI-Animations possibilities

I'm doing some stuff with UI-Animations the past days, but I never figured out, whether it is possible to do stuff like this with Unity : https://d13yacurqjgara.cloudfront.net/users/107759/screenshots/...
0
votes
0answers
27 views

Paint a 3D object partially and get percentage of a color in Unity 5 and C#

Im trying to paint an object partially from a raycasthit so it looks partially painted like in Splatoon or e.g. Is there a way to get this working in 3d, without creating a new gameobject everytime? ...
4
votes
1answer
153 views

Is it cheaper to let each tile have its own collision?

I'm just now playing around with Tiled, and I think this is the way I'm going to go to create tilesets for my game maps, but I'm curious about the cost (memory/CPU) difference between setting a ...
0
votes
1answer
37 views

How to set only one collider with OnCollisionEnter(Collision col) in Unity?

I tried with this: void OnCollisionEnter(Collision col) { Debug.Log("hit everything"); if (col.gameObject.layer != LayerMask.NameToLayer("bico")) { if (col.gameObject.tag == "...
-1
votes
1answer
64 views

Increment int in array - int i is out of scope? [closed]

This is my scenario: I have a 3D model of a house, and an autonomously moving robot moving through the house picking up multiple objects. I have an array of 3 objects I want it to pick up, but I don'...
0
votes
2answers
53 views

What Collider should I use for my Player object?

I am making a 3rd person game with a simple orbit cam and it works fine most of the time, but since I have a box collider and I walk across an uneven surface, the player tends to tip over. How should ...
0
votes
1answer
32 views

Moving autonomous robot form one location to another based on array

I have a 3D model of a house, and I want an autonomous robot to move from 1 object in this house to the next one. I have it moving to the first, but it won't move to the second one. This is my code: ...
0
votes
2answers
32 views

Is There a Way To Keep Precision When Transforming GameObjects

I've seen this issue before, but it's never been a particular issue for me until today. I have each "room" of a dungeon created with a class script that contains details of that room. During the ...
0
votes
2answers
36 views

Autonomous robot - moving from 1 object to the next object

This question falls in line with my last question: Unity 3D - create autonomous moving robot in house + first person camera movement What I have I have a 3D model of a house; a first-person camera ...
0
votes
1answer
10 views

Drag event inverts in landscape mode

I am developing an car game for android with an UI steering wheel to control the car. I'm following Answer example for the wheel rotation. This is the code to rotate the wheel. rectT....
1
vote
1answer
28 views

Unwanted highlight on far side of objects near the edges of the screen when using orthographic camera

I was creating a simple unity game with a sphere as a ball. The problem is that the ball face towards the camera origin renders material correctly but the one away from camera does not. The ball has ...
0
votes
1answer
31 views

How do you play more than one animation at a time in unity

I am trying to have 2 animations on one GameObject and i want them to play at the same time. I have been looking all over and messing around with the animator controller but i cant get it working.
0
votes
0answers
11 views

Unity: Blending two animations together using blend trees?

I am starting to build the foundations for a skateboard simulator game like skate 3. I want to be able to have multiple animations that can blend together to form tricks. For example when the player ...
0
votes
0answers
18 views

Unity 5 New Netorking, SyncVars, RPC how does it actually work

I have just started working on a client - server flow for an open world game, as far as I understand unity have implemented a fairly new ways to communicate and work with networking but I cant seem to ...
0
votes
0answers
15 views

Mixing animations in an 3d Tennis game in Unity 5.3

I am trying to make an 3d Tennis game. This is my first Unity Game. My game requires multiple animations like running and hitting the ball, making a volley on net, Serving the ball, etc. I am ...
3
votes
2answers
38 views

In Unity, is there a way to Set a new MeshRenderer?

Here is what I want to do in Unity for a given GameObject go = new GameObject(). I want to create a MeshRenderer, change its properties and only in the end set it as the component of go. For instance: ...
0
votes
0answers
31 views

How to animate a child in Unity

I am making a FPS Zombie game. I have the walking animation attached to the player camera and I have the gun attached to a game object called "gunPoint", which is a child of the player camera. I can'...
0
votes
0answers
21 views

How can I hide the Transform in a Prefab?

I have a prefab. It has a script attached that has this code: void Reset() { transform.hideFlags = HideFlags.HideInInspector; } If I create it, the Transform is hidden. Good. When I move it ...
0
votes
0answers
26 views

Unity Commands giving warning “Trying to send command for non-local player”

I am trying to spawn objects on the server(then spawn from server to client) calling from the client but I get this warning and it doesn't spawn: Trying to send command for non-local player. ...
1
vote
0answers
21 views

Animator Component gets removed automatically - Unity

I am creating a simple scaling animation on image (in Unity). When I play game in unity editor, the animator component get removed automatically. Here I am copying snapshop of Inspector of Image. ...
1
vote
2answers
50 views

How can I register Mouse Events in the Scene window of the Editor?

I want to create a custom level editor for the level designers that should allow them to place predefined objects in Unity3d similar to the Terrain wizard. How can I register Mouse Events in the ...
1
vote
1answer
32 views

Level/Asset design for performance Unity

I am a big fan of modular assets. Currently I am designing a 3d game for mobile and I don't know how I should create my levels to get the most out of the device. Should I... create lots of "small" (...
0
votes
0answers
12 views

Unity and C# - Lighting concentrated on floor with RenderSettings? How to get even lighting on all objects?

I am just getting into lighting with Unity 3d and right now have a function that progressively deepens the lighting of my scene here. I have done this via Render Settings and have tried 3 different ...
0
votes
1answer
21 views

How to get which gameobject the mouse is over in Unity?

So I'm working on a simple drag-n-drop based trading card game for my own amusement. There is a card inspector included. What I want to achieve is to change values in the inspector (which has its ...
0
votes
1answer
61 views

Unity 3D - create autonomous moving robot in house + first person camera movement

I have very, very little knowledge about programming or Unity. I have done some basic tutorials, but I want to try something harder. The thing is, I don't know where to start. If you find the time to ...
-1
votes
1answer
51 views

How to make an object fly disabling gravity through C# script in unity

I want to make an object fly which has ridged body physics by disabling its gravity after pressing a key. So I just want to know how to disable gravity through C# script. I already went through google ...
3
votes
1answer
46 views

Matte reflection effect in Unity?

I'm trying to achieve that kind of scene but in real time using Unity. It's basically composed of some primitives, a skybox, and a plane. I'm intrigued on how to do this effect in particular: ...
0
votes
0answers
28 views

Unhandled Exception: System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded

I am creating a project in Unity 5 free and using external dlls. I have a scene that is running normally within Unity but when I try to build the project as a standalone windows game I get this error ...
0
votes
1answer
22 views

Play and Stop Animation on Condition - Unity

I've applied a scale animation on Play button of my game. I want to stop animation when play button is not interactable. It stops playing animation, but animation is not playing again, even when play ...
1
vote
0answers
29 views

Support mapping

Hello I'm Trying to implement a quickhull 3d variant as explained in this paper. http://www.xbdev.net/misc_demos/demos/convexhull3d/paper.pdf But It seems that I'm failing at implementing the ...
0
votes
1answer
62 views

Assign a ScriptableObject to MonoScript through code

Sample code: public class Item : MonoBehavior { public ItemObject item; //the scriptable object void Start(){ // do stuff} } Normally I would drag and drop the asset of the ...
0
votes
0answers
21 views

Resizing a procedurally generated arc mesh

I have a script that generates a mesh representing a 2D arc. This arc is generated when the game starts based on a size (radians), width, etc... I would like to know if there's any fast way to resize ...
6
votes
4answers
3k views

Does “Object.ToString().GetHashCode()” return a truly unique character seed?

In my game I'm generating a character seed from a bunch of traits that the player chooses. The traits are all part of a Enum. In unity I've attached a script to a bunch of toggles. When the player ...
0
votes
1answer
90 views

Why are faces being drawn like this with my custom shader?

I've been writing a custom surface shader which allows for vertex colors (with alphas) to be set programmatically. From test runs of the shader itself, it works perfectly fine, and I am able to set ...
0
votes
2answers
55 views

How to handle global Data within a state machine setup? (C#)

I am currently building a turn-based framework (Unity,C#) I was tired of my former tight-coupled systems and opted for a state machine this time, basically all components subscribe to the state-Enter ...
0
votes
1answer
55 views

Top Down Bullets will not move

I have a top down shooter. The player can move in the primary 4 directions, and follows the mouse for rotation. When I shoot, the bullets never leave the player, they just spawn on top of the player ...
0
votes
1answer
50 views

Why is my custom shader rendering completely transparent?

I'm currently trying to learn how to write shaders, so I'm getting my feet wet with Unity's Shaderlab format. One of the first things I tried was to write a surface shader that supports vertex colors ...
1
vote
1answer
44 views

How to check strings from multiple lines in one input field?

I need help with input fields. I already set the line type to 'Multi_Line NewLine' in inspector, but I have problem with submitting the string. Here's the code: using UnityEngine; using System....
0
votes
0answers
29 views

Two game object efficient and fast on-off switch

I have two game-object, on GUI button click i am toggle between them but the problem is one game-object which is small contains less vertx etc., is loading fast while the other which heavy taking time....