Join our Discord Channel
// get objcet from scene object[] objects= FindObjectsOfType (typeof(GameObject)); // and I get gameObjects componets PlayMakerFSM[] components = objects[0].GetComponets<PlayMakerFSM>(); int count = components[0].FsmStates[0].ActionData.ActionCount; if(count>0) { // I can get name of action like this string name = components[0].FsmStates[0].Actions[0].ToString(); // is enabled bool enabled = components[0].FsmStates[0].Actions[0].Enabled; // etc... }
var playAnimationAction = myFsm.States[0].Actions[0] as PlayAnimation;playAnimationAction .animName = "myAnimName";
using HutongGames.PlayMaker.Actions;
FieldInfo[] data = myFsm.States[0].Actions[0].ActionData.GetFields();
int count = myFsm.States[0].Actions[0].ActionData.ActionCount;
FiledInfo [info] = ActionData.GetFileds(myFsm.States[0].Actions[0].GetType());var name = info[0].ToString();
// typedReference ?TypedReference obj; // I dont know where to get this ???var value = info[0].GetValueDirect(obj).ToString();
[UIHint(UIHint.Variable)public FsmString stringVariable;//etc..