How to check where a player is looking
I'm trying to make a script that will teleport a player to a location after checking to make sure the player is looking a certain direction. For example, I want the player to be facing a texture that...
View ArticleTeleporting a camera to a camera
Basically, I want a camera to teleport to the exact same position and rotation as another camera. How can I do this in JavaScript? I have function Update that checks for when a player presses a certain...
View ArticleControlling text speed
I want to know if it's possible to have text from a GUI.Label print on the screen at a speed I can adjust from a variable. For example, I want it to look like when you're talking to a NPC in Pokemon....
View ArticleHow to make telephone wires
I have a telephone pole model and I want to make a realistic phone line on the side of a road. The problem is, all I have is just the pole, and no cables connecting the poles. So my question is, how do...
View ArticleHow to convert a string to an int?
I've been researching this for a while, but I can't find anything that works or makes sense to me. I'm hoping that someone can dumb this topic down to my level so I can understand it. Here's my...
View ArticleHelp solving for loop error
I wrote a fairly simple for loop:![alt text][1] [1]: /storage/temp/30453-errorcapture.png When it compiles in Unity, it gives the following error: "BCE0049: Expression 'int' cannot be assigned to ." If...
View ArticlePassing a variable from a client to server
Basically, all I want to know is how can I get a client to send a variable to the server. Here is an example of what I tried in javascript: var MyName : String = "Example Name";//Your username var...
View ArticleHaving problems with Network.Instantiate
The following code only spawns one character controller when I'm testing this (with two builds on separate computers connected to the same server). My problem is, I want it to spawn more than one...
View ArticleGlobal Fog shows items behind it through trees
I just upgraded to Unity 5. Global Fog was not an issue in 4.x, but after the upgrade, it looks like this: http://imgur.com/DKK5ci2 Any ideas on how to fix this?
View Article[Unity UI 5.4.1] Getting Value from InputField
Hi everyone, I've recently started upgrading all of my old legacy UI to Unity's revamped UI. I've come across a problem in my code where I can't seem to get text assigned to a variable from the...
View Article
More Pages to Explore .....