simple WWW code works in editor but not on server
var www; var cube:GameObject; function Start() { www = new WWW("http://www.mywebpage.com/game/unitytest2.php"); yield www; if(www.text == "hello"){ cube.renderer.material.color = Color.blue; }else{...
View ArticleMoing Center Of Mass makes my car go crazy and fly around!
I've been having this problem for a while. Even setting rigidbody.centerOfMass = Vector3(0,0,0) makes the car go crazy. Any ideas?
View Articlehtml links in strings or GUI components possible?
Is there a way to provide web html links in any text or GUI objects in Unity? i.e., If I had some text displayed and if you clicked on a highlighted word it would call a www or wwwform, etc?
View ArticleWow! Unbelievable Variable behavior acts static when it's not
Not sure what's going on but I have a variable, SCORE, in my GameManager script inside my Game Manager prefab. it's initialization is simple:var score:int = 0;I then update the score from another...
View ArticleIs there a modulus operator in Unity JavaScript?
is there a mod operator? example c = b%a or c = b mod a e.g., 5%2 = 1
View ArticleHow to leave a mark on the pavement? (:p)
I would like to leave a mark where my balls hit the pavement. Can anyone tell me the best way to do this and where to look?
View Articletexture detail on planes or other meshes
I'm having a problem with textures on a plane in the distance. How do I keep the original detail even at a distance? For instance if I wanted to create a 2D (or 2.5D) game like GTA2 with small textures...
View Articlesimple WWW code works in editor but not on server
var www; var cube:GameObject; function Start() { www = new WWW("http://www.mywebpage.com/game/unitytest2.php"); yield www; if(www.text == "hello"){ cube.renderer.material.color = Color.blue; }else{...
View ArticleMoing Center Of Mass makes my car go crazy and fly around!
I've been having this problem for a while. Even setting rigidbody.centerOfMass = Vector3(0,0,0) makes the car go crazy. Any ideas?
View Articlehtml links in strings or GUI components possible?
Is there a way to provide web html links in any text or GUI objects in Unity? i.e., If I had some text displayed and if you clicked on a highlighted word it would call a www or wwwform, etc?
View ArticleWow! Unbelievable Variable behavior acts static when it's not
Not sure what's going on but I have a variable, SCORE, in my GameManager script inside my Game Manager prefab. it's initialization is simple:var score:int = 0;I then update the score from another...
View ArticleIs there a modulus operator in Unity JavaScript?
is there a mod operator? example c = b%a or c = b mod a e.g., 5%2 = 1
View ArticleHow to leave a mark on the pavement? (:p)
I would like to leave a mark where my balls hit the pavement. Can anyone tell me the best way to do this and where to look?
View Articletexture detail on planes or other meshes
I'm having a problem with textures on a plane in the distance. How do I keep the original detail even at a distance? For instance if I wanted to create a 2D (or 2.5D) game like GTA2 with small textures...
View Article