Classes, Methods, & Properties
- [Component] → [Crazy Minnow Studio] → [Amplitude] → [Amplitude]
- or from the Inspector, under [Add Component] → [Crazy Minnow Studio] → [Amplitude] → [Amplitude]
Amplitude works automatically by monitoring the AudioSource.isPlaying status.
Link to the Unity AudioSource component that you want to retrieve amplitude data from when running on the WebGL platform.
Retrieved amplitude data ranges from -1 to 1, set this property to true to force a range from 0 to 1.
If your audio clip does not have a high dynamic range, you can boost the amplitude values using this slider (0 [none] to 1 [full]).
While your audio clip is playing, this float array with a length of your selected Amplitude.sampleSize will be filled with real-time amplitude data.
While your audio clip is playing, this float is filled with the real-time average from your Amplitude.sample data.