Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: Manou on April 20, 2016, 02:23:06 PM
-
Hello,
I have a nasty bug when I publish my game to webgl, the alpha animation on text meshes isn't working, I don't know if it's a playmaker, unity or webgl bug.
Thanks for help.
-
Hi,
some more information would be helpfull :)
-
Here is a screenshot
(http://s31.postimg.org/jrz85qzaz/text_Mesh_bug.jpg)
It works with windows build (text disappear),
it doesn't work with webgl build (text@100 alpha).
Regards,
P.
-
Usually when Get/Set Property doesn't work on a platform it's because of code stripping that Unity performs when making the build. So the properties you're accessing with Get/Set Property have actually been stripped from the build.
You can force Unity to keep those properties using a link.xml file:
http://docs.unity3d.com/Manual/iphone-playerSizeOptimization.html
That doc talks about iPhone builds, but the link.xml file applies to any platform that Unity performs stripping on.
I've attached a sample link.xml that keeps TextMesh properties, and fixes the issue you're seeing. Don't overwrite any existing link.xml files in your assets folder!
If you don't want to make your own link.xml files you can use Jean's Linker Wizard:
http://hutonggames.com/playmakerforum/index.php?topic=11126.0
-
Gonna try !
Thank you !
-
Thank you ! Awesome support!