playMaker

Author Topic: Fixing IL2CPP linking errors[SOLVED]  (Read 29423 times)

indeed

  • Junior Playmaker
  • **
  • Posts: 54
    • View Profile
Re: Fixing IL2CPP linking errors[SOLVED]
« Reply #90 on: July 30, 2016, 02:55:39 PM »
Hey Jean, I found a solution to this. I'm not a coder so I don't know why it works, but it does. On this page: https://docs.unity3d.com/ScriptReference/EllipsoidParticleEmitter.html
I saw that it said "Inherits from: ParticleEmitter". I don't really know what that means, but just to see what happened I added this line to the XML:

    <type fullname="UnityEngine.ParticleEmitter" preserve="all" />

The Wizard had only added this line:
<type fullname="UnityEngine.EllipsoidParticleEmitter" preserve="all" />

And now the Set Property actions work for that emitter in IL2CPP on iOS


« Last Edit: March 09, 2017, 07:01:47 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
Re: Fixing IL2CPP linking errors
« Reply #91 on: August 02, 2016, 01:33:20 AM »
Hi,

 ok, thanks for debugging this one out. There are some weird stuff with class referencing in some part of the Unity api... so I had to hardcode some of them already.

This case will be added in the next update of the Wizard

Bye,

 Jean

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
Re: Fixing IL2CPP linking errors
« Reply #92 on: August 04, 2016, 01:55:47 AM »
Hi,

Can you make a screenshot of your action using the ellipsoid particle? I am trying to use SetProperty, but it only picks up the Particule Emittor not the ellipsoid version.

What version of Unity are you using?

 Bye,

 Jean

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
Re: Fixing IL2CPP linking errors
« Reply #93 on: August 04, 2016, 02:43:29 AM »
Hi,

 Ok, I got it, it's only an issue on 4.7, and I guess you are on 5x

Can you test this package and tell me if things works now, you should have now both the class and its derived class.

You'll need the latest version of PlayMaker as well, since I also updated the modified actions to use the latest official versions from 1.8


Code: [Select]
<linker>
  <assembly fullname="UnityEngine">
    <type fullname="UnityEngine.ParticleEmitter" preserve="all" />
    <type fullname="UnityEngine.EllipsoidParticleEmitter" preserve="all" />
  </assembly>
</linker>

The package is available on the Ecosystem.

 Thanks,

 Jean
« Last Edit: September 26, 2016, 01:59:15 AM by jeanfabre »

Yugandhar

  • Playmaker Newbie
  • *
  • Posts: 8
    • View Profile
Re: Fixing IL2CPP linking errors
« Reply #94 on: March 09, 2017, 12:28:10 AM »
Excellent solution. It saves our R&D time. Working great. Thanks!!