Reply To: Can I call methods on components in an Action track?

Slate Forums Support Can I call methods on components in an Action track? Reply To: Can I call methods on components in an Action track?

#1743
Gavalakis
Keymaster

Hello,

Indeed, right now the only option available to call a function from within Slate, is to use the “SendMessage” action clip, although I do plan to add more advanced reflection based clips for that.

The default/existing SendMessage variants can not send a custom enum type as a parameter, but because the base class of SendMessage action clip, is a generic class, you can create a super simple custom action clip, to send the type you want as a parameter like this:

Simply replace “MyEnum” with any type you want and it will work 🙂
Just make sure to keep this custom action clip outside of the Slate folder, to avoid accidentally deleting it when updating Slate in the future.

Let me know if that works for you.
Thanks.

Join us on Discord: https://discord.gg/97q2Rjh