Hello,
I'm new to PlayMaker so apologies if this is either stupid or has been answered some other obvious place, but I haven't come across the solution.
I'm writing a custom action which would ideally expose a variable of a custom type, as follows:
[Serializable]
public class MyCustomParameter
{
string a;
string b;
string c;
int i;
float f;
}
namespace HutongGames.PlayMaker.Actions
{
public class MyAction : FsmStateAction
{
public MyCustomParameter[] MCP;
...
}
}
That doesn't work - i.e. MCP doesn't come up in the action inspector -, throwing "Unsupported Type: MyCustomParameter" in the actions browser, and "ActionData: Missing LoadActionField for type: MyCustomParameter".
I really want to do things this way as I want to be able to fill MCP with variables that are retrieved by other states of the FSM.
Am I missing something, or is it only possible to use a certain set of types as Action members?
Thanks!
Guillaume.