Add/Removing Child objects from a list?
Apparently in order to move multiple instantiated objects, they need to be in a list. Which is great and all. But I have 0 clue how to do such a thing and any attempt at searching for a decent answer...
View ArticleAndroid font gets jumbled and loses characters when i press buttons
ok so i have a shop menu i can open that is a gui layout, and when i click to buy things the purchase button changes to an on off toggle for the upgrade it works fine but for some reason if i purchase...
View ArticleCould moderators other than me please close questions with no formatting
I am not a fantastic coder, and I am just doing a lot of this stuff as a hobby, but I have loved using the Unity Engine so far, its been a blast! Anyway, the game I am working on works fine in the...
View ArticleCan I assign a group of meshes as one LOD level?
I am talking about how there is different levels you can set to percent LOD, and you put in lower and lower detail model, but does it have to be a single mesh? or can u assign a group of meshes to a...
View ArticleCalling variable accross scripts in C# problem
I have a public variable called powerUnits that I wish to be used across a variety of scripts. For the particular script I am writing, I want to check the availability of the variable then reduce it...
View Articlewindows to ios?
hello unity community, i was wondering im new to unity and i have the free version and im thinking about purchasing a licence for android and ios, i make android apps right now, so the question's are...
View ArticleRandom Button / Plane Generation.
Hello Unity Community Basically I'm making a simple reflex game were you have a total of 5 buttons, they're all set up on planes acting like buttons with the following letters on them: Q, W, E, R, T...
View ArticleOrienting multiple objects on the same line
Hello, I am trying to create a mini golf game. I am having a bit of trouble figuring out an issue. When the golf ball is at rest and has stopped moving, I would like the golf club to re-orient itself a...
View ArticlePlay One time sound on press key
Hi, I get script to Play sound on press key, but this play sound each time i press key and i want play only one time the sound. here is the script : var audio01 : AudioClip; function Update () { if...
View ArticleHow to generate random number that will not be repeated?
I want to generate a random number several times, using the following function: for (var i: int = 0; i <4; i + +) { randomPick = Random.Range (1,4); } But to each number only occur once. How to...
View ArticleSetting up inputs for multiple gamepads/controllers
Hi there, I've been scouring the forums for some help on establishing what I need to do in order to setup unity's inputs for controllers, but most posts are a little advanced for me. That is to say,...
View ArticleRacing Ai? long read
Hello. I was wondering if someone could shed some light on how games generally base ai for racing... Like what is the logic? Im not asking for code, but the idea behind the ai they use. For example,...
View ArticleI don't understand the random number generator output.
I'm trying to generate a random angle between around 30 and 150 (for a brick breaker game, the ball leaving the paddle at the start). This is the code I'm using: void Start () { // Calculates a random...
View Articlerotation assignment vs multiplication with Quaternion
Hi All, I cant't figure this one... Say I have game object and I want to rotate it with the aid of Quaternion. Say that the quaternion named q. What is the difference between transform.rotation = q;...
View Article[C#] How to destroy a wall next to my trigger?
In my game I'd like for a wall to explode next to my character when he passes through an invisible box collision trigger next to the wall. I have a solid box prefab which spawns broken pieces that will...
View ArticleDetect Side of Collision
I'm making a brick breaker game, and I'm trying to detect which side of the bricks the ball is hitting, so I can know which way to make the ball bounce. I have this script attached to each of the...
View ArticleDynamic labyrinth with A*
I need to connect 3 points "a" on top of the screen to their respectives points "b" at the bottom. this connection I would like to do it via labyrinths that are intertwined. so far so good, the real...
View ArticlePlayer Movement by Touch in only four Direction.
I am not understand to make player movement by touch for iOS device. I want to make this player movement in only four direction like up, down, left, right. Let me know some idea or demo script to get...
View ArticleMy CharacterController walks backwards (2D small script)
When I go left my CharacterController turns left which is good **but** he walks to the right. Going right works fine and while I know why hes walking backwards I cannot figure out how to fix it. This...
View ArticleHiRes Texture Background
Hi guys, i've looked around several answers and i still have some doubts about this. Here's the case, i am developing a game for iPad 3 which has a a resolution display of 2048x1536 so we are using...
View Article