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

Control Unity Game loop to sync with external hardware/software

We would like to run the Unity Game Loop in sync with external hardware and applications running on a different computer. We want to arrive at something that work similar (but does not have to be ...
1
vote
0answers
125 views

In game replay system doesn't work correctly when animations are used on a character

I have created an in game replay system that essentially just stores each object's position and rotation at each FixedUpdate(). Once an even is triggered, the replay is then played back using ...
1
vote
1answer
36 views

Damping the Camera “lookAt” rotation

I have created a very short piece of code to make the camera look at a transform object. I locked the rotation of the x and z axis as it is only supposed to rotate on the y axis. I would like to add ...
4
votes
1answer
80 views

How to keep sprite on screen while increasing its width to screen width

I have been able to increase the width of a sprite to the width of the screen size, but the sprite exceeds the borders of the screen width to the right or left when I try expanding it when it's not at ...
-1
votes
3answers
139 views

A python script controlling a Unity game

I wish to build a simple game in Unity such that the objects in the game can be controlled via a Python script (or a code in any other programming language). Is this possible? If yes then how? If no ...
1
vote
1answer
86 views

How should I animate sprites with separate body parts?

I am not an artist. I have a 2D Sprite broken up into different body parts that I want to animate. I know how to do it in Unity, but every artist I know would prefer to use Flash. I am trying to ...
-1
votes
1answer
35 views

How to merge VRPN and Unity

I'm new to virtual environments, having worked mostly with Arduino and other physical applications. I'm trying to set up VRPN server on one of the computers in my lab to pass some triggers from a ...
0
votes
0answers
38 views

How do I make an object not appear grey regardless of distance?

My moon texture is on a plane 500m away and I would like to know if there is a way to keep displaying the texture: As opposed to it turning grey as pictured here: regardless of the distance it is ...
0
votes
1answer
27 views

Animation inside a .obj file?

Ok, so yesterday I understood that "rigging (bone and joints)" are things that are use inside a 3D animation software like maya. By that I mean that those bones and joints are not inside the .obj file ...
3
votes
1answer
33 views

In Unity, how can I get trigger enter/exit every frame when I change Time.timeScale?

In my game I have a power-up that slows everything down. I keep the player at regular speed by dividing deltaTime by timeScale. Everything works perfectly except for OnTriggerStay2D which appears to ...
3
votes
2answers
386 views

What revenue cuts will I take by using Unity combined with Facebook's platform?

Basically me and a friend want to develop a Facebook game by using Unity. What I wanted to know is if we do earn any money on it, how would we be required to use the profits of said money? I remember ...
0
votes
0answers
22 views

How to use touch.deltaPosition properly?

I use following code for measure touch delata position: private Touch firstDetectedTouch; public Vector3 dragDistance; void Update() { if (Input.touchCount > 0) { ...
0
votes
0answers
11 views

How do I add EventTriggers to Multiple instantiated prefabs from a list?

I have a prefab which I am spawning a dynamic amount of. I want to attach an event trigger to each one of them, on pointerclick, to call a method accepting an int as parameter. I have the following ...
-1
votes
0answers
18 views

object is not smoothly moving using lerp and onMouseDrag

This is the code to move my object using lerp and mouseDrag event but it is not working very smoothly. //Camera Point smooth movment if (mouseWorking) { if ...
1
vote
1answer
29 views

World Space canvas rendering in front of line mesh

I'm attempting to attach a pointer to my steamvr controller to simplify world interactions. I'm very new to unity, but found a nice volumetric line asset (VolumetricLines) that aesthetically is ...
1
vote
1answer
40 views

How to animate material change to get a status bard effect, in unity

Imagine a long cube, like a bar, that has a dark material, and you want to animate changing its material to a light material, but do it gradually from one end to the other, like filling up a tube, or ...
0
votes
0answers
29 views

Unity 2d variable has not been assigned when trying to instantiate

So I have some code here: using UnityEngine; using System.Collections; public class boardManager : MonoBehaviour { public GameObject GrassTile; void Start() { for (int i = 0; i <...
1
vote
1answer
55 views

Should camera rotation be framerate independent?

I currently have my own custom first person controller, and the code to rotate the camera and controller based on the mouse position deltas looks like this: public void ApplyRotation() { this....
0
votes
0answers
14 views

Moving parts of animated mesh by code

I have a skeletal animated GameObject consisting of multiple meshes. Now one of the meshes rotation should be controlled by code. How can i do this in unity? Imagine a human head with a lot of ...
0
votes
1answer
76 views

How to keep a rigidbody on the ground going up/down a slope? (Unity 2D)

I'm not sure if this is possible, but Im working a 2D project to has randomly generated loops (imagine a sin or cos graph). I have a 2D character (a quad for now). I want my character want to ski a ...
0
votes
0answers
24 views

Get relative angle to collision Unity

I want to get the angle between the rotation (euler Angles) of the camera (V1 : Vector3) and the collision point of my character, when it hits a wall, to determin, if it was left, right, or in front ...
0
votes
3answers
35 views

Unity - Accessing a UI's text through a Transform

I have this in my player's component list. The HungerTarget transform is the text box in the UI canvas. How would I change the UI's text here? using UnityEngine; using System.Collections; public ...
0
votes
1answer
29 views

WebGL Redirecting URL

If player's browser don't support WebGL, I want to redirect Web Player version. I think it's possible in UnityLoader.js file but how? function CompatibilityCheck(){hasWebGL?mobile?confirm("Please ...
1
vote
1answer
24 views

KeyCode dictionary in Unity

I found a strange problem while programming keyboard input in Unity (v5.3.5). public class AvatarInputMapperUnityContext : MonoBehaviour { private AvatarController _avatarController; public ...
0
votes
1answer
9 views

Altering Physics Property of a Shape in Unity

I want to create say 4 blocks, and each block will dictate how e.g. the bounciness of an object landing on it will behave. So if the block is made of sand, I don't want bounciness, if the block is ...
0
votes
1answer
79 views

How to achieve 2D ski movements similar to Alto Adventure?

I'm trying to achieve 2d movement similar to Alto's Adventure with Unity 2D. When grounded I want the character to slide alone the terrain parallel to the slope, but I want to be able to freely rotate ...
0
votes
3answers
41 views

How to get “this” object collider name, when OnTriggerEnter is fired ?

I have a "car" object with 2 collider attached, a base and a top collider. Then i have a script attached to my car. I'm using OnTriggerEnter event to detect collision with an invisible "Checkpoint". ...
0
votes
1answer
25 views

Unity: How to transition to a different animation during the blend phase?

I have a set of animations: Idle, start walking, stop walking, and walking full speed. I have the animations all blending nicely...and the controls are fairly responsive during most of the motion......
0
votes
0answers
27 views

Unity3d how to correctly using tilesets

currently I am using external tilesets like this: Load texture from file to Texture2D Texture2D tx2 = new Texture2D(2, 2); tx2.filterMode = FilterMode.Point; tx2.wrapMode = TextureWrapMode.Clamp; ...
0
votes
0answers
16 views

How to model muscle contraction force acting on two bones connected by joint in Unity/PhysX?

I'm trying to understand what is a correct way to model a muscle contraction in a physics engine like PhysX (Unity3D). Muscle that I'm modelling is connected to a bones in 2 points A and B. Having a ...
-1
votes
0answers
33 views

Car animation bypass another Car animation

I have several animated car objects which have their own animation and animation control script. The car object is racing on the road and I want to manage all the car animation i.e., if any car is ...
0
votes
1answer
25 views

Unity 5 - Importing models with multitextured materials

I have a file Blender model of a tree. It consists of some branches and lots foliage, nothing unusual. The foliage consists of a single material, which consists of 2 textures, a diffuse and lower ...
0
votes
0answers
21 views

Is it possible to stream the webcam via Unet (Unity Networking)

I've got my webcam on an ImageTexture in my Scene (with Vuforia), but now I'm struggling and I'm not sure whether it is possible to stream this picture to other players in the Multiplayer "game". I ...
0
votes
1answer
29 views

Behaviour tree editor Unity

I'm a programmer, so I am perfectly aware of how to implement a behaviour tree. I don't want to rely on third party tools, but still have convenient tools for creating the AI for my game. I was ...
0
votes
1answer
21 views

Mesh Chunk Combining and Extruding

So I'm working on a proceduraly generated level, that is composed of multiple chunks, so you don't go over the maximum amount of verts allowed in Unity Meshes. Another function is the ability to ...
0
votes
1answer
20 views

Unity: Animation With Motion Now running in place

I am new to unity. I am trying to assemble a character that walks forward, stops, and walks forward again when I maneuver the joystick (ps4 controller) accordingly. I have the whole thing pretty ...
0
votes
1answer
41 views

Calculating required force for pushing a body to a desired position at once in Unity [duplicate]

In a 3D world I simulate that a coin is being pushed over a plane (applying a force in his rigidbody where y-axis = 0) using a top-down view. Some time ago but using Box2D, I was able to calculate ...
1
vote
2answers
136 views

How can I create a custom PropertyDrawer for my Point struct?

I created a Point struct: [System.Serializable] public struct Point { public int x; public int y; } I am trying to create a property drawer for it, so that when it shows in the inspector, ...
1
vote
2answers
55 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
42 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
85 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
94 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
74 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
39 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
49 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
30 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
61 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/...