2D Toolkit Forum
2D Toolkit => Support => Topic started by: celaeno 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
-
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.
-
Oke that's clear, thanks for your answer :)