View on GitHub

FeedbackSystem

Unity easy configurable feedback system

Feedback System

Unity easy configurable feedback system

The feedback system allow you to integrate and call feedbacks containing visual and sound effects easily with Feedback assets and Feedback Event System component.

DemoGif

 

How to setup a feedback

Create a Feedback asset (“Create/Feedback”) and refer a target Particle System and a Audio Clip.

Feedback inspector

Add a Feedback Event System component on the target Game Object and add the event you want to call and their feedback asset

Feedback Event Manager

You can call those events with the method PlayFeedbackEvent() referencing the Feedback Event System in a Unity Event

Unity Event System Feedback Call

or calling the Play() function of the feedback

using UnityEngine;
using SorangonToolset.FeedbackSystem;

public class Wizard : MonoBehaviour {
    [SerializeField] private Feedback _healFeedback = null;

    public void OnHeal(){
        _healFeedback.Play(transform.position, Quaternion.identity);
    }
}

 

Feedback Asset

In project window : “Create/Feedback”

 

Methods

To use those methods, you must include SorangonToolset.FeedbackSystem namespace

 

Feedback

public void Play(Vector3 position, Transform owner = null)

Play the feedback at a position, refer the owner in the case you want your feedback depends to a parent.


public void Play(Vector3 position, Quaternion rotation, Transform owner = null)

Play the feedback at a position with a specific rotation, refer the owner in the case you want your feedback depends to a parent.

 

Feedback Event System

public void PlayFeedbackEvent(string eventName)

Play the the target event from the Feedback Event System