Attach Animator to multiple .blend assets?
I have a project with a couple .blend files and I would like to control all of them with a single Animator controller. The .blend assets have different bone structures and different meshes, but they...
View Article2D Aiming with a mouse angle problem
Hi, I've been trying to find a solution for this particular problem for a while now, but with no result. I'm a bit new to Unity and scripting in general, so I decided to ask here if someone might have...
View Articleonly 764 devices suppoted on google play
I made a game recently. Google play says, only 764 devices support this game. I didn't change anything in the Android Manifest file. I have remade it and it shows the same. And it says that around 4500...
View ArticleTwo anim states are ready, transitions 2way linked...no go.
I've created two animation states, and have seen both work INDIVIDUALLY when set to default state. I've created transitions from Idle to Run and from Run back to Idle. However, when I activate the play...
View ArticleHow to reduce usage of GetComponent()? (instantiate, prefabs)
I'm using the following code to instantiate a prefab: GameObject dialog = Instantiate(Prefab.ChooseNameDialog) as GameObject; NameScriptController controller = dialog.GetComponent();...
View ArticleGUI Text wont display name of gameObject
I want to make GUI Text to show up when I hover mouse over gameObject, and I want to display gameObject's name. Problem is that when I hover over gameObject GUI Text is created but I cant seen it...
View ArticleWhy do 2D textures appear pixelated on mobile(Android) but smooth on PC?
I'm building a very simple 2D mobile ping-pong-like game. The textures for my sprites are smooth(no pixelation) when I play in the editor on my PC monitor but when I look at the Android Archos 70b...
View ArticleKeeping relative motion after rotation
I have an object A (a kinect controlled figure) parented to camera B. I need A to stay in the same relative position (with the same relative motion) to the camera when rotating - aka if the figure is...
View ArticleGet Audio from Speakers
Hello, I'm wondering if it is possible to take audio from a different program, such as spotify, or itunes and route it into Unity. And then, if this is possible, will I be able to perform FFTs on that...
View Articlec# one click and pauses the game and makes player jump
my player jumps on every click that happens . i've got a pause button(gui button) . my problem is that when i click the pause button , my player jumps once , and then the game pauses . for player...
View ArticleHow to I add a collision's GameObject to an array?
The code with all the other bits taken out: --- var lGround:Array; function Start () { var lGround= new Array(); } function OnCollisionEnter(other:Collision){ if(other.gameObject.tag == "Ground"){ var...
View ArticleIs it possible to put a 3d object into a gui box?
If this is possible how could I do this? If it helps for you to know what I am trying to accomplish is for it to be when I open up my inventory and try to craft a weapon in one section I want the...
View ArticleRotate enemy towards player character
In my game, I have multiple enemies spawning and flying onto the screen. I'll post the code below. How would I get the enemies that spawn to turn and fly towards the player character? Apparently adding...
View ArticleOutline Cube
I am trying to get a outline like this with vertex color? ![alt text][1] [1]: http://i.imgur.com/VYQmTGX.png I have looked everywhere and still haven't been able to figure out how to do it. The...
View ArticleHow can I make this happen one second after this?
I have a script where it measures fall damage and effects the players health when you fall from a certain height and I need to make it so that when you hit the ground(when grounded == true) wait one...
View ArticleGuiTexture width after widthchange
I have a GuiTexture and the original size of the texture is 500x500; After some calculations i change rescale the GuiTexture using pixelInset; myGuiTexture.pixelInset = new Rect( 0, 0, 100, 100);...
View ArticleChanging Questions from static to variable driven..
So, In the example below, If a randnum generator comes out with the value 1 then the following will be called and associated array. What I would like is, for all of the 1's in the script to be instead,...
View ArticleHow to get collision objects in the code?
I can not find a way to get the objects collision in script. Is that possible? Example code similar to mine - var ParentObject : Transform; var ChildLength = ParentObject.childCount; for( var i = 0; i...
View ArticleHow to handle localization plus fonts on mobile.
I'm currently at the point of getting near a release of a mobile game and have prepared for localization through the development process. Aside from getting everything translated to given languages my...
View ArticleNPOT texture on iOS
I load NPOT textures from files and then assign them to materials.The code like: Texture2D tex = new Texture2D (2, 2, TextureFormat.PVRTC_RGB2, false); WWW picWWW = new WWW (pathStr); yield return...
View Article