Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
AudioEffect
Eredita: Resource < RefCounted < Object
Ereditato da: AudioEffectAmplify, AudioEffectCapture, AudioEffectChorus, AudioEffectCompressor, AudioEffectDelay, AudioEffectDistortion, AudioEffectEQ, AudioEffectFilter, AudioEffectHardLimiter, AudioEffectLimiter, AudioEffectPanner, AudioEffectPhaser, AudioEffectPitchShift, AudioEffectRecord, AudioEffectReverb, AudioEffectSpectrumAnalyzer, AudioEffectStereoEnhance
Classe di base per risorse di effetti audio.
Descrizione
The base Resource for every audio effect. In the editor, an audio effect can be added to the current bus layout through the Audio panel. At run-time, it is also possible to manipulate audio effects through AudioServer.add_bus_effect(), AudioServer.remove_bus_effect(), and AudioServer.get_bus_effect().
When applied on a bus, an audio effect creates a corresponding AudioEffectInstance. The instance is directly responsible for manipulating sound, based on the original audio effect's properties.
Tutorial
Metodi
_instantiate() virtual required |
Descrizioni dei metodi
AudioEffectInstance _instantiate() virtual required 🔗
Sovrascrivi questo metodo per personalizzare l'AudioEffectInstance creato quando questo effetto viene applicato su un bus nel pannello Audio dell'editor, o attraverso AudioServer.add_bus_effect().
extends AudioEffect
@export var strength = 4.0
func _instantiate():
var effect = CustomAudioEffectInstance.new()
effect.base = self
return effect
Nota: Si raccomanda di mantenere un riferimento all'AudioEffect originale nella nuova istanza. A seconda dell'implementazione questo consente all'istanza dell'effetto di ascoltare alle modifiche durante l'esecuzione e di essere pertanto modificata.