pub struct FullLevelStreamingEditor {
pub core: LevelStreamingEditor,
pub instance_manager: LevelInstanceManager,
pub ui_state: LevelStreamingEditorUiState,
pub profiler: LevelStreamingProfiler,
pub transition_controller: TransitionController,
pub culling_manager: CullingManager,
pub spatial_hash: SpatialHashGrid,
pub bandwidth_estimator: BandwidthEstimator,
pub occlusion_cache_ext: OcclusionCache,
}Expand description
Extended version of the editor with all subsystems
Fields§
§core: LevelStreamingEditor§instance_manager: LevelInstanceManager§ui_state: LevelStreamingEditorUiState§profiler: LevelStreamingProfiler§transition_controller: TransitionController§culling_manager: CullingManager§spatial_hash: SpatialHashGrid§bandwidth_estimator: BandwidthEstimator§occlusion_cache_ext: OcclusionCacheImplementations§
Source§impl FullLevelStreamingEditor
impl FullLevelStreamingEditor
pub fn new(config: LevelStreamingEditorConfig) -> Self
pub fn tick(&mut self, dt_s: f32)
pub fn add_level_with_instance( &mut self, name: String, asset: StreamingLevelAsset, bounds: Aabb, transform: Mat4, ) -> (u64, u64)
pub fn select_level_in_ui(&mut self, id: u64, multi: bool)
pub fn set_active_panel(&mut self, panel: EditorPanel)
pub fn get_profiler_summary(&self) -> String
pub fn transition_to_sector( &mut self, from_level: u64, to_level: u64, transition: SectorTransitionType, )
pub fn rebuild_spatial_hash(&mut self)
pub fn query_levels_frustum_culled(&self) -> Vec<u64>
pub fn query_levels_occlusion_culled(&self) -> Vec<u64>
pub fn estimate_load_order_time_ms(&self) -> f32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FullLevelStreamingEditor
impl RefUnwindSafe for FullLevelStreamingEditor
impl Send for FullLevelStreamingEditor
impl Sync for FullLevelStreamingEditor
impl Unpin for FullLevelStreamingEditor
impl UnsafeUnpin for FullLevelStreamingEditor
impl UnwindSafe for FullLevelStreamingEditor
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> 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.