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

Optimization issues for particle based fluid simulation unity [on hold]

I am implementing a 2D particle based fluid simulation, got it mostly working but the performance was horrible. This was expected as I was making a quick prototype. The first prototype used a ...
0
votes
1answer
70 views

Assigning multiple game objects to a single sprite (Unity)

I've been making a pokemon game clone on my own with Unity, as I'm a beginner and just trying to learn. Up until now I've been splicing the town pictures and manually putting them together, but this ...
1
vote
0answers
14 views

Getting any type in Unity Inspector

I am developing a SaveManager system for my games. Basicly what it should do is; 1) Gets the "ANY" user created Serializable class by Drag&Drop to inspector. (save data). 2) Writes that class to ...
0
votes
1answer
12 views

Changing Light Intensity value

I have this code for creating a light: GameObject lightGameObject = new GameObject ("Light1"); lightGameObject.AddComponent (typeof(Light)); ...
0
votes
0answers
16 views

Action script 3.0 [on hold]

I'm thinking to join course for game programming and the syllabus this course covering is Action Script ,Adobe Air,Unity 3d and Cocos 2d. I need opinion wheather should i join course or not .
0
votes
0answers
14 views

Problems with Raycasting Requirements

Im working on a script which kinda works like an Enemy AI. Its kinda like a detection system with requirements that are required to be met. This is a recent question i asked using my code Raycast ...
1
vote
1answer
135 views

collision in different layer

I have a game object called game object 1 on screen. It holds an image called red . when i drag an image called "animal" on a game object 1 collision happening fine and destroys the "animal" in same ...
0
votes
1answer
24 views

Cannot store value in transform.position.y

Well I have this line of code Vector3 pos = cell.CellPosition; float light1Height = 10f; pos.y = light1Height; lightGameObject.transform.position.y = ...
1
vote
1answer
15 views

Anchoring HingeJoint2D to clicked upon spot

I'm creating a 2D game where the user can click and drag objects around. This is done by connecting a 'Hand' object to the object the user is current clicking on with a HingeJoint2D. Right now it ...
0
votes
1answer
18 views

Can't play animation from script in unity

I'm making a 2D sidescrolling game in Unity, and when the player shoots an obstacle, I want the obstacle animation to play and then destroy itself. I got it to destroy itself, but the animation won't ...
0
votes
1answer
23 views

Raycast Flashing problem

Can anyone tell me what is wrong with me code ? If you can see, whenever the player is in range of the raycast. The enemy turns red. But for some reason. Even when the player has meet the requirement ...
2
votes
1answer
182 views

Advanced Cellular Automata to generate caves

I am trying to make caves in Unity. To do this, I am trying to use cellular automata. I found the following(Rouge Basin Cellular Automata for Caves) that resembles what I am trying to accomplish. But ...
1
vote
2answers
350 views

Using A*Pathfinding on terrain created by scripts?

I'm looking to use A* Path-finding as a method of navigating my game terrain. Trouble is, my terrain is built upon play using a script and A* grid does not detect this, therefore marking all nodes as ...
0
votes
1answer
256 views

How do I animate Unity GUIComponents?

I want to transform my GUIWindow from the bottom of the screen to the middle whenever the user presses a button. How can I do this?
2
votes
2answers
58 views

Jumping higher when the player touches a trigger collider in Unity

Im using Unity engine to create a 2D platformer. My character can single/double jump, this works fine everywhere except when i am in range of a collider with a IsTrigger set to TRUE, then my character ...
2
votes
1answer
332 views

How to translate swipe gestures into rotations?

I am making a snake game. I want to rotate my snake in the direction specified by swiping on the screen, the directions are limited to orthogonals (90 degree increments). It's an android game. Can ...
0
votes
1answer
218 views

Unity3D: Change Background Image on a GUI Skin

So I'm testing with GUI Skins and trying to make something cool, and I want to change the background image of the application background. This is what I mean In the screenshot above, the background ...
-1
votes
0answers
36 views

Unity 4.6 GUI C# - How To Dynamically handle events generated by any gui element

Hello thanks for your time! GOAL: What im trying to achieve is to create my own small event system for new ui 4.6 elements so i can manipulate them by code , in this small test project im trying ...
0
votes
0answers
17 views

Unity game works on iOS cannot start as apk on Android [on hold]

Im using Unity for my game and I exported it successfully to iOS. Now I exported the apk for Android and tried to install it. Here is the result after the installation: ...
0
votes
2answers
45 views

how can I put an array of objects into a script?

I want to create an animation from an object sequence. I already achieved exactly what I needed with the "MeshAnimaton script" from bummzack: using UnityEngine; using System.Collections; /** * ...
-1
votes
1answer
19 views

Unity 2D collision detector not working

I'm making a 2D sidescrolling game in Unity where the player shoots at obstacles while running. But nothing I try seems to get the collision detection to work. This is the obstacle script: void ...
0
votes
1answer
22 views

How do I make this block go back to the left with another click?

This is the script I've written so far which makes the block move from the left of the screen to the right on a mouse click. What I want to achieve is for the block to move back to the left when I ...
2
votes
1answer
117 views

Unity access Label in GUI?

There is a quick and dirty appreoch to creating text boxes: void OnGUI(){ GUILayout.Label("Text 1"); } It works well. But, since the Label method returns void, how do I access this later on? ...
0
votes
1answer
16 views

My Collider2D checkerscript not working [on hold]

So today I started working on my little android game but I ran into a problem whit my moving script. Whenever I jump I will be able to jump more than once.I have attached the script to the player and ...
2
votes
0answers
165 views

How do I do 2D z-index parallax in Unity3d?

I am new to unity3d and want to develop a simple game like crazy cabie. I have to implement a z-index parallax for moving sprites towards the player and generating new sprite at the farthest z-index. ...
-3
votes
0answers
23 views

Display game object one after the another [on hold]

I have two gameobject.I want to display one gameobject after another, after a specific time.How can do this I tried out with this code private bool showLabel = false; private bool showLabe2 = false; ...
1
vote
0answers
36 views

How do I fix the duplicate files problem in MonoDevelop?

MonoDevelop-Unity counts some files twice in a project of mine. This is very annoying, both for the "go to declaration" feature, and for the search (who finds twice anything who it would find). Not ...
0
votes
1answer
192 views

Game object position issue in unity3d

I have a set of objects placed on the same layer where all the objects are invisible except one .When i drag an object in to a selected area the current dragged object get destroyed and the object ...
0
votes
1answer
23 views

Unity GUIText not visible and not WYSIWYG

I have placed a Guitext in my hierarchy: At first it was visible, now I can't see it when I run the game. When it was visible: When modifying the position on scene, the GUIText appears on one ...
0
votes
1answer
16 views

Changing one prefab changes all other instances of that prefab too

I have made two prefabs of my enemies for my 2D game: normal and damaged. The I put several of these prefabs on scene. When enemies health <=0 I need to destroy its GameObject and then instantiate ...
0
votes
0answers
11 views

How can I change the Color of the halo in unity [on hold]

I have created a gameobject called sphere.then from the component I have added halo and given the color green.After 3 sec the halo color should change from green to red .How can do this. ...
0
votes
1answer
40 views

Smoother object movement in Unity?

I'm using this code in my script to move a gameobject: void Update () { // Move the object forward along its z axis 1 unit/second. transform.position = new Vector2(transform.position.x , ...
0
votes
0answers
11 views

Which software to use to create an interface for a character-based aplication? [on hold]

I am a newbie to interface design and would like to expand my knowledge on this. My queries are pretty basic (can be silly too). I am planning to create a Character based Android application that has ...
0
votes
1answer
158 views

VertexColor shader is not working correctly in built application

I want to change the vertex colors of my mesh. The light sources must not affect the objects with this shader, its lighting must be determined only by its vertices colors, so I turned the Lighting ...
3
votes
1answer
137 views

How to mirror flip animation curves in Unity?

I have a animation that moves my camera from left to right. Now I'd like to copy it with 'mirror' transformation so I can use it to move from right to left. Is it possible to do it using script or ...
0
votes
1answer
58 views

How to access multiple 2DTexture which is assigned in Unity3D inspector panel created by an array in C#?

I am making a puzzle game, i made 5X5 cube, lets take example of orange. very left column is orange, upper with orange dot is static and lower with orange dot is also static. inbetween there are 3 ...
0
votes
2answers
365 views

Set new forward directions based on camera position

I have a 3rd person camera which can rotate around the player. When I look at the back of the player and press forward, player goes forward. Then I rotate 360 around the player and "forward ...
1
vote
1answer
29 views

How to make sure that all the UI elements were the same size on all screens in new Unity 4.6 UI system

I have made a HUD for my 2d mobile game with the help of the new UI system, that was introduced in Unity 4.6. But when I am trying to play game in Unity editor, the UI elements have normal size, but ...
0
votes
1answer
21 views

Unity - Sprite with collider2d hits a rigidbody - Searching for a way to make the rigidbody not to react

When a sprite with a box collider 2d hits the game object (rigid body), the collision detection is fired and I get the event. However, the sprite moves the rigidbody and I have trouble restoring it ...
0
votes
1answer
54 views

How to detect that user has touched UI canvas in Unity 4.6?

In my 2d game I have a HUD with some buttons on it. To make it I am using new UI system, which was presented in Unity 4.6. When user is touching button, I am running method, which was declared in ...
0
votes
1answer
141 views

Sending RPC calls from server to client inside Unity

In my game inside Unity, I have two scenes setup. One for the main server ( acts like authoritative server ) and the other scene for my client. The game starts once my client connects to the server. ...
0
votes
1answer
32 views

Access other scripts variables and classes of different directory

Im trying to learn how to access another scripts variable and classes of different direction, in Unity3D. But for some reason it keeps giving me the error. NullReferenceException: Object reference ...
0
votes
1answer
39 views

How to create particle system by script

I have created a gameObject called "Sphere". After 5 secs the gameobject starts rotating. Along with the rotation I need to emit partical from the object. How can I do this?
1
vote
1answer
77 views

What is the cause of this lighting artifact on my dynamic terrain mesh?

I am generating my own terrain mesh in Unity, using pseudo-random noise to determine the height. I construct the mesh using quads, each quad is composed of two triangles. All seems to be going well, ...
0
votes
0answers
27 views

Error when building game for Android in Unity

I just tried to export my app as apk for Android. I get this error: Error building Player: Win32Exception: ApplicationName='C:\Program Files (x86)\Java\jre1.6.0_24\bin\javac.exe', ...
3
votes
3answers
1k views

Unity 4 - Some Rigidbodies Won't Fall Asleep

I'm having this problem in the free edition of Unity 4.1 where rigidbodies aren't falling asleep (and yes, I've tried playing with the sleepVelocity and sleepAngularVelocity values!). I've read the ...
2
votes
1answer
32 views

Find asset labels at runtime

Unity allows me to add multiple labels to my assets in the editor (the little blue luggage tag in the corner of the inspector). I can use the Asset Database to find all assets with a certain tag from ...
-1
votes
0answers
16 views

(Unity 3D) Mark as Legacy AnimationClip [closed]

(Unity 3D) So, i need to mark as Legacy an Animation, but the AnimationClip is read-only, because it's an FBX. I got it from the Assets Store. What can i do?
0
votes
0answers
35 views

Unity3D: Problem with enemies when they follow the character [closed]

My native language is Spanish so sorry for the language. I began developing in Unity3D a couple of months ago and I have not had many problems. However, I am stuck with the script that makes the ...
10
votes
4answers
293 views

How could I constrain player movement to the surface of a 3D object using Unity?

I'm trying to create an effect similar to that of Mario Galaxy or Geometry Wars 3 where as the player walks around the "planet" gravity seems to adjust and they don't fall off the edge of the object ...