playMaker

Author Topic: FsmEnum limitation  (Read 1359 times)

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
FsmEnum limitation
« 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 ?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: FsmEnum limitation
« Reply #1 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

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
Re: FsmEnum limitation
« Reply #2 on: July 24, 2018, 05:11:05 AM »
thanks, i have fund, it may require using UnityEngine.Something behind to get the right function.
« Last Edit: July 24, 2018, 12:42:07 PM by blackant »