Skip to content
Discussion options

You must be logged in to vote

Make sure you put this component on the same GameObject as StreamAudioSource, and make sure it is the last component on the object in the inspector.

Sample from com.utilities.audio: AudioReactiveBeahviour

public class AudioReactiveBehaviour : MonoBehaviour
{
    [SerializeField]
    private Transform targetSphere;

    [SerializeField]
    private float scaleMultiplier = 10f;

    [SerializeField]
    private float smoothSpeed = 5f;

    [SerializeField]
    private float currentScale = 1f;

    [SerializeField]
    private float targetScale = 1f;

    /// <summary>
    /// Called automatically by Unity's audio system on the audio thread
    /// </summary>
    /// <param name="data"></param>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@eapark
Comment options

Answer selected by eapark
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants