Skip to main content

StartupLoader

A class in Root.Township, the global namespace.

Startup scene component that sets up logging, runs the platform loaders, quits if any fail, then starts the scene loaders.

Constructors​

MemberWhat it is
StartupLoader()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

2 private and internal fields
MemberWhat it is
private List<PlatformLoader> platformLoadersPlatform setup steps that must all succeed.
private LoadScenes[] sceneLoadersScene loaders run after the platform loaders.

Methods​

2 private and internal methods
MemberWhat it is
private async void Awake()Sets up logging, saves the game config, awaits all platform loaders (quitting on failure) and loads the scenes.
private void IBuildRendererPostBake.PostBake()Build step: removes null scene loaders.