playMaker

Author Topic: Help with fonts alpha animation, maybe a bug [SOLVED]  (Read 598 times)

Manou

  • Playmaker Newbie
  • *
  • Posts: 5
    • View Profile
Help with fonts alpha animation, maybe a bug [SOLVED]
« on: April 20, 2016, 11:23:06 AM »
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.
« Last Edit: April 22, 2016, 12:59:13 PM by Alex Chouls »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2280
    • View Profile
    • jinxtergames
Re: Help with fonts alpha animation, maybe a bug
« Reply #1 on: April 21, 2016, 11:34:29 AM »
Hi,
some more information would be helpfull :)

Manou

  • Playmaker Newbie
  • *
  • Posts: 5
    • View Profile
Re: Help with fonts alpha animation, maybe a bug
« Reply #2 on: April 21, 2016, 01:08:17 PM »
Here is a screenshot


It works with windows build (text disappear),
it doesn't work with webgl build (text@100 alpha).

Regards,
P.
« Last Edit: April 21, 2016, 01:12:44 PM by Manou »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3207
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: Help with fonts alpha animation, maybe a bug
« Reply #3 on: April 22, 2016, 11:05:57 AM »
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


Manou

  • Playmaker Newbie
  • *
  • Posts: 5
    • View Profile
Re: Help with fonts alpha animation, maybe a bug
« Reply #4 on: April 22, 2016, 11:23:56 AM »
Gonna try !
Thank you !

Manou

  • Playmaker Newbie
  • *
  • Posts: 5
    • View Profile
Re: Help with fonts alpha animation, maybe a bug
« Reply #5 on: April 22, 2016, 12:43:02 PM »
Thank you ! Awesome support!