Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Mar 26, 2024. It is now read-only.
/UDBasePublic archive

UDBase.Controllers.SceneSystem

KonH edited this pageFeb 24, 2018 ·3 revisions

AsyncLoadHelper

Helper class for async scene loading

publicclassUDBase.Controllers.SceneSystem.AsyncLoadHelper:MonoBehaviour

Properties

TypeNameSummary
SingleProgress

Methods

TypeNameSummary
voidLoadScene(String sceneName,Action<String> callback)

AsyncSceneLoader

Asynchronous scene loader

publicclassUDBase.Controllers.SceneSystem.AsyncSceneLoader:IScene

Properties

TypeNameSummary
ISceneInfoCurrentScene

Methods

TypeNameSummary
voidLoadScene(ISceneInfo sceneInfo)
voidLoadScene(String sceneName)
voidLoadScene(T type)
voidLoadScene(T type,String param)
voidLoadScene(T type,String[] parameters)
voidReloadScene()

DirectSceneLoader

Synchronous scene loader

publicclassUDBase.Controllers.SceneSystem.DirectSceneLoader:IScene

Properties

TypeNameSummary
ISceneInfoCurrentScene

Methods

TypeNameSummary
voidLoadScene(ISceneInfo sceneInfo)
voidLoadScene(String sceneName)
voidLoadScene(T type)
voidLoadScene(T type,String param)
voidLoadScene(T type,String[] parameters)
voidReloadScene()

IScene

IScene provide several methods to load scenes: By name - simpliest method. By some type and parameters - move specific and flexible. For example, you have some scene structure like that (or much more complicated): - MainMenu (loaded by name) Level_1, Level_2, .., Level_N (custom type with parameter) Your custom class/struct needs to inherit from ISceneInfo and implement Name property with your custom logics. Another simple option you can use is enum like Scenes { MainMenu, Level }, which can be used in both cases: LoadScene(Scenes.MainMenu) => loads "MainMenu" LoadScene(Scenes.Level, "1") => loads "Level_1"

publicinterfaceUDBase.Controllers.SceneSystem.IScene

Properties

TypeNameSummary
ISceneInfoCurrentSceneInfo of current loaded scene

Methods

TypeNameSummary
voidLoadScene(ISceneInfo sceneInfo)Loads the scene by specific info
voidLoadScene(String sceneName)Loads the scene by specific info
voidLoadScene(T type)Loads the scene by specific info
voidLoadScene(T type,String param)Loads the scene by specific info
voidLoadScene(T type,String[] parameters)Loads the scene by specific info
voidReloadScene()Reloads the current scene.

ISceneInfo

Interface for scene information

publicinterfaceUDBase.Controllers.SceneSystem.ISceneInfo

Properties

TypeNameSummary
StringName

MultiSceneParam<T>

Multi scene parameter - custom type with >1 parameters. Example: Level_Type1_1, Level_TypeN_N, etc.

publicstructUDBase.Controllers.SceneSystem.MultiSceneParam<T>:ISceneInfo

Properties

TypeNameSummary
StringName
String[]Params
StringType

Scene_Loaded

Event which fired when scene was changed

publicstructUDBase.Controllers.SceneSystem.Scene_Loaded

Properties

TypeNameSummary
ISceneInfoSceneInfo

SceneInfo

Scene info factory

publicstaticclassUDBase.Controllers.SceneSystem.SceneInfo

Static Methods

TypeNameSummary
ISceneInfoGet(T type)
ISceneInfoGet(T type,String param)
ISceneInfoGet(T type,String[] param)

SceneName

Basic scene info - requires only name. Example: MainMenu, Settings, etc.

publicstructUDBase.Controllers.SceneSystem.SceneName:ISceneInfo

Properties

TypeNameSummary
StringName

Methods

TypeNameSummary
StringToString()

SceneParam<T>

Specific info - custom type and (optional) parameter. Example: Level_1, Level_N, etc.

publicstructUDBase.Controllers.SceneSystem.SceneParam<T>:ISceneInfo

Properties

TypeNameSummary
StringName
StringParam
StringType

Clone this wiki locally


[8]ページ先頭

©2009-2026 Movatter.jp