Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by TheKnight · Jun 13, 2011 at 10:55 PM · javascriptlanguagejava-is-not-javascript

Unity Javascript

I noticed that Unity uses programming language Javascript but it's like a different language than the standard Java? The one that is for developing web pages? Also, noticed that it uses C# also but haven't used it. I have used C++ but don't know if it's familiar to C#. I know it's stupid to ask which one is better, because everyone has his own favourite, but my question would be - is Unity Javascript the same with the standard Java? Thanks.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Bunny83 · Jun 13, 2011 at 11:04 PM

Javascript(or JScript) != UnityScript != Java

That are 3 different languages. UnityScript uses most of JavaScript(web) syntax but the background is totally different. JavaScript(JScript) in browsers uses a prototype based object model. Unityscript is compiled to CIL and executed by Mono exactly like C#. That's why Unityscript uses an inheritance based object model. That's the greatest difference between JScript and UnityScript.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by jahroy · Jun 13, 2011 at 11:01 PM

UnityScript has nothing to do with java, but it is somewhat similar to java*script*. It uses a similar syntax, but is definitely different. For example UnityScript can optionally be strongly typed (unlike javascript). Java is something completely different and has nothing to do with Unity or UnityScript (or javascript).

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Chris D · Jun 13, 2011 at 11:04 PM

In short, if you can use regular JS, you'll have no trouble migrating over to unityscript; there are just some idiosyncrasies to learn. If you're having trouble choosing between C# and JS (or even Boo), see this question:

http://answers.unity3d.com/questions/7528/how-should-i-decide-if-i-should-use-c-javascript-u.html

To clarify, you're talking about Javascript vs. Unityscript and not Java vs Unityscript, right? Because Java is something else entirely.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Learning Java for Unity 3 Answers

Looking for skilled individual to assist with problem 1 Answer

Setting Scroll View Width GUILayout 1 Answer

Is UnityScript the same as JScript? 4 Answers

Help needed with a pickup script 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges