how much CPU do codes inside the update function use?
I need some **basic** but **exact** information about how calculations are done in unity. I know it depends on the process for example using `SendMessage` every frame can be a horrible resource hog....
View ArticleOnGUI() never being called in ExecuteInEditMode script
I'm trying to do something that I thought would be pretty simple, but is turning out to be very frustrating. I have a system of pathfinding waypoints, and I would like to make it easier to make...
View ArticleHow to limit the instantiation of a prefab/object?
I will explain this in the best way I can. I want to be able to instantiate an object(or a prefab) in a certain direction until it collides with a gameobject that has the "Wall" tag. When it hits the...
View ArticleRotate to direction object is facing?
hey guys, I'm working on a simple project for class. I want to have a rat run through a maze using the arrow keys, very simple. However, I'm trying to have it rotate to the direction its moving, how...
View ArticleTris and UVS mapping for mesh generation.
hi, I've been generating meshes via *Mesh* class. Regular planes are simple, since there geometer is a big loop with a single cut. but for more complex planes such as this im unsure how one would map...
View ArticleHow can I get the email associated with Google play on an android device?
Hi guys Like the question says I would like to retrieve the email associated with the device's Google play. I saw some games on the play store that were accessing all accounts on the device so seems...
View ArticleMarching cubes terrain, is this properly lit?
I made an implementation of the marching cubes algorithm and it seems as though my lighting is off. Here's a few images of what I mean. This first one is an image of the marching cubes terrain with the...
View ArticleAudio problems, how to turn up and down specifik audio sources?
So in having problems with audio, I want it to be so that when i click a button the sounds starts and it keep looping since it is suppose to be music, that is easy, but im having a hard time turning...
View ArticleHow to check my Game System Requirements?
Hey I am making a game that is using pretty good graphics but how do I check what the requirements are so I can put them on my website?
View ArticleWhy doesn't my players camera work and why does it spaz out randomly
For some strange reason in my multiplayer fps whenever you join a game and everything then spawn for some reason the mouse look does not work and the screen randomly spazzes out, I hadn't changed...
View ArticleEditor script executing before variable updated
I have a customized inspector window via an editor script. I have a little [ + ] and [ - ] button to add items to a List. The problem is when I press the [ + ] button to add a new item to the list, it...
View ArticleGoogle Play In-Game Transaction
Hi guys I was wondering what do I need to do to be able to in-game transaction on android? Thanks PS Without buying one of the plugins from asset store that is.
View ArticleHow do I make a Unityscript Dictionary with key= gameObject and value=list of...
I'm having trouble making a dictionary in unityscript that is in this form... Gameobject, List of GameObjects... Here's my try that fails syntax checking in unity: var Dict=new Dictionary.>();
View ArticleOverhead Camera Angle
Is it possible to have an over head camera angle in unity, such as pokemon? If you have to script it can some one tell me how. Thx - Ansuri
View ArticleNull RefferenceException Error when accessing bool from another script
Really don't need to explain much but basically one script needs to know when the game is over from another script. I have checked all over and I don't believe I am doing anything wrong but I am still...
View ArticleClimbing Walls
I am trying to create a side scroller game but having a little trouble on climbing. Is there a script someone can help me with which can make my character climb on the side of the walls? Is there...
View Articlemake my object face the direction of movement?
I have these two classes here, given to me as part of a project: using UnityEngine; using System.Collections; public class Ball: MonoBehaviour { public float moveSpeed = 30; void Update () { //var dir:...
View ArticleHow do I play a sound after the mouse goes through an object?
I'm doing a menu for my game and I don't know how to play a sound after the mouse pass through it... I just made it change the color and load the next level. for example. using UnityEngine; using...
View ArticleCan't Create MySqlCommand Object
I am getting a massive error when I try to make a MySqlCommand Object, and I have no idea why. Any help would be appreciated! Here is the code: using UnityEngine; using System; using...
View ArticleMake a button Without using GUI.
Unity's GUI system is okay, but I strongly dislike the way it handles GUI skins etc. What is the best way to create a button with just only a texture. Thanks in advance for any help!
View Article