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

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 ...
-2
votes
1answer
25 views

How to make monster a collection system?

How to make monster collection system like this?: and Can you recommend any useful design pattern or examples?
0
votes
1answer
25 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 ...
0
votes
2answers
41 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
14 views

swap rotation problem in mobile game (unity)

using UnityEngine; using System.Collections; [RequireComponent (typeof (CharacterController))] public class Camera_rotation_onSwap : MonoBehaviour { public bool kJoystikEnabled = true; public float ...
0
votes
0answers
20 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
46 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
28 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
28 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
28 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
115 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
42 views

Unity2d bounce only y-axis

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
40 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
24 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
31 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
28 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
74 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? [on hold]

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
403 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
62 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
80 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
224 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
76 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
15 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
61 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
67 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
36 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
65 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
34 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
27 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
68 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 ...
0
votes
1answer
41 views

How to figure out if I'm on the right path [closed]

I'm a software developer from Israel, I've been programming professionally since 2011, my first job was in HP software and lasted 2 years after which I decided that I want to pursue my dream in ...
1
vote
1answer
43 views

How do I create a custom tool in Unity?

Unity Editor has the usual bunch of standard tools: translate, rotate, and scale. I want add custom tools (to e.g. "paint" metadata onto the ground, or drag-and-drop stuff between gizmos). How?
1
vote
1answer
41 views

Unity sprite with higher sorting layer not firing its OnMouseDown function

I have 2 objects, both have a Box collider 2D. The first object is on the Level1 Sorting Layer and has a Tile script attached to it. The second object is on the Level0 Sorting Layer and doesn't have ...
0
votes
2answers
80 views

Unity 2D - Object following target instead of moving towards it

I'm making a 2D game with Unity that's based on avoiding/evading enemies. The problem i'm facing right now is i can't get the enemies to move towards the target/player, but instead they follow it. So ...
0
votes
1answer
38 views

Quaternion Slerp and Lerp implementation (with overshoot)

I am working with Unity (C#) and was looking for an implementation of Slerp and possibly Lerp that allow overshoot (progress not strictly limited to 0..1 range). I want to do some tweening animation ...
0
votes
1answer
61 views

2D game world engine

I'am starting to develop a 2D game with snake or worm. My question now is: When my snake reaches the right edge the world should move. (Like in this game) My first thought was to implement a camera ...
1
vote
0answers
49 views

Create a 2D orbit trajectory like in angry birds space and a circular orbit

I am working on a 2D game, and I am working on adding some space physics : I need to find a way to create a circular orbit and an orbit like angry birds space ( the spiral trajectory ) . So there is 2 ...
2
votes
1answer
63 views

Speed needed to make a car jump from a ramp

I need to make a car jump from a ramp to another, and I need this to be done using AI so I thought it would be enough to set a fixed speed for my car when near the ramp, in order to let it jump ...
0
votes
0answers
33 views

How to make Unity3D Camera focusing on one area?

In my Unity3D project, I have a board created dynamically (using c#) and located on the screen as follow: 0 < x < 12 0 < z < 12 y = -1 How can I make the camera focusing on the board ...