I’m trying to get the raw basics here. Say I want to play a sound when I hit the key Z. What Flow controller or Function do I pick for Down? (This seems so very basic that I hesitated even posting it.)
For the most part FlowCanvas uses the Unity native methods to do what you want. So for example here, you could simply use the AudioSource.PlayClipAtPoint function to play an audio clip at a position. You can of course search for it in the browser which you can open up by hitting “Space” in the canvas.
FlowControllers are only used when you want to change the flow based on some factors (like condition check, or splitting), while Functions are what you should use to do things like the example above.
Let me know if this works for you and of course if I can help you in any other way.
Thanks.
You are welcome.
You can use for example the Animation.CrossFade method for this. In the following example I used CrossFade to play an animation named “Walk” on the Animation component of the gameobject with a crossfade time of 0.2. Of course the gameobject (self) will also need to have the Animation component with an animation clip named “Walk” as well, since that is how Unity works.