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
0
Question by Favo-Yang · Mar 30, 2011 at 03:30 AM · javascriptmonodevelopcompile

UnityScript won't compile in MonoDevelop, but C# does

I wonder if MonoDevelop can compile UnityScript? I'm using Unity 3.3, default MonoDevelop ship with it (Mac).

If I left some error in js file, the Build Output window shows no error. But UnityEditor did report errors when click Play button. However, C# can be compiled correctly with MonoDevelop.

Building: SimpleGame (Debug)
Building Solution SimpleGame
Building: SimpleGame (Debug)
Performing main compilation...
...
Build complete -- 0 errors, 0 warnings

If I double click the References > UnityScript.dll. it shows me below errors (can't load:Bool.Lang.Userful...)

alt text

Is this a bug of Unity?

Updated: some guus on Unity forum confirmed that the UnityScript won't compiled in MonoDevelop.

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
0
Best Answer

Answer by Favo-Yang · Apr 07, 2011 at 11:34 AM

http://forum.unity3d.com/threads/84406-Will-MonoDevelop-compile-UnityScript-(JS)

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 SarperS · Mar 30, 2011 at 10:20 AM

Monodevelop doesn't support Unityscript. I'm using UnityScript Editor but it's Windows only. http://www.arsoftware.co.uk/products/unityscript-editor

EDIT: My bad, really sorry, it didn't support UnityScript auto completion when it first came out. It does support it now.

Comment
Add comment · Show 3 · 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 Mike 3 · Mar 30, 2011 at 11:34 AM 1
Share

$$anonymous$$onoDevelop does support UnityScript, pretty well too actually

avatar image SarperS · Mar 30, 2011 at 01:28 PM 0
Share

The one shipped with Unity doesn't support it as far as I know, does it support UnityScript with all it's features like auto completion etc.? I would consider switching to $$anonymous$$onoDevelop if it does.

avatar image SarperS · Mar 30, 2011 at 01:45 PM 0
Share

$$anonymous$$ike thanks for the information, it works great and I'm switching to $$anonymous$$onoDevelop too :)

avatar image
0

Answer by Mike 3 · Mar 30, 2011 at 11:36 AM

Make sure your javascript bugs are able to be compile time checked

It's very easy to add in dynamic errors, which look reasonable in js up until the line is hit

Adding #pragma strict at the top of your files should help somewhat there

Comment
Add comment · Show 3 · 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 Favo-Yang · Mar 31, 2011 at 05:17 AM 0
Share

Hi $$anonymous$$ike, my problem is the static syntax analyzing (compile) don't work with any .js file in $$anonymous$$onoDevelop. How to make the js "compile time checked"?

avatar image Mike 3 · Mar 31, 2011 at 09:52 AM 0
Share

By that, I mean code in a way which doesn't allow for dynamic invocation. The usual trick is to add #pragma strict to the top of your files.

avatar image Favo-Yang · Mar 31, 2011 at 04:25 PM 0
Share

Added #pragma strict to the top of js file, but it still don't get compiled. I wonder this is a bug of $$anonymous$$onoDevelop ship with Unity 3.3

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

No one has followed this question yet.

Related Questions

Help With "Scripting" 1 Answer

Unity 4.3 Monodevelop autocompletion not working for javascript names and enums 0 Answers

Why can't I make this VAR public ? (Solved) 3 Answers

call C# dll class in plugins from JavaScript 0 Answers

MonoDevelop 4.0.1 code completion doesn't work 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