If there is a volume change from the Editor Inspector volume slider
How do I detect the volume change? Is there any callback or event that I can use?
*I don't remember any callback or event in there*
Hello! If you´re just looking towards getting the amount that has changed, you can simply do the next
define a float changeAmmount, and get 2 extra float variables lastVolume, actualVolume, to establish and move the values.
lastVolume will not move until you made your calculations, but the actualVolume should be always attached to the Audiosources Volume.
You can run on Update or fixedUpdate or an InvokeRepeating to get this answer the number of times you wanted per second
if you move the slider run
changeAmmount = Actualvolume - lastVolume;
therefore giving you the result directly of how much your volume has changed. from the last position
Then you can already set your last volume to the actual volume so the threshold goes back to 0.
From pure memory, maybe something is wrong, but it should work.