Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: jeanfabre on November 30, 2011, 01:00:54 AM

Title: api: fsm variable useVariable: what does that do? [SOLVED]
Post by: jeanfabre on November 30, 2011, 01:00:54 AM
Hi

 Example taken from the raycast action:

 fromPosition = new FsmVector3 { UseVariable = true };

What does "UseVariable" is for?

 Thanks,

 Jean
Title: Re: api: fsm variable useVariable: what does that do?
Post by: Alex Chouls on November 30, 2011, 04:00:02 PM
An action parameter field can either show an edit field or a variable popup selector. You toggle between these using the Variable toggle. UseVariable is the state of that Variable toggle.

Some actions set UseVariable to true in Reset to force the action editor to show the variable popup selector, with None selected, instead of an edit field. This can help make choices more intuitive or reduce clutter, e.g., if the default choice should be None rather than the default value for that parameter type.

Does that make sense?
Title: Re: api: fsm variable useVariable: what does that do?
Post by: jeanfabre on December 01, 2011, 01:46:58 AM
Hi Alex,

 yes, got it, thanks!

 Bye,

 Jean