IAutoResetWaitable
The return value of the SetEffect() API
NameSpace
Accessibility
Ami.BroAudio
public
Public Methods
Method
Return
Parameters
Description
๐This can be used as a yield return in Coroutine, for example:
private bool _isUnderWater = false;
public void EnterWater(bool isEnter)
{
_isUnderWater = isEnter;
if(isEnter)
{
StartCoroutine(SetUnderWaterEffect());
}
}
private IEnumerator SetUnderWaterEffect()
{
yield return BroAudio.SetEffect(Effect.LowPass())
.WaitWhile(() => _isUnderWater = true);
}
Last updated