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)

1
vote
1answer
16 views

Coroutine to move to position passing the movement speed?

I'm using this coroutine to move my player to a new position. The problem is that it takes the duration as an argument instead of the speed of the object. Which makes it hard for me to make sure the ...
0
votes
0answers
22 views

Need help solving an acute-triangle to find the distance to the outside of my object

I recently asked a question here: How would I check the range against the entirety of an enemy object, and not just it's transform.position? That was accurately answered, and works perfectly ...
0
votes
0answers
54 views

How to move an 2D character(with animation) to mouse click position in C#?

i am going to develop a simple game called waste collection.In which if i click on a waste the character needs to walk to certain waste and collect it. Startingly the character is in the middle ...
0
votes
2answers
37 views

Is it possible to load local html pages into unity?

Is it possible to open a HTML page inside UNITY, with the page functioning normally?
0
votes
0answers
10 views

How do I get GL.IssueRenderEvent to work on iOS with Unity 5?

I'm trying to get GL.IssuePluginEvent to work, according to this: http://docs.unity3d.com/Manual/NativePluginInterface.html I have a plugin made with this code: extern "C" { void ...
2
votes
1answer
41 views

How to divide sprite sheet, but keeping the in same png?

first post here, but couldn't find an exact answer in your database, so guess I'll have to ask. I want to know how it is possible to create a ".META" file for a .png so you can extract individual ...
1
vote
0answers
14 views

Custom Editor - keep default look but add more

What I would like to know is if there is a easy way using OnInspectorGUI, to replace the inspector with one that includes just one or two additional fields (so that it looks identical to the ...
0
votes
0answers
29 views

Game design for matchmaking

I am currently working on multiplayer game(nothing serious, experimenting), every "zone" is devided into Dictionary(C#), each dictonary has UserId(key) and 3 values (Player Ability, Player Level, ...
0
votes
0answers
22 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
9 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
3 views

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 ...
5
votes
2answers
62 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
2answers
44 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
64 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
27 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
30 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
1answer
27 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
20 views

Unity3D SpotLight Terrain

Lights (spotlight, Point ) Problem in the Terrain ?
0
votes
1answer
65 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
13 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
58 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
21 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
43 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)? ! EDIT: I made a script and put it on the purple ...
0
votes
1answer
24 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
17 views

Character fixed angle? [duplicate]

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
16 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
23 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
38 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
15 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
11 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
21 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
61 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
28 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
22 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
20 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
35 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
17 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
57 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
41 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
48 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
34 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
8 views

Unity rigidbody not moving [closed]

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
78 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
28 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
1answer
53 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
58 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 ...