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

How to fix artifacts when using equirectangular 360 panorama photo on sphere

I have a equirectangular 360 panorama photo. I tried to use it as a texture for a default Unity Sphere. The image had artifacts/visible seams, especially near the "poles" of the sphere (north pole and ...
0
votes
0answers
4 views

WebCamTexture.width and height returning 16,16 unless reinitialized

I am trying to store a picture from a camera with WebCamTexture. The function Savepicture(string path) uses a Texture2D to set pixels retrieved from the WebCamTexture class field, I end up getting a ...
0
votes
0answers
1 view

Android app not installing because of more files in streaming asset folder

I have created a game which contains some videos, I have put them in Streaming Assets folder. The main problem is if the number of videos increases more than 6, app will not install else it will ...
3
votes
0answers
17 views

interfacing WiiMote with Unity 5

I am looking for a guide on connecting WiiMote with Unity 5 as an Input device. I found this library here but I do not understand how to install it and what the prerequisites are for it to work.
0
votes
1answer
21 views

Touch through GameObject, best practice

in the game I am doing atm you have an area with monsters. There are two modes to damage monsters : tapping on them casting spells on the ground Tapping and damaging a monster works fine. The ...
0
votes
0answers
52 views

Mega-man 2 Camera help (Unity)

So I have tried several ways to fix a Mega-man 2 camera without actually figuring out a good way of doing it. So I would love if someone could give me some tips for I could solve this issue. The ...
0
votes
0answers
17 views

Trying to increase the size of a sprite when it touches a pellet in Unity with C#

This is my first game, and I'm trying to keep it simple, so just a simple platformer that works around the size of the player's character, and the character increases in size whenever they consume a ...
1
vote
1answer
23 views

My runtime mesh is not being created where it's vertices are located, need help

I'm trying to create a quad at runtime and I'm encountering an issue where the mesh does not show up in the scene where it's vertices where set. In the following picture you can see the ship, and to ...
0
votes
0answers
14 views

2D Sprites vs UI Image Scripts in Unity

I am doing a 2D casual puzzle where the user can drag and drop some pieces into a board. The pieces are 2 or 3 or 4 tiles. Each tile may have text over the sprite. Target platform: Mobiles and ...
-2
votes
1answer
18 views

Unity3D SpotLight Terrain

Lights (spotlight, Point ) Problem in the Terrain ?
0
votes
1answer
60 views

Unity 5 - Texture/Material rendering issue

I am working on a Minesweeper clone that started as a Unity 4.6 project and ended up as a Unity 5 project. I have cube objects that use Legacy Shaders/Diffuse. I am new to Unity 5, so I am not fully ...
2
votes
1answer
12 views

Inspector stuck on Editor Settings

Probably a silly question, but I'm having an issue where I can't view the properties of an object in the inspector window. It seems to be stuck on "Editor Settings". If I click an object I can't view ...
0
votes
1answer
48 views

How do I make the ui button to move my character?

How do I make my character move left,right and jump when click ui buttons using this code? using UnityEngine; using System.Collections; public class Player: MonoBehaviour { public float maxspeed = ...
0
votes
0answers
18 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
29 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
23 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
14 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
16 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
13 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
22 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
37 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
32 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
20 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
57 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
26 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
20 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
19 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
32 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
15 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
39 views
+50

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
35 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
42 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
33 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
73 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
27 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
37 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
54 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
31 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
37 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
28 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
110 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
29 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
45 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
127 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 ...