Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: blackant on July 24, 2018, 04:17:24 AM

Title: FsmEnum limitation
Post by: blackant on July 24, 2018, 04:17:24 AM
Hello,

i would like to use FsmEnum in my action, but i don't to have All Unity choice, only those related to my action

How can i do it ?
Title: Re: FsmEnum limitation
Post by: jeanfabre on July 24, 2018, 04:39:20 AM
Hi,

you need to define the type of enum you want to use. It's like a sub-type.

 Have you checked existing actions and see how it's defined? for example SetLigthType:

Code: [Select]
[ObjectType(typeof(LightType))]
public FsmEnum lightType;

Bye,

 Jean
Title: Re: FsmEnum limitation
Post by: blackant on July 24, 2018, 05:11:05 AM
thanks, i have fund, it may require using UnityEngine.Something behind to get the right function.