playMaker

Author Topic: FsmEnum limitation  (Read 313 times)

blackant

  • Sr. Member
  • ****
  • Posts: 394
  • http://blackantmaster.com
    • View Profile
    • blackantmaster.com
FsmEnum limitation
« on: July 24, 2018, 01: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: 14014
  • Official Playmaker Support
    • View Profile
Re: FsmEnum limitation
« Reply #1 on: July 24, 2018, 01: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

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