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
2answers
13 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 ...
0
votes
1answer
25 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
12 views

Which 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
22 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
0answers
10 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 ...
5
votes
2answers
135 views

In Unity, why is adding a Vector2 and a Vector3 only sometimes ambiguous?

Given the following two vectors: Vector3 pos = new Vector3 (1f, 2f, 3f); Vector2 dpos = new Vector2 (1f, 2f); This line is ambiguous: transform.position = pos + dpos; // Unity reports dimension ...
-1
votes
0answers
24 views

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

void Rotate() { Vector3 lastDirectionInGlobal = _camera.ScreenPointToRay(rightFingerLastPoint).direction; Vector3 currentDirectionInGlobal = ...
0
votes
1answer
43 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 ...
1
vote
1answer
67 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
31 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
3 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
49 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
38 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
53 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
21 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
24 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
52 views

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

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
1answer
29 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
29 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
30 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
135 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
18 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 ...
0
votes
0answers
9 views

With Multiple First Person Controllers i cant move the camera up and down UNITY3d [on hold]

Im making a Multiplayer FPS and im having a issue where if i have two clients on the server neither of them can move their cameras up and down BUT they can move them side to side, Why is this ...
0
votes
2answers
49 views

Unity2d bounce only y-axis [on hold]

I want to make bounce game. I did a bouncing ball. If I wanna to move it with arrow keys, the ball is vibrating. I know why it happens but my english is not enough for explanation. How do I make ...
0
votes
2answers
41 views

Will I lose the mesh if I delete the original prefab?

I'm working in Unity 5, and I currently have the following setup: My project contains two prefabs which we'll call "Cube" and "CubeT". Cube was imported from an FBX file generated by Autodesk 3DS ...
0
votes
0answers
25 views

Rotate the camera on a given angle

Good day! I apologize in advance for my bad english. The task is as follows: "On the stage there is a camera and a gun with rays when a ray gun out of sight of the camera (vertical) is required to ...
-2
votes
0answers
21 views

Unity3d Crashes at Creating New Project [on hold]

I downloaded Unity3D in my laptop today, and when I click "Create a New Project", fill the details and press the "Create" button its gets me to Unity's bug report page. Why does this happen?
10
votes
5answers
3k views

How to determine if character has fallen into the gap in an infinite runner/jumper?

I'm building a 2D infinite runner. In the game, character jumps from pillar to pillar and pillars are randomly generated. I have this working. But how to determine if the character failed to jump on ...
0
votes
1answer
38 views

Unity5 UI - How to trigger button click event while preventing menu item deselect event?

So I've got a load menu using Unity's new UI system, basically just a list of save games you can select with a mouse click along with a couple of buttons at the bottom to delete or load the selected ...
0
votes
0answers
33 views

Unity: why game app on Android takes up much more memory than Unity Profiler reports?

We are profiling a game app on Android 4.4.2 device via Unity’s ADB profiling. We have set up ADB profiling following the official guide: http://docs.unity3d.com/Manual/Profiler.html The ADB ...
2
votes
2answers
79 views

How do I rotate and object around itself, and translate it at the same time?

I have this animated gif of my problem. I have a sprite object with a box collider, and I'm trying to rotate it around its center. My rotation script consists of this : this.transform.Rotate (0, 0, ...
0
votes
0answers
35 views

In unity3D, is it good to use events more often? [closed]

Does using public static event more often in my project affect any performance?
1
vote
2answers
82 views

Unity: Can't press space to unpause. Is this a Unity UI bug? Or maybe poorly written code?

So I think I have a bug with my pause menu. For the sake of simplicity I've boiled down what I'm trying to acheive: When the player first starts up the game there's a UI menu with one button: 'Start ...
0
votes
1answer
19 views

Unity animation editor having trouble to animate twice the same component

I'm not getting warm with the Unity animation editor. This is what I want to do: The 2 lasers should be like this, rotating 360 degrees over and over. .The classname laser2 doesn't mean anything, I ...
2
votes
1answer
411 views

Why can't I rotate anything to be “more than 360 degrees or less than 0 degrees”?

I've been trying to make an animation in Unity, but most assets already come bundled with everything facing at 0 degrees, not to say it's a bad thing. However, the problem I'm facing is that the ...
2
votes
2answers
64 views

DontDestroyOnLoad() doesn't work in Unity

I have a problem with DontDestroyOnLoad() in Unity. It does not work! My code: private static PlayerSpawningScript instance; public void Awake() { Debug.Log ("PlayerSpawningScript awake"); ...
-2
votes
0answers
96 views

unity 5 C# or Unreal Engine 4 C++ [closed]

now with unity 5 and unreal engine 4 both going for AAA graphics(unity) and free(UE4) which is a better choice...i have been working with unity for the past year and C# is boring to program...UE4s C++ ...
1
vote
1answer
228 views

Switching renderer off/on for an object in unity using C#

I have a GameObject called 'Stone' that is rendered on Game Play. I have attached a C# script called RenderOff to to make 'Stone' invisible on Game Play. RenderOff.cs using UnityEngine; using ...
1
vote
3answers
79 views

Unity: how do I edit a second scene when my objects are still in the first?

I have my game set up so that objects like the Canvas and the main character are set to DontDestroyOnLoad; they're only initiated in the first scene. However, this means that when I load my second ...
0
votes
0answers
18 views

Unity: Finding Objects Positions From An Array [closed]

So I currently have an Array holding a list of 80 objects. I have created a for loop to randomly pick 20 of the objects, from there I want to find those random 20 objects positions. I've tried a few ...
0
votes
1answer
64 views

Unity 5 - Error with code to make pitch changes based on distance

I really need help. It's 2:00 AM here and my brain is half dead so I can't, for the life of me, find out what's wrong with this code anymore. It's supposed to find the distance between the game ...
0
votes
1answer
72 views

Implementing FSM on multiple class UNITY3D

I am recently implementing design patterns on my project, while researching around I came across many advance techniques like HFSM ,Behaviour trees. I did implemented behavior trees wherever required ...
-1
votes
1answer
38 views

Error in unity : The type or namespace name RigidBody could not be found [closed]

i m new to unity and got stuck in a problem , i have searched unity forum but could not get an answer to solve my problem. getting this error. The type or namespace name RigidBody could not be found. ...
0
votes
1answer
69 views

Understanding Unity 5 Car controller

As with all Unity versions Unity 5 comes with a set of Standard Assets. This new set of Standard Assets comes with a Car Controller. Either by attaching a Car user controller script or a Car A.I. ...
1
vote
1answer
35 views

Understanding animations of controllable characters

I am a newbie trying to learn basics of Unity3D (5) before starting to do the real thing. Even though I tagged it as Unity3D, the logic should be the same for every kind of game engine. So I will be ...
0
votes
0answers
7 views

Cannot get the specific bounds of my Animation sprite?

I have an animated sprite on my scene, and I would like to scale it to the screen width/height. So on my scene, I thought I'd add a Rect Transform first to find out my object's size, turns out it's ...
0
votes
1answer
30 views

Instantiate a prefab and call a method from it's script

I am creating a game in unity and I have a prefab that I instantiate on center occasions. What I want to do though is after instantiating the prefab. Get a handle to it and call a specific public ...
0
votes
1answer
28 views

Instantiated Prefab Facing Wrong Way

Here's a Youtube video of my problem in action ((in the video I am clicking in various directions, yet the fireball is always created facing down in some direction.)) I've been having a lot of ...
0
votes
2answers
33 views

Unity 5: Error when everything is okay(Object reference not set to an instance of an object)

i'm getting this error when the collider colides with something: Object reference not set to an instance of an object It's referencing to the gamecont.Death(); from this script: and the death ...
-1
votes
2answers
69 views

The Validity Of “Else-IF” in Unity (Or any C# for that matter) [closed]

While I'm speaking specifically for my use in Unity, I'm sure this question probably applies to C# in general. I've seen a lot of debate on the use of the "else if" statement. Particularly, I'm ...