- Home /
After switching platforms, script assets purchased from store don't compile and reference to them is lost
After switching build platforms (iOS to Flash in this case), scripts purchased from the assets store won't compile because their name can not be found in the code. For example, using 2d toolkit, any code that tries to find the class tk2dSpriteCollection throws the error
Error CS0246: The type or namespace name `tk2dSpriteCollection' could not be found. Are you missing a using directive or an assembly reference? (CS0246) (Assembly-CSharp-Editor)
This error is generated both by code we wrote that accesses the tk2dSpriteCollection and by the 2D toolkit code as well.
I tried reimporting all the assets but this does not fix the problem. Any suggestions what else I can try?
Answer by Paulius-Liekis · Aug 01, 2012 at 02:00 PM
Check if there is "#if !UNITY_FLASH" in tk2dSpriteCollection - maybe it's not implemented for Flash.
Thanks for the reply but this is certainly not the case, the problem I have is not exclusive to flash, iOS to Android will generate the same errors for example.
Your answer
Follow this Question
Related Questions
switch platform error 0 Answers
Switch platform broke my scripts! 4 Answers
I Switched platforms and I got this errors 1 Answer
My game does not run when I switch to Android Platform 1 Answer
How to fix Unity compiler error when building WP8.1 game? 2 Answers