Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 chozabu · Oct 20, 2011 at 05:35 PM · javascriptboo

Can I convert unityscript to boo?

Hiya all. Ive seen this fantastic snippet converter http://codeconverter.sharpdevelop.net/SnippetConverter.aspx which is OK for c# But as all UnityScript is converted to boo in its compilation process I was wondering if anyone was aware of a way to convert unityscript to boo? I imagine there should be a perfect converter (as its part of the US compilation process).

I come from a C/C++ background - have used JS/C# - but really dont like typing so much {(unnecesary,syntax)}; Having used python - I'm not going back :-) In many ways - I am starting to like boo more than python!

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by robbiek · Jan 28, 2012 at 06:07 PM

You can manually convert it by hand, like me. I've found no converter that'll work with unityscript to boo or js to boo. I've found unityscript to C# but often you have to fix up the C# code before even testing it, then you could take the produced C# code after fixing it up, and using the C# to boo converter.

Comment
Add comment · Show 7 · 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 chozabu · Jan 28, 2012 at 06:18 PM 0
Share

Yes, reading and re-writing has been my method of choice (often comes out somewhat smaller looking too :) But I'm sure there must be an accurate automated way using unity (if not then there should be an easy way to make it so - assu$$anonymous$$g I am correct about the inhouse conversion of JS/US to Boo)

avatar image Eric5h5 · Jan 30, 2012 at 08:54 PM 0
Share

Not sure what you mean about "assu$$anonymous$$g I am correct about the inhouse conversion of JS/US to Boo". US is written in Boo, but it really doesn't matter what it's written in, since it's no easier to convert between them in an automated way than it is for any other languages.

avatar image chozabu · Jan 30, 2012 at 08:56 PM 0
Share

I've read in quite a few places That us/js is converted to boo at compile time, then from boo to CLI.

avatar image Eric5h5 · Jan 30, 2012 at 09:04 PM 0
Share

I've never read that. US has features that Boo doesn't have, so it couldn't possibly work that way.

avatar image Benproductions1 · Nov 12, 2013 at 06:26 AM 0
Share

@Eric5h5 After an email with Unity support about compiling Boo/UJs at runtime, I got a reply from Graham saying that Boo was ported to .NET by it's creator who then also wrote a UJs to Boo converter so it could be compiled. So yes, UnityScript does get converted to Boo in order to compile it. Personally I think that's a really lazy approach, but heck... it works

Show more comments

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

7 People are following this question.

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

Related Questions

Using Yield waitforseconds with boo 2 Answers

Why not Boo? 1 Answer

What programming language do I need to learn? 0 Answers

How do I access a variable from another GameObject? 1 Answer

Book recommendation on UnityScript? 0 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