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.
0
votes
1answer
14 views
How to flick gameObject using Touch?
I've been searching for a solution for my problem for a while on the web, but i didn't find anything that work properly
What i want to do
I have a bouncing ball and I want to let the user flick it ...
0
votes
0answers
16 views
How to align angular velocity wit target rotation in 3D?
I'm making a space crew sim (controlling a ship) and have recently posted a question about how to calculate ETA between two rotations. I how now a new question more well defined.
Background:
I have ...
0
votes
0answers
24 views
Unity - render 10,000 objects at once using DrawMesh [on hold]
If I was gonna run the following function in update 10,000 times to draw a mesh at a certain position, would this be an efficient way to do it? Would there be a way that would get better performance ...
0
votes
0answers
13 views
Unity 64 bit support compiler causes problems? [on hold]
I just updated my unity to 4.6.2 and compiled it to support 64 bit.
On my desktop version, here is the start screen in the monitor:
https://www.dropbox.com/s/ar5xbdqer9vog9x/test1.jpg?dl=0
When I ...
0
votes
1answer
38 views
Graphics Raycaster of Unity; How does it work?
I'm making a small game for the first time and enjoying it thus far. The only thing that keeps bothering me is that I can't find a human explanation of what the graphics raycaster does. What's the ...
1
vote
1answer
31 views
Where is Light in Game view
Very Basic Question.when i run the the game the game Mode is Too dark as shown below in the picture. please suggest me some Setting how to globally switch on built in light while Running the game in ...
1
vote
2answers
49 views
Rotating an object towards a target on the Y axis
I am attempting to rotate a 3D object on its Y-axis towards a target it is looking at. I have always struggled with rotations so I would like to try to avoid using Unity's built in functions, i.e ...
0
votes
1answer
37 views
Handling an item database with procedurally generated items?
Let's say you have an item database which has every item in your game.
This works fine for regular items like a Health Potion, a normal Iron Sword etc, because these items have ItemID's so we can get ...
0
votes
2answers
84 views
Can I develop a game for Kinect without a Kinect?
I have to make a game in Unity3D using Kinect. The problem is I don't have the Kinect yet. I need to wait until they deliver it to me.
Can I imitate Kinect's movement for debugging my app?
0
votes
1answer
22 views
rating prompt for unity
I want to integrate a rating prompt to ask player to rate my game. I know there is iRate and Appirater for iOS and Android. Is there anyone for Unity? I want to have one that can use my own images. ...
1
vote
1answer
20 views
Unity game in edit the scene mode all of a sudden became incredibly slow/“laggy”
So I recently have been working on a game. So far I have very few assets in the game, which are a point light, a piece of terrain (which is textured), a player controller and a tree. Everything was ...
0
votes
1answer
20 views
Is it possible to tile box colliders without causing “false” collisions in Unity3D?
This is in regards to something like a sidescroller where you have a tiled map where each tile uses a 2d box collider.
If you use a 2d circular collider as an example for your character, as it rolls ...
0
votes
1answer
15 views
Problem with NGUI Unity 2D Sprite across devices
I have a problem with NGUI for Unity, using the Unity 2D Sprite objects.
First, have this image:
And then create an NGUI Unity 2D Sprite object in the scene. Apply this image and you get this:
...
0
votes
1answer
26 views
Can I Debug.Log() on Android without all the callstack spam?
I get this:
I/Unity ( 1908): Serialized file length: 754 bytes.
I/Unity ( 1908): UnityEngine.Debug:Internal_Log(Int32, String, Object)
I/Unity ( 1908): UnityEngine.Debug:Log(Object)
I/Unity ( ...
0
votes
1answer
32 views
How to calculate the estimated time of arrival and control signal between two quaternion?
I'm trying to wrap my head around a control algorithm for a space game. If the user sets a target rotation I want to get a ETA counter and show the engine output. The only input to the system is a max ...
0
votes
1answer
19 views
Unity and Chartboost loading problems
I implemented chartboost in my ios game and locally it wors great.
I can receive ads.
Now my game is online but in the google analytics I get only error messages from
the game, meaning the ...
0
votes
3answers
45 views
Backround turning, follow the character
In my Unity2d-platformer, i need background to follow the character, so i just attach it. And when character turn left from right (or right-to-left), background turn too. How can i make my background ...
0
votes
1answer
44 views
Migrate from NGUI to Unity UI
I used NGUI 2 and NGUI 3 for our UI. Now want to upgrade to Unity 4.6 and migrate all NGUI to Unity UI. Is there any tools? What's the best practice?
0
votes
2answers
35 views
Speed dependent arc question
I'm currenlty working on an assignment and would appreciate any sort of help on the following implementation
The question follows
We are tasked to implement some heuristics but one of them is ...
0
votes
2answers
49 views
Creating a unit selection box in Unity (2D)
I've been trying to get my head around how to create a selection box for a selected unit in a 2D top-down type game. When you click on a unit, a small box would appear around that unit based on some ...
0
votes
1answer
21 views
Unity light object not affect some parts of a 3D model
So far I've used Unity only for 2D projects. But now I need to implement a 3D scene in my game. I downloaded a tree model from the asset store and placed it in my scene. I couldn't help but notice ...
0
votes
0answers
30 views
Unity strange string problem [on hold]
I am using Unity 4 to develop my own game and today i occured a strange problem. I have 2 global strings declared in my script and i am trying to set them a specific value but they remain null. Do you ...
0
votes
0answers
29 views
I want to create a Market for my game in unity .How? [on hold]
I want to create a Market for my game where users can buy health and ammo from the coins they earned in the game what asset or what should I implement to make this in Unity.
0
votes
1answer
54 views
Is normal mapping cpu overhead or gpu overhead?
In Unity3D Engine,
I usually apply normal mapping using fragment shader.
In this case,
this normal mapping is cpu overhead or gpu overhead?
0
votes
0answers
45 views
Keeping object a fixed distance from the ground, buggy behavior
I'm trying to make a script that will keep my object exactly 1 meter from the ground. So far I've got the following code :
using UnityEngine;
using System.Collections;
public class ...
1
vote
3answers
158 views
Create random polygon shapes
I want to make a random shape made out of points. I want the points to create a polygon shape. Is there a clever way to create a random shape like this? Im thinking going throug X points and giving ...
1
vote
1answer
58 views
What is the correct way to raycast on click?
I am using raycast from screen point to detect if the user has clicked/touched on something.
The following fails 1/10 times; at first I thought due to the raycast missing the subject below, but after ...
0
votes
0answers
15 views
How to draw borders onto a map in Unity? [duplicate]
I am trying to design a map for my strategy game and Unity seems to have a lot of very helpful tools that simplify the process. I am trying to make a territory system in Unity (using the C# language) ...
0
votes
2answers
46 views
How do I access my existing script from a different script attached to a different gameobject?
I have my health(script) component on my player gameobject that gets boosted whenever we tap on that gameobject. However, I want to add a separate Gui texture button gameobject and tap on that to ...
3
votes
1answer
67 views
Unity3D - Button Slicing Problem
I'm having trouble getting my button to appear correctly, as you can see in the image below, the right and top sides are stretched out and not displaying properly. I cannot figure out if this is a ...
1
vote
0answers
42 views
How to project a foam trail on dynamically changing mesh
I am trying to create water, and right now I got it through dynamically generating waves on a mesh. But now I want to make my boat manipulate these waves, and cause a Kelvin Wake on top of this.
...
0
votes
0answers
42 views
Best way to place sprite (which collides) on the top of screen
My 2D game is being developed for different resolutions (iphones/ipads).
Somewhere I have the code to handle multiple resolutions(btw is it a good approach?):
int defaultWidth = 1536;
int ...
2
votes
1answer
43 views
NAT punchthrough failed
I finished my game while I was unaware of this error since it only shows up when I disable "WIFI" on my phone and testing it with 3G and 4G. Otherwise, when both devices are on my personal network ...
0
votes
2answers
37 views
How do I add a gameobject to a prefab's script's public gameobject field in Unity?
Okay, I have a prefab with a script. It has the public field gameobject, and I see that in the inspector. When I try to drag an object from the scene into that slot, I'm simply unable to. No error or ...
0
votes
2answers
28 views
Camera position and angle different when running inside Unity and when running on Android
On Windows, running Unity 4.6.1p5, my simple game with only a cube, camera and light looks like this
but under Android (Gingerbread on a 5 inch Galaxy Player) the cube appears lower down, slightly ...
1
vote
1answer
21 views
Fire an event while the mouse is down within my box 2d collider in Unity
The method OnMouseDown() is called once when the mouse presses my box 2d collider.
Is there a method that keeps firing while the mouse is still holding the button down inside the collider? Something ...
0
votes
0answers
6 views
How can SystemInfo.deviceUniqueIdentifier be unique? [migrated]
According to http://docs.unity3d.com/ScriptReference/SystemInfo-deviceUniqueIdentifier.html, SystemInfo.deviceUniqueIdentifier
It is guaranteed to be unique for every device (Read Only).
If you ...
-2
votes
0answers
20 views
Drag and drop object reference in inspector doesn't work
I have a an object with a script attached to it.
This script has:
public GameObject starPrefab;
at the top of it.
I have been told that having this in my script means I can drag and drop prefabs ...
-1
votes
1answer
49 views
Can't post from Unity to Facebook feed properly
I'm using Facebook SDK for Unity.
I'm posting to the user's feed with the Feed function.
According to Facebook, I do not need any permission for it.
"Sharing stories via Feed Dialog does not require ...
0
votes
1answer
38 views
Screen record in unity3d
How to do screen record in unity? I want to record my screen(gameplay) during my running game. That should be play/stop , replay , save that recording on locally from device, open/load from my device ...
0
votes
0answers
41 views
how to create a responsive scene
I'm currently creating a 2d android,IOS game using unity engine ,I'm testing the game on a nexus 5,Iphone 5s device,Everything till now is working fine and i am pretty happy with the result ,but the ...
1
vote
1answer
59 views
State system and animation of derived classes
I'm trying to get some kind of state system for my game objects.
I have a base Actor class that is derived by classes like Policeman, Informant or Brawler. Each of those classes describes different ...
0
votes
1answer
28 views
Cube goes through objects
I have Unity Pro 4.6.1 and I am trying to make a cube move with the arrow keys. Here are the barriers before I move the cube:
And here's when I move the cube (the problem):
I don't want the ...
0
votes
1answer
24 views
change sprite color from properties of parent object in inspector
I have a compound GameObject that is made up of 5 sprites name dot1 till 5.
I'd like to have a little script on the parent object that would allow me to change the colours of the child objects from ...
2
votes
0answers
27 views
Unity Canvas blocking objects in Editor
I think I am missing something really basic here..., I'm creating a 2D game in unity, and the UI Canvas (with the setting "Screen Space - Overlay") is blocking exactly a quarter of my workspace. I can ...
1
vote
1answer
17 views
Unity Android Build SDK Problem
So I've been trying to build my unity project for android, but my problem is that I don't know how to find the Android SDK. I have the old developer bundle installed, when it was still the one with ...
1
vote
1answer
37 views
Unity3D setting blend mode in shader using vertex data
I'm porting a game from iOS / Obj-C / OpenGL ES 2.0 to Unity.
I have a procedural mesh script that generates a batch of quads that need to blend together to create a game board. Some of the quads ...
0
votes
1answer
34 views
How to increase the selectable size of an object for dragging
I am currently dragging a gameobject like this.
Vector3 screenSpace;
Vector3 offset;
void OnMouseDown(){
//translate the cubes position from the world to Screen Point
screenSpace = ...
1
vote
1answer
53 views
Methods to remove horizontal world slices of voxels in a 3D voxel world
I've recently been working on a hobby voxel world recently.
I'm currently interested in ideas or solutions which would enable me to basically step up and down the Y-axis 1 horizontal block slice at ...
-1
votes
0answers
56 views
can someone please look at my code [closed]
I'm more a 3d modeler but now try to work on a script to generate biomes on my infinite terrain.
it should generate a new biome through script 2(still have to make it)
when player moves 2000 ...