Author Topic: uInt variables  (Read 1049 times)

Marc Saubion

  • Beta Group
  • Junior Playmaker
  • *
  • Posts: 77
    • View Profile
uInt variables
« on: May 10, 2018, 07:43:21 AM »

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.



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

 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.