Reply To: Scriptable Object Switcher node

FlowCanvas Forums Support Scriptable Object Switcher node Reply To: Scriptable Object Switcher node

#3392
Gavalakis
Keymaster

Hello again,

You are very welcome! It is a good node idea 🙂 I just changed the node to be a T (better this way) and attaching the change for you here. It will of course be part of the next version as well. Please note that this replaces the SwitchUnityObject node I previously send to you.

Let me know if it works for you.

By the way, if you only need to check an enum for one of its values, you might want to use the “Any Equals” node with a Switch Condition node. This requires a few more nodes, but you might prefer it.
AnyEquals

Your added code change for the “Then” is very correct, yes 🙂

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

Attachments:
  1. AnyEquals.png

  1. SwitchUnityObject-1.unitypackage