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: Combine two UVs by alpha

I'm currently creating a voxel game like Minecraft. To display the damage of blocks, I want to combine the alpha channel of one part of my texture map with the actual texture (like Minecraft does), ...
0
votes
0answers
22 views

Pros of Unity pro license for a 2D game targeting mobile devices

With Unity 4.6 out, what need really is there for the pro license version when creating a 2D game (forgetting price at the moment)? I'm seeing that maybe it's really only the atlas builder. If you ...
0
votes
1answer
12 views

accessing GUIText and recieveing NullReferenceException Error

I Have this line of code public class HSLerp3 : MonoBehaviour { private GUIText textFade; private float startAlpha = 0f; private float damping = 0.5f; // Use this for initialization ...
0
votes
0answers
14 views

Creating a single GUI Text with Fade-In

I have this line of code void Update () { float alVal = 0.0f; float damping = 1f; alVal += damping * Time.time; GameObject text2 = new GameObject(); text2.AddComponent ...
1
vote
0answers
15 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
0answers
19 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
17 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
0answers
15 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 ...
0
votes
1answer
15 views

Changing Light Intensity value

I have this code for creating a light: GameObject lightGameObject = new GameObject ("Light1"); lightGameObject.AddComponent (typeof(Light)); ...
0
votes
1answer
26 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 = ...
2
votes
1answer
188 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 ...
0
votes
1answer
20 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 ...
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
25 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 ...
-1
votes
0answers
37 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
1answer
20 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
23 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 ...
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 ...
-3
votes
0answers
24 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; ...
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
2answers
47 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; /** * ...
0
votes
1answer
25 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
0answers
13 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
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
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
33 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
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
56 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 ...
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
0answers
28 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', ...
0
votes
1answer
41 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
79 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, ...
-1
votes
0answers
17 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
36 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 ...
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 ...
1
vote
2answers
93 views

Restricting character movement to “rails”

I'm building a Pacman clone in Unity 3D and am now thinking about how to restrict the movement of the player to the hallways that the map is made up of. Basically, the player is only allowed to ...
0
votes
0answers
32 views

Beginner - How to get widht of quad with png? [closed]

I have a huge Quad and a PNG as a child object. The PNG covers the whole game area / screen. The problem is I don't know how do I find out the width of the current game object!
0
votes
1answer
27 views

How to reference UnityEditor in external DLL when using UnityVS, successfully?

So I'm trying to put my scripts and custom inspector editor scripts in two external DLLs and I'm facing a problem on my Editor DLL. First of, I'm using UnityVS with Visual Studio 2013 Ultimate. I ...
0
votes
0answers
44 views

Unity 2d Side Scrolling Mobile Prefab Problem [closed]

hi im trying to use the 2d side scrolling prefab that comes with the standard mobile assets. When i drag it onto my heiarchy its default position is set and i can see the touchpads. But when i play ...
1
vote
2answers
108 views

How can I highlight and move to adjacent tiles in an isometric grid?

I trying to create a turn-based strategy game where you move a game object from one tile of a grid to another tile near it. I have created the grid using sprites and game objects but can't sort out ...
-3
votes
1answer
54 views

Direct raycasting from moving point A and moving Point B

I am attempting to raycast from Point A to Point A (both moving points). I dont understand the comcept of raycasting (direction). Update() { player = GameObject.FindGameObjectWithTag ("Player"); ...
2
votes
1answer
64 views

2D collision of thrown objects in Unity

I am currently working on a game inspired by traditional 2D Zelda games ("Link To The Past", etc.) in Unity using the 2D settings. I am looking for the best way to handle objects that the character ...
0
votes
1answer
70 views

How can I raycast between two moving objects in Unity?

How can I raycast between two moving objects? I want to raycast from a moving enemy to a moving player. I dont know how to actually code to make the direction work. using UnityEngine; using ...
1
vote
3answers
83 views

3D Unity characters without Maya

I have been writing 2D iOS games for a while and I'm looking into getting into 3D. I want to know if Maya is required for making 3D sprites or if you can easily make your 3D sprites using just Unity ...
0
votes
1answer
54 views

How to create sandbox game [closed]

I have a lot of experience with programming but I'm new in game development world, so I don't know what I don't know. I want to create a MMORPG sandbox game. When I say sandbox game I have something ...
6
votes
2answers
138 views

How can I draw a line of certain length and direction?

I want to create a line of certain length and direction. What I mean by this is drawing a line from Point A to Point B. Normally in Unity C# to draw a line from Point A to Point B is simply: ...
-1
votes
0answers
35 views

Respawn destroyed object in Unity

I have this script where as to when i hit a trigger my enemy spawns at a random time then the enemy destroy itself at a random time. I want to respawn the enemy again so it can do this over and over ...
2
votes
1answer
59 views

How do I spawn an enemy at one of many spawn points in Unity?

I have a spawn script that so far only creates one Enemy spawn point and enemy trigger while only spawning one enemy. Instead, I want it to create multiple spawns and triggers, but keep it such that ...