Skip to main content

ISceneManagerAPIMethods

Trait ISceneManagerAPIMethods 

Source
pub trait ISceneManagerAPIMethods: ISceneManagerAPI {
    // Provided methods
    fn ctor(self) { ... }
    fn load_scene_async_by_name_or_index(
        self,
        scene_name: impl Into<Il2CppString>,
        scene_build_index: impl Into<i32>,
        parameters: impl Into<LoadSceneParameters>,
        must_complete_next_frame: impl Into<bool>,
    ) -> AsyncOperation { ... }
    fn load_first_scene(
        self,
        must_load_async: impl Into<bool>,
    ) -> AsyncOperation { ... }
}

Provided Methods§

Source

fn ctor(self)

.ctor() overload

Source

fn load_scene_async_by_name_or_index( self, scene_name: impl Into<Il2CppString>, scene_build_index: impl Into<i32>, parameters: impl Into<LoadSceneParameters>, must_complete_next_frame: impl Into<bool>, ) -> AsyncOperation

LoadSceneAsyncByNameOrIndex(::unity::Il2CppString, i32, crate::unity_engine::scene_management::loadsceneparameters::LoadSceneParameters, bool) overload

Source

fn load_first_scene(self, must_load_async: impl Into<bool>) -> AsyncOperation

LoadFirstScene(bool) overload

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<__T: ISceneManagerAPI> ISceneManagerAPIMethods for __T

Available on crate feature unity_engine-scene_management-scenemanagerapi only.