pub struct CutsceneDirector {
pub cutscene_id: String,
pub state: DirectorState,
pub current_time_s: f32,
pub total_duration_s: f32,
pub playback_speed: f32,
pub sound_tracks: Vec<SoundTrack>,
pub vfx_layer: VfxLayer,
pub post_process: PostProcessStack,
pub render_pass_mgr: RenderPassManager,
pub usd_stage: Option<UsdStage>,
pub export_settings: Option<RenderSequenceExport>,
pub markers: Vec<(f32, String)>,
}Fields§
§cutscene_id: String§state: DirectorState§current_time_s: f32§total_duration_s: f32§playback_speed: f32§sound_tracks: Vec<SoundTrack>§vfx_layer: VfxLayer§post_process: PostProcessStack§render_pass_mgr: RenderPassManager§usd_stage: Option<UsdStage>§export_settings: Option<RenderSequenceExport>§markers: Vec<(f32, String)>Implementations§
Source§impl CutsceneDirector
impl CutsceneDirector
pub fn new(cutscene_id: &str, total_duration_s: f32) -> Self
pub fn play(&mut self)
pub fn pause(&mut self)
pub fn stop(&mut self)
pub fn seek(&mut self, time_s: f32)
pub fn add_sound_track(&mut self, t: SoundTrack)
pub fn add_marker(&mut self, time_s: f32, label: &str)
pub fn advance(&mut self, delta_s: f32)
pub fn active_sound_cues(&self) -> Vec<&SoundCue>
pub fn active_vfx(&self) -> Vec<&VfxBinding>
pub fn progress_pct(&self) -> f32
pub fn markers_in_range(&self, start_s: f32, end_s: f32) -> Vec<&(f32, String)>
pub fn render_pass_count(&self) -> usize
Trait Implementations§
Source§impl Clone for CutsceneDirector
impl Clone for CutsceneDirector
Auto Trait Implementations§
impl Freeze for CutsceneDirector
impl RefUnwindSafe for CutsceneDirector
impl Send for CutsceneDirector
impl Sync for CutsceneDirector
impl Unpin for CutsceneDirector
impl UnsafeUnpin for CutsceneDirector
impl UnwindSafe for CutsceneDirector
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
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.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.