Confusing transform.localRotation issue
Hi. I'm having a weird issue. Basically, I have a variable named 'localRotation', which I set in the inspector. At some event, I parent the object; Right after parenting it, I set the local rotation to...
View Articlehttp NotSupportedException in Web Player
I've got the web player running on an https page. When I try to do WebRequest.create("https://path/to.html"); I get a NotSupportedException. Is it possible to do an https request in the Web Player?
View Article2d background music visualiser?
I have a basic 2D game with some bassy background music and it'd be great if I could somehow pulse the background based on the music? Or maybe have some bars going up and down based on the sounds? I've...
View ArticleTrouble Rendering Mesh
Hello-- I'm trying to implement the script located [here][1] but running into problems. I'm using the C# version of the script here: http://pastebin.com/KffepxzJ Basically, everything seems to run fine...
View ArticleIs possible to have a fix screen size/view in camera? so our games plays in...
i want my game viewed in all screen resolution..please help. thank you in andvance
View ArticleTilt based on direction.
Hey, I have a ship that I would like to be tilted as it moves. I have tried numerous approaches such as: void playerMovement() { cameraDifference = mainCam.transform.position.y -...
View ArticleNeed help with my health script
My health script keeps sending the error 'Unexpected token "("', can anyone help? Here it is: function (OnCollisionStay(collision:Collision)){ if (collision.collider.tag == "enemy");{ curHealth =...
View ArticleIf/else to case ?
Hi guys. How can i translate this code to **CASE** operator: Thx. if (timer < 0 && i < 6 && wayp == 1) { Wave(EnemyLvl_0_1[EnemyLvl_0_Index], 1f); } else if (timer < 0...
View ArticleAutomatic Cloning on Instantiation
I've been experimenting with Instantiation and GameObjects in code recently. I'm new to Unity, so I don't really know what I'm doing all too well, I've read some of the documentation, however, I've...
View ArticleHow to dynamically pose a doll's joints in-game?
I need to know how I can animate a doll in such a way that the user can manipulate each joint individually to create various custom poses. Let's say it starts in a normal T pose. Each joint could have...
View ArticleStealth Tutorial: Why does dragging an Animation onto the Inspector give me...
I'm working on Beginner Project #1: Stealth. I'm on Chapter 1, section 7 - ["CCTV Cameras"][1] At a point 9 minutes into the tutorial video, it shows how to create an animation. It instructs me to go...
View ArticlePlayerPrefs and own Class
Hello, i've got a class: class SoldierAsset{ var weaponName : String =""; var weaponTexture : Texture; var leftInStorage : float; } and my question is, how can i save this class with PlayerPrefs?
View ArticleGet Boolean from another Script, C#
I have already tried to ask this question befor, but let me try aggain: I want to know an easy way to use a boolean that is toggled in "Script1" in "Script2" (in c#) This Question was also already...
View ArticleHow to disable GUI Menu when you click on a button in the GUI
Sorry if that was confusing... I have a GUI menu, and I have a journal tab. So when I click that I have a GUI Texture that enables and displays. But the GUI Menu is still in front of it. What I want to...
View ArticleAsset server down?
I haven't been able to upgrade from the asset server for 3 days. Is anyone else having this problem?
View ArticleChange Button GUIStyle on Click
**Hi,** well I want know how can I do that? void OnGUI() { for(int x = 0; x<10; x++) { if(GUI.Button(new Rect(10, 10*x, 100, 25), "Click me!", "label")) { GUI.Box(new Rect(10, 10*x, 200, 25), ""); }...
View ArticleUnity scene empty but game still runs (beginner)
I am brand new to Unity and have just been working on a simple 2D project to see how things work. Everything was working fine until I was messing with the camera settings and I dont even think I saved...
View ArticleAnimation won't start
I am reading "Unity 3.x game development essentials" and i am blocked at "adding the coconut shy shack" paragraph. I wrote all the code for make the target play an animation when it collides with a...
View ArticleFinding an empty gameobject in a weapon
hey guys, I'm trying to make a flash animation, I have a PlayerController that has a component script PlayerShooting in that script I want to make a flash animation appear at the edge of my gun but I...
View Article