FmodEventEmitter2D
Inherits: Node2D
Emits Fmod Events and places them in the 2d world
Description
FmodEventEmitter2D can be triggered with signals. Sounds will be played at the
emitters transform or it's parents.
Properties
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Methods
|
get_parameter(name: |
|
get_parameter_by_id(id: |
|
is_playing() const |
void |
set_parameter(name: |
void |
set_parameter_by_id(id: |
void |
start() |
void |
stop() |
Property Descriptions
bool allow_fadeout = true 🔗
void set_allow_fadeout(value:
bool)boolis_allow_fadeout()
if true sounds will fadeout
bool attached_to_rigidbody = false 🔗
void set_attached_to_rigidbody(value:
bool)boolis_attached_to_rigidbody()
if true the event instance will attach to the parent rigidbody node.
float attenuation_max = 100.0 🔗
void set_attenuation_max(value:
float)floatget_attenuation_max()
if override_attenuation is true sets the event's maximum attenuation distance
float attenuation_min = 1.0 🔗
void set_attenuation_min(value:
float)floatget_attenuation_min()
if override_attenuation is true sets the event's minimum attenuation distance
Vector4i event = Vector4i(0, 0, 0, 0) 🔗
void set_event(value:
Vector4i)Vector4iget_event()
The Fmod event to play
bool non_rigid_body_velocity = false 🔗
void set_non_rigid_body_velocity(value:
bool)boolis_non_rigid_body_velocity()
If not attached_to_rigidbody event instance tracks the velocity of the object
bool one_shot = true 🔗
void set_one_shot(value:
bool)boolis_one_shot()
If true events will be played as one shots.
bool override_attenuation = false 🔗
void set_override_attenuation(value:
bool)boolis_override_attenuation()
If true the sound will attenuate with the values of attenuation_min and attenuation_max
bool paused = true 🔗
void set_paused(value:
bool)boolis_paused()
There is currently no description for this property. Please help us by contributing one!
bool preload_sample_data = false 🔗
void set_preload_sample_data(value:
bool)boolis_preload_sample_data()
if true sample data will be preloaded
bool trigger_once = false 🔗
void set_trigger_once(value:
bool)boolis_trigger_once()
if true sound can only be played once
float volume = 1.0 🔗
void set_volume(value:
float)floatget_volume()
There is currently no description for this property. Please help us by contributing one!
Method Descriptions
float get_parameter(name: String) const 🔗
gets the value of the parameter by name. returns NAN if parameter with
name does not exist.
float get_parameter_by_id(id: Vector2i) const 🔗
gets the value of the parameter by id. returns NAN if parameter with name
does not exist.
bool is_playing() const 🔗
There is currently no description for this method. Please help us by contributing one!
void set_parameter(name: String, value: float) 🔗
sets the parameter with the given name.
void set_parameter_by_id(id: Vector2i, value: float) 🔗
sets the parameter with the given id.
void start() 🔗
Starts playing the Fmod Event from the beginning. Or plays a new one shot
event.
void stop() 🔗
Stops the last played event.