playMaker

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

Manou

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

djaydino

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

Manou

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Help with fonts alpha animation, maybe a bug
« Reply #2 on: April 21, 2016, 04: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, 04:12:44 PM by Manou »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3985
  • Official Playmaker Support
    • LinkedIn
Re: Help with fonts alpha animation, maybe a bug
« Reply #3 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


Manou

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

Manou

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