Type Alias oxygengine_audio::component::AudioSourcePrefabProxy
source · pub type AudioSourcePrefabProxy = AudioSourceConfig;
Aliased Type§
struct AudioSourcePrefabProxy {
pub audio: Cow<'static, str>,
pub streaming: bool,
pub looped: bool,
pub playback_rate: f32,
pub volume: f32,
pub play: bool,
}
Fields§
§audio: Cow<'static, str>
§streaming: bool
§looped: bool
§playback_rate: f32
§volume: f32
§play: bool
Implementations§
source§impl AudioSourceConfig
impl AudioSourceConfig
pub fn new(audio: Cow<'static, str>) -> Self
pub fn audio(self, value: Cow<'static, str>) -> Self
pub fn streaming(self, value: bool) -> Self
pub fn looped(self, value: bool) -> Self
pub fn playback_rate(self, value: Scalar) -> Self
pub fn volume(self, value: Scalar) -> Self
pub fn play(self, value: bool) -> Self
Trait Implementations§
source§impl Clone for AudioSourceConfig
impl Clone for AudioSourceConfig
source§fn clone(&self) -> AudioSourceConfig
fn clone(&self) -> AudioSourceConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AudioSourceConfig
impl Debug for AudioSourceConfig
source§impl<'de> Deserialize<'de> for AudioSourceConfig
impl<'de> Deserialize<'de> for AudioSourceConfig
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more