Skip to main content

LoadingScreenFactory

A class in Root.Township, the global namespace.

Picks the loading screen prefab for the platform (Quest, Pico or default). Bound in ProjectLifetimeScope and used by AltaSceneManager.

Constructors​

MemberWhat it is
LoadingScreenFactory()Creates a LoadingScreenFactory with default values.

Fields​

3 private and internal fields
MemberWhat it is
private AssetReference defaultLoadingScreenObjectLoading screen for other platforms.
private AssetReference picoLoadingScreenObjectLoading screen for Pico.
private AssetReference questLoadingScreenObjectLoading screen for Quest.

Methods​

MemberWhat it is
AsyncOperationHandle<GameObject> GetLoadingScreenObjectHandle()Starts loading the loading screen addressable for the current platform and returns its handle.

Used in​

Members of other types that take, return or hold a LoadingScreenFactory: