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

source

pub fn new(audio: Cow<'static, str>) -> Self

source

pub fn audio(self, value: Cow<'static, str>) -> Self

source

pub fn streaming(self, value: bool) -> Self

source

pub fn looped(self, value: bool) -> Self

source

pub fn playback_rate(self, value: Scalar) -> Self

source

pub fn volume(self, value: Scalar) -> Self

source

pub fn play(self, value: bool) -> Self

Trait Implementations§

source§

impl Clone for AudioSourceConfig

source§

fn clone(&self) -> AudioSourceConfig

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for AudioSourceConfig

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for AudioSourceConfig

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Prefab for AudioSourceConfig

source§

impl Serialize for AudioSourceConfig

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more