How to call a static function at game start
Hello Unity Answers and thankyou, I'm new to Unity and loving it so far. I'm setting up basic game tools and functions I've used in previous code, and for things like Dictionary initialization I would...
View ArticleIs there way to controll texture compression for iOS?
What PVRTC formats unity uses for diffuse/normal/lightmaps? Is there way to controll texture compression for iOS? P.S Importing texture we can override format in Inspector. For iOS I only see 1)...
View ArticleC# Using Lists and RemoveAt
I'm doing something wrong but as this is my first time working with Lists, I don't know what. My MobSpawner does this private void SpawnAllMobs() { for(int mobcnt = 0; mobcnt < mobCount; mobcnt ++)...
View ArticleTexture filtering
In Quality Settings we can turn off anisotropic filtering. What filtering used in this case on iOS? (I assume it will be filtering that was set to particular texture when importing it =>...
View ArticleHow do you create a Deus Ex Health System?
How do you create a health system like the one in Deus Ex? Except with more body parts. Here's the total: Upper Head(Cranium); Lower Head(Jaw); Spinal Cord; Neck; Chest; Stomach; Upper Back; Lower...
View ArticlePlay Audio from different Object
A small and (hopefully) simple question to answer. I have a script where an audio clip is played, but I don't want that audio clip to be played on the object (had I added an audio source), but on my...
View ArticleUnity Android Developing is Impossible with Emulator
After a whole day of sitting at my computer looking up on how to, 1. Making Android SDK work correctly, and, 2. Trying it to get it to work on my emulator, I have deduced - using the emulator to...
View ArticleTrouble Changing Position of a GameObject
Can anyone point out the correct way to do this? I cannot get my code to work using this method. I've heard of camera.ScreenToWorldPoint but I'm not sure if that will get the job done correctly or how...
View ArticleMMO Timer?
I want to make a MMO game like grepolis and i want to make raw materials to produce. For example the wood is 0 and after 60 seconds became 10, but when you close the google the game produce the materials.
View ArticleDeploy to android - Compilation problem
Hi, I get the below error when pressing the build and run-button for android in unity 4.1.5 (free version). the sdk is installed (latest version) and I can deploy from eclipse. Unity does not seem to...
View ArticleOnCollision using Orthello2D Framework is causing NullReferenceException
Hello everyone! I have been trying to check the tag of the object my "score object" collides with. I tried this: using UnityEngine; using System.Collections; public class ScoreUpgrade : MonoBehaviour {...
View ArticleMultimesh models / changing meshes between them
I have to simple multimesh models just to play around changing meshes between them. Both created in 3Ds max, both have same bone structure and mesh parts (head, body, hands, legs). Those parts attached...
View ArticleHow do I retrieve an item from a list?
Alright, this is a little bit more complicated than a standard list call. I have already read through this link....
View ArticleHorizontal scrolling style compass
How do I setup a horizontal scrolling style compass that turns with my player?
View ArticleHow to instantiate projectile in the direction that my character is moving?
I'm working on a top-down sport-like game prototype and used a control scheme from the documentation, which looks like this (this is my character's control script): var speed : float = 6.0; var...
View ArticleMove a rigidbody towards a object without looking at it?
Like the title says, I want a rigidbody to move towards a object in my scene, but I don't want the player to have to look at/rotate towards the object. I was thinking of using addforce but I have no...
View ArticleCan i Combine unity with other progam (for Flash, ios and Android?
Hello guys, fist, i am sorry about my English. I have a program and a unity game, can i link them together and combine them in to one program? For example: I want play any SNES game (like a minigame)...
View ArticleHow to correctly handle unit selection
So, I'm trying to create a basic RTS game, but I keep stumbling at this part, while selecting all of the units using the GUI.Box method, I don't know how to store them somewhere to make them actually...
View ArticleHow to Translate Object to Mouse Click Point in Game-World Coordinates
Hey everyone, I swear I have gone through every link, forum, and tutorial on how to get this to work, yet nothing works. Thank you for taking the time to read this, my first post - my frustration is...
View ArticleStamina Bar?
Do you guys know how to add stamina bar? If you run, your stamina bar will decrease and then it will slowly recharge. I have watched the video of it, and he modified the character motor. I do what he...
View Article