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
1
Question by Silver_07 · May 22, 2016 at 07:31 PM · scripting problemnewbiebasicbasic programmingnew user

Newbie question

I am very new to Unity, I have just recently installed it and I am just curious if scripting should be consistent (ex: when you use C#, use C# to all scripts and avoid javascript) (or if it's easy to have variables in C# that can be called in a separate javascript?)

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

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by tanoshimi · May 22, 2016 at 07:33 PM

It's possible to mix scripts but it's not recommended - you'll end up having to do a bit of manual work to ensure that libraries are compiled in the correct order in order for C# <-> UnityScript assemblies can see each other.

Stick to one language in your project and, unless you've got a really good reason not to, make it C#.

Comment
Add comment · Show 4 · 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 Silver_07 · May 22, 2016 at 07:37 PM 0
Share

Thank you for the Answer @tanoshimi, if I am to use javascript, would it limit my capabilities in the creation? I am somehow comfortable with javascript which I have already used before.

avatar image tanoshimi · May 22, 2016 at 08:22 PM 0
Share

Unityscript is slightly less powerful than C#, but you won't notice the difference until you start to use more advanced features. Note that if you know javascript from the web, Unityscript (sometimes referred to as javascript) is quite different - so you'll have to relearn quite a bit anyway.

avatar image Silver_07 tanoshimi · May 22, 2016 at 08:35 PM 0
Share

Thanks for the tip, I would probably make myself like the C# language haha. I just heard that it's somehow harder or complex. How about the back ends? multiplayer scripting? any tips? I am really not good in program$$anonymous$$g. @tanoshimi

avatar image tanoshimi Silver_07 · May 22, 2016 at 10:05 PM 0
Share

http://unity3d.com/learn

avatar image
0

Answer by Zach Smith · May 22, 2016 at 11:11 PM

You're able to use both, but there's not much of a use for it. I'd recommend going with the C# implementation. There's plenty of great documentation on it, and statically typed languages (like C#) are just a lot less messy.

Difficulty-wise, I wouldn't say C# is any harder to learn than UnityScript, and what you learn will be applicable in more areas than just Unity development.

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

What type of code should I learn for a new game? 3 Answers

How to access a gameobject from script?(C#) 1 Answer

How to reference a public gameobjects in script which are attached in the inspector. (solved) 2 Answers

Script I copied from Movement tutorial doesnt work 2 Answers

My character won't move 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