playMaker

Author Topic: Change variable type in the FSM Template  (Read 831 times)

nFighter

  • Beta Group
  • Full Member
  • *
  • Posts: 174
    • multiplayer adult fighting
Change variable type in the FSM Template
« on: April 27, 2023, 01:00:24 PM »
I have quite an unusual task and looking for a smart solution. I have hundreds of prefabs with FSM templates attached that store certain values in variables (kinda poor man database).

Some of that variables are "object" variables that hold references to the Timeline Objects. I need to get rid of "object variables" and change it to let's say "string variable". So instead of references to the actual timeline objects I would have a string with the name of that object.

I definitely don't want to "just change object to string in template" and then manually fill the value for each string. Any chance I can do it with some kind of script? I can fill that string values at runtime, but is it possible to somehow did it not on runtime but in the editor context? Or is there a way to save fsm var values that were created in runtime?
indie developer of multiplayer adult fighting
http://nakedfighter3d.com