Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: _spring on August 13, 2012, 08:37:19 AM
-
Is it possible to react on the user input in the editor mode of playmaker, like its possible in the scriptablewizard function "OnWizardUpdate"? (OnWizardUpdate: "This is called "..." whenever the user changes something in the wizard.")
For instance the designer creates a new state, drops my action on it and checks there a boolean var to be true. If he is doing so, the color of the state should change to green. If he unchecks the bool, the color switches back to default.
thanks 4 help!
-
Hi,
It would be nice indeed! I'd also like to have delegates on various actions such as creating a fsm variable, or editing a fsm variable, etc etc.
bye,
Jean
-
hi, ive got some news about the topic:
i found out that the ErrorCheck() function is called (i would say on mousemove) in editor mode when the state is focused.
now i can react to the designers input via:
.
.
public FsmBool checkMe;
public FsmBool iamAutoChecked;
.
.
.
public override string ErrorCheck()
{
if (checkMe.Value == true)
{
iamAutoChecked.Value=true;
}
}
-
interesting work around, will keep that in mind.
bye,
Jean