playMaker

Author Topic: uInt variables  (Read 2942 times)

Marc Saubion

  • Beta Group
  • Junior Playmaker
  • *
  • Posts: 79
uInt variables
« on: May 10, 2018, 10: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: 15500
  • Official Playmaker Support
Re: uInt variables
« Reply #1 on: May 14, 2018, 04: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

Fat Pug Studio

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
    • Fat Pug Studio
Re: uInt variables
« Reply #2 on: March 28, 2022, 06:32:00 AM »
Any changes on this or it's still unsupported?
Available for Playmaker work