Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Manou on April 20, 2016, 02:23:06 PM

Title: Help with fonts alpha animation, maybe a bug [SOLVED]
Post 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.
Title: Re: Help with fonts alpha animation, maybe a bug
Post by: djaydino on April 21, 2016, 02:34:29 PM
Hi,
some more information would be helpfull :)
Title: Re: Help with fonts alpha animation, maybe a bug
Post by: Manou on April 21, 2016, 04:08:17 PM
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.
Title: Re: Help with fonts alpha animation, maybe a bug
Post by: Alex Chouls on April 22, 2016, 02:05:57 PM
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

Title: Re: Help with fonts alpha animation, maybe a bug
Post by: Manou on April 22, 2016, 02:23:56 PM
Gonna try !
Thank you !
Title: Re: Help with fonts alpha animation, maybe a bug
Post by: Manou on April 22, 2016, 03:43:02 PM
Thank you ! Awesome support!