Right Mouse Down?
How can I check if I have right clicked on a collider? I know how to use: function OnMouseDown () {} But is there one for right clicking??
View ArticleDetecting Mouse Scroll Wheel?
I'm tying to make it so that when I scroll with the mouse wheel in moves the transform that the script is attached too forward and backward. How can I do this? I'm using Unity Free and JavaScript.
View ArticleEval not working??
I'm trying to use eval() in my script, but I keep getting this error about it: (1,1): BCE0172: `UnityScript.Scripting.IEvaluationDomainProvider' interface member implementation must be public or...
View ArticleGUI.TextField int?
Is there a way to pass GUI.TextField an int instead of a string? I need the user to be able to enter in a number into a text field, then the script passes that number to an array to get the...
View ArticleGUI Color Selector?
How can I make a GUI Color selector? Like this: ![alt text][1] [1]: /storage/temp/14967-color+selector.png I know it can be done because I've seen other people do it. Do you know how I can?
View ArticleFind IP Adress?
How can I find what the computer running the games IP address is from code?? I'm using Unity Pro and UnityScript. I'm setting up a networking system and need to know the IP address.
View ArticleHow Can I Get The Name Of The Game From Code?
I'm writing an editor add-on, and need the code to be able to get the name of the game running the add-on. I'm using Unity Free and UnityScript.
View ArticleMake A Laser?
I'm trying to make a laser for a weapon in a space ship game I'm making but not having much luck. I've tried using raycasts and a line renderer but then the line only shows when you hit something and I...
View ArticleLine Renderer Question
Using a line renderer, how can I make it draw a line from the object that the script is attached to, to straight out in front of it for an endless distance? I know how to use the line renderer but have...
View Article[CLOSED] Send an E-mail with unity
How can I send an E-mail with unity? I'm using Unity Free and C#.
View ArticleImport Managed .Dll
How do I import a .dll into my javaScript and C# Scripts? The .dll is in the plugins folder and is called Voice_speaker.dll. I've been looking how to do this for the last half hour. Also how do I...
View ArticleMecanim Capsule Collider Issue
I've been having an issue all day with Mecanim and I just can't solve the issue. The issue is that I have set up my collider right in the editor as so: ![alt text][1] The collider is all set right, but...
View ArticleNullReferenceExeption
Hey guys, So I'm writing a scrip for a game I'm working on, and I keep getting a NullReferenceExeption. I have been using unity for almost a year, but I still can't figure it out. It's on line 24, the...
View ArticleUnhandled Exception: System.UnauthorizedAccessException
Hey guys, So I have been having this issue for awhile now. Where Unity says the comuter refused permission for it to access the compilers. Here is the error: Internal compiler error. See the console...
View Articleint to TextField and TextField to int
I'm trying to use theGUILayout.TextField to display and edit an int. But I keep getting "FormatException: Input string was not in the correct format" on what I know should work. My code is: x =...
View ArticleForum Troubles??
I have been trying to post a new thread in the Collaboration forum all day, but when I hit the submit post button it just brings me back to the forum and there is no history anywhere of my thread being...
View ArticleHow To Download A Webpage?
I want to download http://www.yvr.ca/en/flight-information/departing.aspx and take the Time, Airline, Flight#, Destination, Status, and Gate fields using WWW and display them in the console in a nice...
View Articlesearch is not a member of string
I'm trying to do: var data : String = www.text; var n = data.search("["); But I keep getting this error: BCE0019: 'search' is not a member of 'String'. Why can't I use the search function, it is a...
View ArticleRemove string value with substring
My function downloads a table as a string and I need to remove a part of it. here is the first part: {"Footer":"Last Update: <\/strong> August 21, 2013 at 10:24 Next Update: <\/strong>...
View ArticleExecute An Exe From Code
Can I run an executable file (.exe) via script from within Unity game / application? I'm using UnityScript with Unity Free.
View Article