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

How do I make Ground Check stop rotating with the character when it rotate?

How do I make my character routice without Ground Check rotating with it, but still follow my character? Code: using UnityEngine; using System.Collections; public class Player: MonoBehaviour { ...
0
votes
2answers
19 views

How to enter a level when touching an object

I am working on a project in Unity 4.6.1f1 and I was wondering how can I make a cube touch another cube to go to the next level (the image below)?
0
votes
1answer
16 views

What's the size of library in unity for android?

In unity3d what is the size of library compiled into apk. Is that affect when i make game without any physics(2d or 3d) or when making 2d or 3d game.
0
votes
1answer
12 views

Unity - Scroll Rect shows buttons outside of the rectangle

I have this problem. I'm using a scroll rect to display a series of buttons, but I would make sure that as soon as the buttons (with the scroll rect), come out of a certain area (bounded by a panel), ...
0
votes
0answers
9 views

Character fixed angle?

I want my character to rotate so I turn off fixed angle in Rigidbody 2D, but the problem here is that I can't jump in any other angle except for the angle where I have my groundcheck. Can anyone help? ...
0
votes
1answer
10 views

Unity Xcode Post Build Change Language Dialect

Is it possible to change the C++ Language Dialect setting under Apple LLVM 6.1 - Language - C++ during a post build process in Unity3D? See here: I'm using XCodeEditor, and in the json, i tried these ...
0
votes
1answer
20 views

Send a prefab over network in Unity

I want to instantiate an object on only the server and one client. This means Network.Instantiate is out of the question and I have to instantiate it manually. Since Network.Instantiate takes a ...
-1
votes
2answers
35 views

Where to create scenes? [on hold]

I'm starting to develop a 3D game with Unity and 3ds Max. Where do I create levels for my game? Do I create individual objects in 3ds Max and transfer them to Unity, or do I create the whole level in ...
0
votes
2answers
13 views

Unity3d - deploy game to android device off site

I am using Unity3d to develop my game and my friend with android device wanted to test it. I am natively IOS developer and have no knowledge of deploying Android platform. What do I need other than ...
-1
votes
0answers
10 views

How to import scenes from .3ds files into Unity

I am trying to import a 3D project done with 3dsMax into Unity and make it the scene in the game. Is this possible? Any tutorials available?
0
votes
0answers
30 views

Character can't jump in other angle with fixed angle off

I turn off fixed angle so my character can rotate, but it can only jump in 1 angle but I want it to jump in every angle. How do I do that? Code: using UnityEngine; using System.Collections; public ...
0
votes
1answer
19 views

Legacy GUI - run OnGUI only once

I remember something about onGui being able to be run multiple times per frame, and I also seem to recall that you can check 'which state' the onGUI is being run in, so that you can do all of the ...
0
votes
2answers
51 views

Enemy fire every few seconds

Hi I'm trying to get my enemy to fire once every few seconds, I tried using a Coroutine but due to me essentially calling the Coroutine through the update method, the Coroutine is repeating every ...
2
votes
2answers
25 views

How can I load textures in Unity and keep them between scenes?

I have some textures that are used in multiple scenes and I want to keep them in memory to speed up load times between scenes. I know about Resources.Load, but does that always keep it loaded? If a ...
0
votes
1answer
17 views

Move Sprite in direction of rotation

I have the following code. void Update () { if (Input.GetAxis("Vertical")!=0) { GetComponent<Rigidbody2D>().AddForce(-transform.right); } ...
0
votes
1answer
15 views

Resize sprite to match camera width?

I'm trying to resize my small background sprite to match the screen width of the user's device. This is what I'm trying // Use this for initialization void Start () { // Set filterMode ...
1
vote
1answer
29 views

What size should I scale my sprites to before importing them to Unity?

I'm developing a game with an 8bit look. I want to target iOS and Android devices. The real resolution for my backgrounds is 108 x 192. Should I should put them in that same resolution and scale ...
1
vote
1answer
14 views

Broadcast message to Parent Gameobject and Siblings in Unity

I wish to broadcast a message from one object to it's parent and it's siblings. I am aware that unity does not support broadcasting a message to all other game objects but is there a way to broadcast ...
0
votes
1answer
15 views

vuforia how do I force objects into a 2D plane

I'm working on a game in which cards are placed on a table and then rendered in augmented reality. These objects have 3D physics attached to them which doesn't work as well if they are either rotated ...
1
vote
1answer
26 views

Unity UI Input Field suddenly malfunctioned

I'm using Unity 5.0.1f1, and my UI Input Fields are not working as they are supposed to. I have an Input Field that is placed in a Panel and inside a Canvas. It has a Text component in which I can ...
1
vote
1answer
36 views

Proper way to divide a 2D climbing animation in Unity3D

I've got a 2D character that's going to climb up a 2D tile to his left or right and I've got a climbing animation consisting of three parts essentially: Animation for the character going from ...
0
votes
0answers
32 views

Why isn't Unity rendering this model correctly?

I'm trying to render an imported Blender model in Unity, but I keeps rendering really strangely. Here's a screenshot with relevant info and details. This weird error doesn't just happen with ...
0
votes
0answers
7 views

Unity rigidbody not moving [on hold]

I'm developing a program in unity but I can't seem to get my guy to move left and right. The code I'm doing for it I think is correct. He has a rigidbody component attached to him and the script ...
0
votes
1answer
48 views

How would I check the range against the entirety of an enemy object, and not just it's transform.position?

I want to be able to do range checks against the entirety of an enemy object, and not just it's transform.position. The enemy object can have it's side or nose within range, but range detection will ...
0
votes
0answers
19 views

Particles in particle system not being lit

I have a sprite that I want to use in my particle systems (it's just 4x4 white square). I'd also like for the particles to be lit (react to lighting within a scene). Since I'm using 2D Toolkit, I ...
0
votes
2answers
26 views

Implementing a delay timer into triggered method

I have a shoot method that is used as a mouseDown() Trigger on my player. I am wanting to introduce a delayTimer but am unsure of how to do this within the method due to the trigger. public void ...
1
vote
0answers
35 views

Unity - How to save variables for Android Game?

This is my current code, it only work into unity, when i test it in an Android Device it don't save the variable public class Click : MonoBehaviour{ public UnityEngine.UI.Text proiettiliTotali; ...
1
vote
1answer
49 views

How to use polymorphism with the Unity editor

For example: [System.Serializable] public class A { [SerializeField] public int x; } public class TestA : MonoBehaviour { [SerializeField] public A a = new A(); } ...
0
votes
1answer
28 views

Unity - Joint tearing under larger force

I have a chain that is made of connected configurable joints. I used ultimate rope builder for the rope chain creating. The problem is that when i apply a larger force to the chain, it starts to tear ...
1
vote
1answer
34 views

Unity 3D - Rotating an object in relation to its velocity

I am currently trying out Unity 3D and I've run into a problem. The problem is I have a car that moves along a road and then when it reaches a corner I would like it to turn the corner and have the ...
0
votes
0answers
27 views

Unity: Issue With Moving Game Object To Another

I am currently trying to send a ball to a target location. The program randomly chooses another game object and tries to send the ball its location. But the ball currently moves very little and ...
3
votes
2answers
105 views

How does Unity's Entity-Component System Work In Practice?

On the surface Entity-Component seems like a good way to program games. Everything is a game object and those game objects are made up of components. The attraction is components are very flexible, ...
0
votes
0answers
31 views

unity how to make an animation reverse mid way through

I have a animation of several parts moving (think bridge) and would like the animation to reverse mid way through if a certain condition is modified (function call). I have the Animation and the ...
0
votes
1answer
13 views

unity animation not starting

I have written the following code: public class TargetAnimation : MonoBehaviour { Animation anim; public AnimationClip Open; // Use this for initialization void Start () { ...
0
votes
0answers
27 views

Unity Rigidbody click to move issue

I'm wanting to have a script that when I click in my scene, my player will rotate and have a force added to it and will travel until it has reached the clicked point in my scene. Right now I have it ...
1
vote
1answer
41 views

Unity3d - move 3d object in an AR scene

I have an AR scene that has one AR camera, an image target and a 3D object as below. I want to move the AR object to the position of the mouse click. I have tried taking the Input.mouseposition ...
0
votes
1answer
112 views

How do I make my character jump in every direction?

My character can only jump when he is grounded, but he can only grounded in one direction I want him to jump in every direction, can anyone help? CAN JUMP : CAN'T JUMP : Code: using ...
1
vote
0answers
25 views

Array of script class references in inspector

I'm trying to remove the Reflection part of ones of my scripts so it works in WebGL, however I am having some trouble. Basically I need a way to store references to classes in an Inspector array so ...
0
votes
0answers
27 views

How do I make my character jump in any position? [on hold]

My character is a square which can jump in position x and y but I want it to jump all position How can I do that? Code: using UnityEngine; using System.Collections; public class Player: ...
0
votes
2answers
52 views

A 2D Camera Follow Script That Does Not Rotate?

I am attempting to make a 2D racing game. So far I have a player car (sprite) and a main camera. I would like to know how to make the main camera follow the player car while still showing signs of ...
0
votes
1answer
25 views

Unity Rigidbody gets pushed through collider by another rigidbody?

I'm setting up the interior of a house in a 2D platformer. Inside the house is an NPC with a box collider and rigidbody attached, and the house is boxed in by four edge colliders. My character also ...
0
votes
1answer
33 views

Given a constant rotation and target point, find position so that point will be in camera center

Given a fixed rotation and a target "center" point, how to I find the position the camera should be in so that that point is the center? LookAt changes the rotation keeping the position constant. ...
0
votes
1answer
50 views

2D Infinite Runner : how to manage background layers?

First of all, sorry for this post, I guess this already has been discussed. I browsed stackexchange and the web but I couldn't seem to find a clear information for my case, with always mixed results. ...
1
vote
1answer
46 views

How do I refer to a native library with Unity 5 on Android?

I have a library called mylibandroid.a. This is given to me by another developer. I also have the iOS version of this lib, and have been able to access it from Unity. It is supposedly built for ...
2
votes
1answer
39 views

Multiple enemy collidiers

I currently have an enemy that upon collision kills the player with a kill script, I want to add another collider that acts as the visibility radius for said enemy. However, when adding another ...
0
votes
0answers
24 views

Object doesn't move smooth over edges?

In the last couple of days I'm experimenting a lot with Unity 3D to get a feeling about the environment and the behavior of game development. I come from a programming perspective and try to develop ...
0
votes
2answers
41 views

Creating a static 2D background at runtime

I'm using unity for a 2D game. We have a lot of props for grass, plants, flowers, etc that are static and always in the background. I'd like to optimize the background and reduce the drawcalls as ...
0
votes
2answers
121 views

How do I make my character jump in any angle?

My character is a square which can spin in any angle but it can not jump in certain angle Can anyone help? using UnityEngine; using System.Collections; public class Player: MonoBehaviour { public ...
1
vote
1answer
71 views

Physics not working when game is running on device Unity

I have my bouncing ball game. The ball bounces up when it hits the ground and when it hits the left wall it changes direction to right and when it hits the right wall it changes direction to left and ...
2
votes
2answers
26 views

Unity2D Sprite flips camera when moving left and right

I am using the Unity Engine and coding in C#. I have a sprite as a parent with a main camera as a child so that the main camera follows the sprite. However, when pressing 'A' and 'D' to move the ...