Unity is a highly cross-platform engine that focuses on easy art pipeline process and uses Mono as its scripting back end.

learn more… | top users | synonyms (1)

0
votes
0answers
28 views

How can I inspect 3D model exactness?

I am neither a game designer nor a graphic designer. I am a .Net and C# software developer. I have a game project and I've still been studying to learn game concepts and technolgies for a year. ...
-1
votes
0answers
24 views

How to publish a windows game in DVD?

I recently made a title for windows , name : DeadShot . I made the game using the unity game engine . Now i have also build the player for windows x86 . I want to sell the game in local game stores ...
0
votes
2answers
28 views

How to read a data from text file in unity

Can anybody help me out with giving the steps needed for reading data from the text file in unity and how can the script be added.
0
votes
0answers
24 views

2D object grids to a dictionary

I'm pretty new to Unity and trying to figure out what a good way of transferring objects in a grid to a dictionary would be. For example, if i have a grid of 2D objects (squares) such as below ...
2
votes
0answers
38 views

How do I check whether a camera has unobstructed view of a GameObject?

I want to check if a GameObject is visible to the camera. The renderer.isVisible-method only checks if the camera is turned towards the object, not if there is anything between them (like a wall). ...
1
vote
0answers
33 views

How do I port a game to low-end phones?

I'm creating a 2D game using Unity. My intention is to have separate SD and HD versions of the game for Android and iPhone. However, it makes sense for me (due to information I have about my target ...
0
votes
1answer
39 views

How do I raycast to detect which hexagonal tile was clicked?

I want to detect the hexagonal tile a unit is on upon clicking on the unit. I was thinking of using a ray cast I can't get it to work. I'm trying to get the raycast to shoot from the bottom of the ...
0
votes
0answers
41 views

How to create a planet with a layer of water around it [on hold]

I am trying to make a world in a project in Unity3D and I am trying to make a planet filled with water and I want to make it look like a rock with a spherical layer of water. It's going to be a planet ...
0
votes
0answers
23 views

Unity3d Multiplayer Game | Personal Camera

I'm working on a multiplayer game on unity3d . so here comes the question...How can i attach a player clone to the script on a camera clone , just after the game started? I mean , I need to attach the ...
0
votes
0answers
10 views

Changing a single component of a prefab?

I'm working on a unity project and I'm looking to show the range of a certain character. However, the terrain is generated through a script at run time, and considering that the script uses the ...
0
votes
0answers
16 views

Scaling issue using a GUITexture on a sprite object in unity

I'm trying to make a Kinect game using MS-SDK wrapper from the Asset store in Unity, In the kinect manager script the Hand Cursor object is where you can set the gameObject you want to act as a ...
1
vote
1answer
52 views

Can I use flat shading on a generated mesh?

I tried to generate a mesh from code in Unity. The problem is, that the edges are automatically smoothed. When I import a model into Unity, I can set the smoothing angle of the edges, but is something ...
1
vote
0answers
54 views

How do I implement melee hit boxes for a top-down game?

For a 3D top-down game, how should I handle collision in melee combat? My game has no targeting system, so I can't use a simple distance check between attacker and target. What I am thinking is have ...
0
votes
0answers
22 views

Can not change rotation of prefabs

var angle = temp.transform.rotation.eulerAngles; angle.y = 90; temp.transform.rotation = Quaternion.Euler (angle); I have tried this and some other variation to change the rotation of ...
1
vote
0answers
35 views

Fixing text on the screen for Oculus Rift

I would like to fix text to the screen for an Oculus Rift in Unity. The text should say something like "get comfortable and then press any key". It seems like OVRGUI.StereoBox should work for this and ...
0
votes
0answers
28 views

Flocking Formation [on hold]

For my Game AI class, I need to create a flocking algorithm in which 20 objects are led by a leader, but they refuse to move as they should. It seems to start off well, but the objects get further ...
-2
votes
0answers
36 views

C# or Java (Pros and cons) [on hold]

I wanna start programming with unity3D.. Maybe a little platform game like a brick breaker and I was questionning myself about wich language I should begin with.. ? C# or Java ? Can you please just ...
-2
votes
0answers
30 views

C# or Java for first learning language? [on hold]

I wanna start programming with unity3D.. Maybe a little platform game like a brick breaker and I was questionning myself about wich language I should begin with.. ? C# or Java ? Those are the 2 that ...
0
votes
1answer
52 views

Skipping a loop in foreach? [on hold]

I'm trying to get Unity to filter through a list of nodes, but I am unsure on how to do so. This is what I have derived. foreach (TileNode z in map.nodes) { int num = TileNode z; ...
0
votes
0answers
21 views

I want make a box colleder for top, botton left and roght in c# but dont work [on hold]

my boxs colliders don't work I dont know the reason. ok well explained, I created 4 objects with their respective boxcollider2d, now I want that code add to up, down, left and right of the object ...
0
votes
0answers
16 views

Working with random numbers in Unity [duplicate]

I am randomly trying to generate few regions ( grass, ice, snow and water ) for one of my games inside Unity. Every time the game starts, these regions are randomly generated but at the same time I ...
0
votes
0answers
29 views

Unity-How to make a IOS game and play it? [closed]

So i was making a mobile game but to test it properly, i need to send it to my iPad (my ipad uses IOS 8). How do i send the game to my iPad and test it?
1
vote
1answer
53 views

How to deal with tags in a component

I have a component called "ReflectOffCollision". This component should obviously not need to be aware of specific details about the game such as tags. The problem is, I want to apply this script to an ...
0
votes
0answers
99 views

Bad quality of the sprite in Unity

I need to import a few sprites (background platform and sky) into my game scene but it seems that their quality after importing into Unity is too bad (they are blurred). The original resolution of ...
0
votes
1answer
37 views

Why does changing texture change it for both objects? [duplicate]

I have two identical objects in my Unity scene. When I change the texture of one, the texture is changed on the other, almost as though the first one is a prefab. Why is this happening and how can I ...
0
votes
1answer
58 views

What is the speed difference between cross platform HTML5 games and native mobile games? [closed]

Microsoft is advertising and promoting cross platform HTML5 game development. I am thinking of creating a simple 2D side scroller game and I am trying to decide what engine should I use for creating ...
1
vote
1answer
125 views

Mouse click movement

I need to make realistic human movement (3D) using mouse click. Get mouse click point using Raycast. Smoothly Slerp to LookRotation. Move transform.forward. Everything works fine, except I have ...
0
votes
0answers
33 views

Bring class variable into other class in Unity [closed]

Hi everyone Im creating a Combinaton Keypad for a house for a horror game. Im stuck on how to implement this variable from one class to another in my code. I want to have my Combination from my Keypad ...
0
votes
1answer
84 views

Enemy clones don't target player

In a small game that I'm making enemies multiply when you kill them, however when clones are instantiated they don't chase the player like the original prefabs do (example: ...
1
vote
0answers
37 views

Can I switch off scenery elements on a 3D model?

I am using a 3D asset that has flat scenery elements (3D island with 2D bushes). [1] Having encountered a number of problems with this scenery [2] I want to deactive it (not visible, not collidable, ...
-1
votes
1answer
60 views

How do we detect keypresses in a sequence? [closed]

using UnityEngine; using System.Collections; public class TrollingRowlandMK2 : MonoBehaviour { int cheat_progress = 0; float cheat_delay = 0.0f; void detect() {if(cheat_progress == 0 ...
0
votes
1answer
37 views

Combination Keypad in Unity

Im having a slight problem in getting my Combination keypad to work. Ok so basically I'm using gameObject buttons to use for the numbers 0-9. So each gameObject button has a number link to it. The ...
-1
votes
0answers
59 views

Fixing textures in unity

I have been having problems getting a texture to work in unity. This is what it looks like. The "maze" structure you see in the screenshots is infinitely thin if you look from the top. Does anybody ...
0
votes
0answers
29 views

Calling an android method from Unity3D with a JAR plugin

I am developing a game with Unity only for Android platform and I am requiring to share content of my game through an intent so I have implemented a JAR plugin according to several tutorials with this ...
1
vote
0answers
66 views

Dynamic Level Loads [ Story Saves ] [closed]

I have recently revisited the legend of zelda series and got inspired by it to create a game similar to majora's mask. After some slight work on the player movement and key game mechanics I started to ...
0
votes
0answers
34 views

How to make a wave in Water (Pro) for Unity 4.5.4 [closed]

I have Unity 4.5.4 on a Windows 8.1 system and I am trying to make waves for a project I am working on and I want to make small and simple waves for the ocean in my project. Anyway I can make waves?
0
votes
1answer
32 views

Help With C# Code Error [closed]

I am just starting to learn C# for the purposes of unity, but I have and error that I can't seem to solve. Sorry if my problem is the simplest problem out there I'm just starting C#. The error is: ...
1
vote
2answers
69 views

Locking frame rate to 60 in the editor

My game runs at several hundred frames per second. I want to limit it to 60. So I used Application.targetFrameRate = 60; This works on the iPhone. But in the editor it only reduced the frame ...
1
vote
1answer
46 views

Should I use textures that are the size of the object?

I've been reading but couldn't find an answer to my question: If I have an object, let's say 30x30. Should I use a texture that is 30x30, 300x300, or even 3000x3000 or should I follow 'the powers of ...
0
votes
0answers
21 views

get vector of enemies that facing player [duplicate]

if I have player location (4,6,-3), thee y- axis is vertical and I have enemies at (7, 6, 12), (16,6,11) and (11,6,1) how to calculate the vector of each enemies that is needed to face the player? how ...
0
votes
0answers
36 views

UDP implementation in Unity, unable to send to two different machines [closed]

Been trying to build upon a simple udp implementation in Unity that I came across on the unity forums: http://forum.unity3d.com/threads/simple-udp-implementation-send-read-via-mono-c.15900/ There are ...
1
vote
2answers
126 views

How should I store edge weights in my A* graph in C#?

I am working on A* pathfinding in Unity, using C#. I am currently implementing Dijkstra's shortest path algorithm. I have a Dictionary with nodes as keys and corresponding lists of adjacent neighbors ...
0
votes
2answers
41 views

Destroy GameObject as an Array of Transform instantiated destroying the whole array

I am trying to destroy a GameObject with the Destroy() method, but when I call it the whole array is destroyed, not just that element. //Instantiating the prefabs public Transform[] blue; foreach ...
2
votes
2answers
70 views

Detecting mouse clicks in Unity UI Beta

I want my game script to detect mouse clicks everywhere on my screen, except one corner where I have a pair of buttons to control the sound and will be handled separately. To help identify this ...
2
votes
1answer
56 views

Sending POST data with WWW in Unity C#

I would like to use Unity's WWW class to send a an HTTP request with POST data. So in my server, my PHP script can do something like $number = $_POST["NUMBER"]; According to ...
0
votes
2answers
123 views

Explaining vector math for a pendulum camera

I came across a code that I guess is doing a pendulum camera, that's the class name. I would like to know the math behind that. I would like also to know how to decipher those stuff in game math, ...
0
votes
1answer
44 views

Trigger an event when a game object touches a non-solid game object

For a 2d game, I are currently making an AI and I want it to jump when it touches a invisible cube, which isn't solid, how do I do this?
14
votes
3answers
2k views

How can I create a stretchy, breakable pizza cheese material?

I want to create realistic pizza and allow user interact with it. What I want: What I created: I created model of the pizza (8 pieces) in Blender, then imported it into Unity. The piece of ...
3
votes
2answers
137 views

How to design a drag and drop inventory system with transition from icons to game objects?

I’m trying to write a simple 2D game in Unity with an inventory where the user can drag and drop different objects on the screen. I need the inventory to contain icons which on drag will become ...
1
vote
1answer
79 views

Collision detection across multiple components

I have been reading this article: http://gameprogrammingpatterns.com/component.html which describes how a game object should be constructed out of components. It also encourages the decoupling of ...