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
7 views

RenderTexture not working in very specific circumstances (Unity 4.6.3)

I'm building a project in Unity that makes heavy use of RenderTextures and ComputeShaders, and I found out early on that if I tried to open the project in the free version of Unity, I got an ...
1
vote
0answers
11 views

Import Unity 2D objects in Libgdx

I'm using Libgdx to do some simple home projects. I'm trying to make a simple 2D game with Box2d using R.U.B.E as editor. I create a 2d terrain in R.U.B.E now I want to create the terrain texture. I ...
0
votes
0answers
7 views

unity3d - Fire bullet using AddForce is very slow

This is a top-down view but in 3D coordinates, I would like to instantiate and fire a bullet from the player's gun. This script is on a spawner object at the end of the barrel. void Fire () { ...
0
votes
1answer
10 views

Unity Make sprite visible only to shaders

I have made a shader for my UI buttons, the sprites should be black and white, so they can be used as a mask when blending. They should allow for the image behind them to pass through the whiter ...
0
votes
0answers
26 views

UNITY IEnumerator Function

So I am currently using the IEnumerator function to pause a for loop, the for loop that contains a ball that should move to another game object. Currently from my print statements seems like the ball ...
1
vote
1answer
37 views

unity3d - Instantiate and fire bullet realtive to player rotation in 3D

This is a top-down view but in 3D coordinates, I would like to instantiate and fire a bullet from the player's gun. This script is on a spawner object at the end of the barrel. Also tried putting the ...
3
votes
2answers
113 views

How do I create a toggle button in Unity Inspector?

I want to create a tool similar to Unity's Terrain tool, which has some nice toggle buttons in the inspector: How can I achieve similar design to this? I know how to create normal buttons and ...
1
vote
1answer
25 views

main camera not covering whole screen in unity3d

I have been using unity and i got a problem where my main camera is covering only the first half of the floor i made. camera position is left and the floor is rotated ,i m posting an image please help ...
2
votes
2answers
39 views

Updating game objects already placed in scene

I have about 20 game objects placed in certain positions in my scene. I then realized i need to attach two additional game objects to each one of these as children. Is there a simple way of doing ...
0
votes
0answers
56 views

Making a command line in C# [on hold]

I was wondering if there was a way to code a command prompt type thing (CMD) for Unity in C#. I am making a hacking type game and tried but failed.
1
vote
3answers
77 views

How does Unity call “update()” in the scripts?

I understand that you can expose your C++ code to a scripting language such as ChaiScript. From this you can call code that you've made in C++. In Unity, however, they have functions in the script, ...
0
votes
1answer
17 views

Trying to get reference to Button in Javascript Unity3d

I've this simple script in Unity3d: #pragma strict public var topLeft : UnityEngine.UI.Button; public var topCenter : UnityEngine.UI.Button; public var topRight : UnityEngine.UI.Button; public var ...
0
votes
0answers
25 views

Calculate Orbit Path/Ellipse given mass, velocity, and distance (2body)

Calculate and draw the path of an orbit in a 2 body problem given the mass, current velocity, and distance of both bodies? We're working in Unity and will be using the default rigidbody.mass to start ...
0
votes
1answer
45 views

How do I use rigidbody2d.AddForce to apply a force in the direction the object is facing?

I'm trying to create a thruster on a spaceship. It should add this thrust in the direction the thruster is facing, but I am at a loss on how to get that direction and send it to AddForce. Am I even ...
3
votes
1answer
50 views

Why does my Outlined Diffuse 3 shader seem “detached” at a distance?

I'm using the Outlined Diffuse 3 shader from Unity and I'm having a problem with it: the outline looks great when the camera is near the object, but at a distance, it looks detached. From nearby ...
2
votes
2answers
40 views

Unity: Editing a DontDestroyOnLoad object in another scene

I figured out how to make certain objects like my Camera and Canvas persist across scenes, but I can't figure out how to access them in the editor from scenes in which they're not instantiated. I can ...
0
votes
1answer
36 views

How to deactivate a button in unity 3d

We have a set of buttons in our game. Each one corresponds to a particular instrument. we have to implement the foll: a button should become deactivated after being clicked once implying that the ...
0
votes
2answers
35 views

Position child on the edge of the parent circle while scaling unity3d

I have come across to some different situation. I have one circle sprite and i am rotating circle continuously while rotating i want to make circle smaller and larger. I have one object on the edge ...
2
votes
1answer
58 views

Big 2D world Unity3d

I am planning to make a 2d tile based platformer with big world like in terraria. I have some questions to ask on how to manage this big world in Unity3D. The Scenario World Size = 1000 x 1000 = 1 ...
0
votes
1answer
42 views

Unity 5: 3rd Person Controller runs by default. How to change this?

I have been working with the Third Person Controller of the Standard Assets (called Sample Assets in the beta versions) in Unity 5. When the player press the forward button, the character runs by ...
0
votes
1answer
22 views

Button detection in unity3d

we are developing a a game in unity 3D . To play the game we need a number of instruments. we have given a set of buttons to activate the instruments: each button corresponds to a particular ...
0
votes
1answer
32 views

In Unity, what does the camera script's “Behaviour missing” error mean?

I started in Unity few days ago and made a cube with a tank control style. Now I'd like to create controls similar to 3D fighting games (Gunz, Blade Symphony, …): Control body direction with the mouse ...
0
votes
0answers
29 views

Is older tutorials useful for latest unity? [on hold]

Will I face any problem if I use the tutorials and books made for unity 3/4 to learn unity 5 with no experience?
0
votes
1answer
36 views

How do I rotate a cube around an axis, relative to the camera view?

I want to be able to rotate a cube, either by dragging vertically to rotate it around the Y-axis, or dragging horizontally to rotate it around the X-axis. However, when the camera is rotated 90 ...
4
votes
0answers
80 views

Liquid 3D Object [on hold]

Okey now there is something I have been Struggling with for the past 2 Days, I think I am stupid or something. I need to make a Liquid 3D Object, It is really complicated what I need to make. so I ...
0
votes
1answer
26 views

Unity Issue with Vector3 and Transform

So I am currently running into this error Cannot implicitly convert type 'UnityEngine.Vector3" to 'Unity.Engine.Transfomr' I am not to sure on how to fix this issue because I am very confused on ...
0
votes
1answer
287 views

In a List, how to set an element to true and the rest of element to false? [on hold]

I have this List of character objects. I would like to make so that every time I select a character, the game deselect all other character. In this character class I have a variable called selected ...
0
votes
2answers
79 views

Creating a Timer in C# Unity

In my game I have watch video earn coins system, now I want to program a delay so the user cant watch the video every 5 seconds, for example I want to let him watch every 6 hours, but I'm not sure how ...
4
votes
5answers
419 views

How to Color.Lerp between multiple colors?

I have found it rather difficult to find a solution to this in the Unity documents. Color.Lerp(Color a, Color b, float t) is a function that gradually changes a color according to a step t, giving it ...
1
vote
1answer
50 views

Pause in Seconds and resume in unity

I want to pause 15 seconds then resume without any input when an object is collision other object this is my code but not working. Thank you void Start(){ Eifftower = ...
0
votes
0answers
32 views

Movement system on server side (HnS Click to move)? [on hold]

I'm creating a Hack'n'Slash with Unity as Client and Java as server. Today we started developping movement system, and we don't know what to choose for the movement on server side (it's a click to ...
0
votes
0answers
30 views

Working with Particles as a Game Object

I am trying to make a Liquid in Unity that Can be worked with and have functions. I am trying to make something more like Pouring water from a bottle to an empty cup where the water in the Bottle ...
1
vote
1answer
45 views

Unity Remote 4 on Galaxy S5 won't connect to Unity 5

I'm having some trouble connecting Unity Remote 4 to Unity 5. I'm using a Samsung Galaxy S5. I've searched a bit and the other solutions with other phones aren't working for me. What I've tried so ...
7
votes
2answers
258 views

In Unity, why is adding a Vector2 and a Vector3 ambiguous but assigning isn't?

Given the following two vectors: Vector3 v3 = Vector3.one; Vector2 v2 = Vector2.one; This line is ambiguous: v3 += v2; // Unity reports dimension ambiguity whilst this assignment isn't: v3 = ...
-1
votes
0answers
33 views

Rotation problem with Quaternion.Euler in unity [on hold]

void Rotate() { Vector3 lastDirectionInGlobal = _camera.ScreenPointToRay(rightFingerLastPoint).direction; Vector3 currentDirectionInGlobal = ...
0
votes
1answer
53 views

Unity forward vector flips when upside down. Mario Galaxy style gravity, bad rotation?

This is a question that I think is best to explain visually, so I will do my best to be succinct here. What I am trying to do: Allow the player to run about a world that is spherical, not a flat ...
3
votes
1answer
460 views

What causes this graphics quality difference between WebGL Build and Unity 5 Editor?

The Editor version and WebGL version of my Minesweeper clone have some graphics quality differences. I chose 'Fast' option when building this deployment. Is this the difference between 'Fast' and ...
0
votes
0answers
36 views

Unity or XNA allowing modifications from Steam Workshop

I'm about to start a sandbox project game for Steam, so modifications are important - before I begin, how do I allow people to create mods for the game through the Steam Workshop? I've looked but I've ...
0
votes
0answers
5 views

3ds max CAT Animation layers export

I've made 3 absolute layers Each layers has it's own animation cycle. Now I would like to export it as FBX and import to unity3d, however, it would import only active layer. Is it possible to ...
-3
votes
0answers
57 views

How to make monster a collection system? [on hold]

How to make monster collection system like this?: and Can you recommend any useful design pattern or examples?
0
votes
1answer
45 views

moving object in unity from a point A to point B no matter what the original position of the object is

I'm moving a Game Object in unity from point A to point B no matter what the original position of the Game Object is. Let us suppose that I have a Game Object at (0, 0, 0). But I want to move that ...
1
vote
2answers
62 views

Drawing a pixel to RenderTexture

I would like to know how you would go about drawing a single pixel to a RenderTexture in Unity. In XNA, it was just a matter of setting the graphic device's active renderTarget, and drawing to it. ...
0
votes
0answers
24 views

swap rotation problem in mobile game (unity) [on hold]

using UnityEngine; using System.Collections; [RequireComponent (typeof (CharacterController))] public class Camera_rotation_onSwap : MonoBehaviour { public bool kJoystikEnabled = true; public float ...
0
votes
0answers
27 views

Unity 5 profiler shows Vsync graph even if disabled

My game suffers from some lag spikes over time, wich match with the Vsync graph in the unity 5 profiler. I deactivated Vsync via script and the quality settings but the lag is still there and the ...
-1
votes
1answer
57 views

Why can't I access List<T> through System.Collections.Generic? [closed]

I have the following small and incomplete script, and I was wondering if anyone knew about this issue. I'm trying to access System.Collections.Generic.List<T>, but I keep getting the error The ...
1
vote
2answers
38 views

What does the number in TextMesh.lineSpacing refer to?

I have a TextMesh with some text, and mutliple lines. The 4 examples have these settings: lineSpacing = 220, characterSize = 10 lineSpacing = 220, characterSize = 25 lineSpacing = 220, ...
0
votes
1answer
31 views

Unity 2D Current object force

I'm working on a game with an entity firing a shot. This shot could destroy other entities as well as the entity who generated the shot. My first step was to apply a force to the rigidbody2D of the ...
0
votes
1answer
35 views

Unity 2D - scale sprite according to screen width

So I have a square sprite (width == height) and I want to scale it so that both width and height are exactly one fifth of the width screen. To find the desired pixel width I do: float ...
4
votes
2answers
193 views

Glass Material for Unity 5

Anyone know how to make a glass material in Unity 5? I can do metal and image textures, but not sure how to create a glass material(its for a shower door and just plane glass. A search on google ...
0
votes
1answer
21 views

In Unity, why do my animator states wait until the end of each animation to change?

I'm trying to make a simple idle-walk transition in Animator using Unity. I've set a script that changes the Speed value from the Animator, and it works perfectly when I move the character forward ...