playMaker

Author Topic: uInt variables  (Read 231 times)

Marc Saubion

  • Junior Playmaker
  • **
  • Posts: 57
    • View Profile
uInt variables
« on: May 10, 2018, 07:43:21 AM »
Hi.

I recently had to work with a script using a uInt type variable. I set the uInt as public, could change it's value in the inspector like a regular Int but the get/set property actions won't work with it: uInt variables aren't visible.

I managed to work around the issue by adding whatever I needed in the script instead of my FSM but it was through dumb luck since there is little documentation about uInt.

According to my research, Unity allowed exposing uInt in the inspector recently. They may have forgot a step so they can be used by Playmaker.

This is a rare issue but it need to be fixed because of the lack of alternative solutions.

Thanks

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 13143
  • Official Playmaker Support
    • View Profile
Re: uInt variables
« Reply #1 on: May 14, 2018, 01:28:20 AM »
Hi,

 Unfortunatly, PlayMaker doesn't support uInt as an fsm Variable.

the solution is to either modify your script if it's yours to expose an api to work with that uInt using a regular int, or to create a custom action to control this script uint property via a setter and getter action that accepts an FsmInt.

 I can provide your with a sample showing how to do this, then you modify it to match your script.

 Bye,

 Jean