How can I use web workers from Script sharp?
Web workers need a source file, that will not compile in Script sharp because it is not a class, it’s just code.
Ideas? Nikhilk?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In the latest stuff that is there on github, you can create an internal static class with just a static ctor, and mark the class as [ScriptModule] – it will generate top-level code. Think of this as main() for any particular script file.
Hope that helps.