Skip to content
This repository has been archived by the owner on Jan 9, 2022. It is now read-only.

Controlling feedbacks

Guillem SC edited this page Nov 20, 2020 · 14 revisions

Home >> Usage guide >> Controlling feedbacks

Controlling feedbacks

Playing:

You have two principal ways of playing a FeedbacksPlayer. The first of them is setting the component to Execute On Awake. If the setting is toggled, it will play at the moment the component is spawned.

The other way (and the most common) is doing it through script.

You just need to get a reference of the FeedbacksPlayer, and then call Play();

Once it's playing, you can:

  • Kill the feedback, so it instantly stops playing.
  • Complete the feedback, so it instantly reaches its final state.

Knowing when finished

To know if a FeedbacksPlayer has finished playing, you have two ways:

  • Using a System.Action, that you pass at the Play method

  • Or using Task, so you can await.