- Home /
String question Javascript to C# (easy)
I am unsure on how to convert this myself as do not use strings often.
var level : String;
Javascript ^^
I tried
public String level;
C# ^^
But no luck.. What am I missing I took a quick glance at the reference but didn't find something similar in C#.
Unity doesn't use Java; it's a different language entirely.
eric when does he say java the whole time he says javascript which unity uses...
He probably edited the title, I have a habbit of writing Java ins$$anonymous$$d of Javascript or Unityscript. (I code in C# mainly.)
Answer by BerggreenDK · Dec 18, 2010 at 02:22 AM
Look for MONO or C# at Microsofts website, then you will have all your answers regarding language problems.
I believe string is with small-caps
public string level;
http://msdn.microsoft.com/en-us/library/362314fe(v=vs.71).aspx
hehe, dont hurt yourself. We've all searched the woods for hours without finding trees. Looking forward to your next question now. :o)
Your answer
Follow this Question
Related Questions
Convert Array into One String (Js) 1 Answer
how to convert string into numbers in JS 1 Answer
How to convert a float to a string and then have it appear in a gui rect 3 Answers
Some Basic Conversions from JavaScript to C# 1 Answer
C# conversion of JavaScript, problems with nested class as a custom type 1 Answer