playMaker

Author Topic: GetProperty action loses variable connection  (Read 1130 times)

diccon

  • Playmaker Newbie
  • *
  • Posts: 13
GetProperty action loses variable connection
« on: May 07, 2020, 12:36:13 PM »
Hi, I have a problem where I am using a GetProperty action to retrieve a string from a class, it is run in a loop that uses ArrayGetNext to iterate through an array of objects to create a UI.  The first few times the loop runs it works fine, but after a few uses the output variable in the action gets set to None and it stops working.
I have used logging and stepped through the code in the debugger to check that the object is valid, it is just the variable connection that has been lost.

This is the state when it is working correctly:


This is when the connection has been lost


I am wondering if anyone else has seen anything like this? Thanks!

diccon

  • Playmaker Newbie
  • *
  • Posts: 13
Re: GetProperty action loses variable connection
« Reply #1 on: May 07, 2020, 04:24:58 PM »
Update to this - at the suggestion of a colleague I copy/pasted all the states from my FSM into a new FSM component and when I run the new version the problem no longer occurs. I guess it was some kind of internal error in the original FSM as the states and variables are unchanged from the original version.