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 /
  • Help Room /
avatar image
0
Question by varabey · Jan 08, 2016 at 12:22 PM · js to c#

hi. I am a junior in unity. But i now JS very good. I am a web Developer.

And i want to know, which lenguige is good for unity (js or C#)? what language is considered a priority? What is the difference between (js and C#) in unity?

Comment
Add comment · Show 1
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 brunocoimbra · Jan 08, 2016 at 05:04 PM 0
Share

About the differences, there is already a lot of questions, included that one picked up from the FAQ:

http://answers.unity3d.com/questions/12911/what-are-the-syntax-differences-in-c-and-javascrip.html

If you are already used to JavaScript, maybe it could be the right one for you, as you already know it's syntax, making learning the "Unity way" a lot easier.

But, be warned, JavaScript in Unity is someway different, as stated here:

http://wiki.unity3d.com/index.php?title=UnityScript_versus_JavaScript

As you can see, it is so different, that the community even calls it UnityScript.

If you already know the C/C++/C# syntax, I would reccomend you to give a try to C#, as you will not only produce better code, as you will find more tutorials and examples in internet in that language.

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by MastersOfUs · Jan 08, 2016 at 03:19 PM

It depends on the project. If you know JS well, and you are just making a small project, JS would be the easiest, and therefore the best. For bigger projects you should really use C#, as a class-based object-oriented language really benefits you when you have multiple scripts working together.

I would suggest sticking to what you're the most comfortable with.

Comment
Add comment · Show 1 · 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 brunocoimbra · Jan 08, 2016 at 04:55 PM 0
Share

UnityScript support classes...

avatar image
0

Answer by ClearRoseOfWar · Jan 08, 2016 at 06:09 PM

Someone correct me if I'm wrong, but I was reading in a book that c# is used with on windows platforms, where JS is suitable to all platforms..

Comment
Add comment · Show 2 · 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 brunocoimbra · Jan 08, 2016 at 06:17 PM 0
Share

Unity's C# is used for all platforms, like Unity's JavaScript.

Unity converts all scripts to C++ code, C# and UnityScript is just the way that the develloper will create it's scripts.

avatar image ClearRoseOfWar brunocoimbra · Jan 08, 2016 at 06:32 PM 0
Share

Okay, cool. That's good to know :)

avatar image
0

Answer by varabey · Jan 09, 2016 at 09:29 AM

thanks all of you

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

40 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

cannot be an iterator block because `void' is not an iterator interface type 1 Answer

can someone pls help me. c# to js 1 Answer

Convert Js yo C# 1 Answer

I have attempted to convert a JS code into C# but in Unity error message error CS1612: Can not modify a value type return value of `UnityEngine.Transform.localEulerAngles'. Consider storing the value in a temporary variable guide me to solve my problem 1 Answer

Hi I want to convert my Js code to c # It was correct when he wrote in js but not correct in c # Please tell me the correct way 1 Answer


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