2D Toolkit Forum

2D Toolkit => Support => Topic started by: celaeno on June 03, 2015, 01:15:31 pm

Title: Errors when building for Windows Store
Post 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
Title: Re: Errors when building for Windows Store
Post by: unikronsoftware 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.
Title: Re: Errors when building for Windows Store
Post by: celaeno on June 03, 2015, 08:41:48 pm
Oke that's clear, thanks for your answer  :)