Search Unity

Unity supports javascript for store windows?

Discussion in 'Windows' started by sheko7, Aug 19, 2013.

  1. sheko7

    sheko7

    Joined:
    Aug 19, 2013
    Posts:
    3
    Hi all, I have a question.

    I developed my game in Unity with Javascript and I want to publish my game to "Windows Store" but I read that games developed in Javascript not pass the WACK. I wonder if there are short-term plans to solve this problem.

    P. D. Sorry if my English is not very good
     
  2. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,918
    The current plan is to fix it for 4.3, but it's not a promise. Sorry :/
     
  3. sheko7

    sheko7

    Joined:
    Aug 19, 2013
    Posts:
    3
    Ok, there are estimated date for version 4.3?
     
  4. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,918
    I think, somewhere around october, but again, no promises.
     
  5. sheko7

    sheko7

    Joined:
    Aug 19, 2013
    Posts:
    3
    Ok, Thanks!
     
  6. yoonitee

    yoonitee

    Joined:
    Jun 27, 2013
    Posts:
    2,363
    Hello, it does actually work (mostly) provided you change a few things (Mainly to do with Strings it seems) :

    Instead of
    a:String = b+c
    use
    a:String = String.Concat(a,b);

    and there are a few other things that you need to change, which I've put here:
    http://forum.unity3d.com/threads/19...-joining-strings-in-Javascript-for-Metro-Apps

    Then when you compile it with these changes there should no longer see a reference to boo.lang in your solution references and then it will pass WACK if compiled to release. (I know this is true because I've published two games written in javascript to with Windows store!) There must be a bug in when it is parsing string expressions that turns it to boo script instead of C sharp.

    To Unity Team: I hope this helps you with your fix for the next version! You're welcome.
     
    Last edited: Nov 3, 2013