pub struct RrisePluginSettings {
    pub init_language: String,
    pub banks_location: PathBuf,
    pub spawn_default_listener: bool,
}
Expand description

Plugin settings

Fields

init_language: String

One of the languages supported by your Wwise project in Project > Languages.

Defaults to English(US).

banks_location: PathBuf

Generated soundbanks location, relative to the Bevy asset server folder. If the path given is absolute, overrides the asset server folder by that one.

Don’t add the platform folder; just the root where to expect to find the Windows or Linux folder containing the banks.

spawn_default_listener: bool

Whether to create a default listener automatically.

If this is true, it is available after RriseLabel::RriseReady.

You can query it with Query<&RrListener, Added<RrListener>> if you want to attach it to your camera or avatar for instance.

use bevy::prelude::*;
use bevy::render::camera::Camera3d;
use bevy_rrise::emitter_listener::RrListener;
fn attach_default_listeners_to_camera(
    mut cmds: Commands,
    listeners: Query<(Entity, &RrListener), Added<RrListener>>,
    main_camera: Query<Entity, With<Camera3d>>,
) {
    let main_camera = main_camera.single();
    for (entity, listener) in listeners.iter() {
        cmds.entity(main_camera).add_child(entity);
    }
}

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Sets default_language to English(US) and banks_location to soundbanks, expecting soundbanks files to be in [cargo dir OR exe directory]/assets/soundbanks/[Platform].

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s. Read more

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s. Read more

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait. Read more

Returns the argument unchanged.

Creates Self using data from the given [World]

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more