playMaker

Author Topic: How to Set FsmEnum Type in Custom Action?  (Read 2867 times)

tcmeric

  • Beta Group
  • Hero Member
  • *
  • Posts: 768
How to Set FsmEnum Type in Custom Action?
« on: February 23, 2017, 07:56:31 AM »
Hi,

How can I set the enum type in a custom action?

I can set the enum variable like this:
Quote
public FsmEnum Enum;

But in the playmaker inspector, I get "Enum Type" set to none. I would like to set the type.

Sorry I searched the forums and could not find an answer or an example in the actions in playmaker. Very cool we can use Enum in playmaker. Handy.


jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: How to Set FsmEnum Type in Custom Action?
« Reply #1 on: February 23, 2017, 08:24:51 AM »
Hi,

 check the existing actions, like SetLightType:

        [ObjectType(typeof(LightType))]
        public FsmEnum lightType;

Bye,

 Jean

tcmeric

  • Beta Group
  • Hero Member
  • *
  • Posts: 768
Re: How to Set FsmEnum Type in Custom Action? [Solved]
« Reply #2 on: February 23, 2017, 08:52:51 AM »
Very cool!  8)  8)  8)