Hello Guest

Author Topic: Errors when building for Windows Store  (Read 4238 times)

celaeno

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 2
    • View Profile
Errors when building for Windows Store
« on: June 03, 2015, 01:15:31 pm »
Hello,

When I'm building for windows store I get some errors:


- Could not load file or assembly 'System.Runtime, Version=4.0.Assets/scripts/GameManager.js(29,26): BCE0018: The name 'tk2dTextMesh' does not denote a valid type ('not found'). Did you mean 'UnityEngine.TextAsset'?

- Assets/scripts/GameManager.js(30,26): BCE0018: The name 'tk2dTextMesh' does not denote a valid type ('not found'). Did you mean 'UnityEngine.TextAsset'?


I'm using Unity 4.6.5f and setted up 2d toolkit for javascript, on android, ios and windows phone there are no errors. First I used 2d Toolkit 2.4.0, then I downloaded the latest version of 2d Toolkit (2.5.3) and still have the problem when building for windows store. Do you maybe know a solution for this?

Thanks

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Errors when building for Windows Store
« Reply #1 on: June 03, 2015, 07:58:29 pm »
Unity for Windows Store doesn't support calling C# classes from JS. Tk2d is fully supported, but tk2d is written in c# so your JS code will not be able to see it in Windows store mode.
http://docs.unity3d.com/Manual/windowsstore-gettingstarted.html
Under "Things that are not yet supported:"

Unfortunately we can't do anything about this, you should file a bug report with Unity so they know people want to be able to do this.

celaeno

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Errors when building for Windows Store
« Reply #2 on: June 03, 2015, 08:41:48 pm »
Oke that's clear, thanks for your answer  :)