ModuleLoader



Core class for Module Loader packageThis is the entry point for loading modules and a hub for all callbacks and methods to access/control modules

  1. Moduleload Back_ Backend
  2. Module Loader Java
  3. Module Loader Java
  4. Module Loader
  5. Moduleload
  6. Module Loader Javascript
  7. Module Loader Jar
Inheritance
  1. ModuleLoader can load a module directly (this is the default behavior), or you can turn off automatic loading by setting autoLoad to false, and perform the load of each module on demand. This example shows a Jewel Card with a ModuleLoader and a button that triggers the load.
  2. When using graphql-tools, you define your field resolvers separately from the schema.Since the schema already describes all of the fields, arguments, and result types, the only thing left is a collection of functions that are called to actually execute these fields.
Unity.XRTools.Utils.Internal.ScriptableSettingsBase

The Latitude standard library is separated into two portions: the core library and the standard modules. The core library is the portion of the standard library which is imported into the Latitude VM at startup, containing things like Kernel and Object.

Unity.XRTools.Utils.Internal.ScriptableSettingsBase<ModuleLoaderCore>
Unity.XRTools.Utils.ScriptableSettings<ModuleLoaderCore>
Inherited Members
Unity.XRTools.Utils.ScriptableSettings<Unity.XRTools.ModuleLoader.ModuleLoaderCore>.instance
Unity.XRTools.Utils.Internal.ScriptableSettingsBase<Unity.XRTools.ModuleLoader.ModuleLoaderCore>.k_HasCustomPath
Unity.XRTools.Utils.Internal.ScriptableSettingsBase<Unity.XRTools.ModuleLoader.ModuleLoaderCore>.s_Instance
Unity.XRTools.Utils.Internal.ScriptableSettingsBase<Unity.XRTools.ModuleLoader.ModuleLoaderCore>.Save(System.String)
Unity.XRTools.Utils.Internal.ScriptableSettingsBase<Unity.XRTools.ModuleLoader.ModuleLoaderCore>.GetFilePath()
Unity.XRTools.Utils.Internal.ScriptableSettingsBase.k_PathExceptionMessage
Unity.XRTools.Utils.Internal.ScriptableSettingsBase.GetInstanceByType(System.Type)
Namespace: Unity.XRTools.ModuleLoader
Syntax

Fields

ModuleLoaderAssetsFolder

Root folder for all assets automatically generated by ModuleLoader

Declaration
Module loader
Field Value
TypeDescription
String
ModuleLoader

SettingsPath

Declaration
Field Value

Moduleload Back_ Backend

TypeDescription
String

UserSettingsFolder

Default folder for user settings assets

Declaration
Field Value
TypeDescription
String

Properties

isUnloadingModules

True if Module Loader is in the process of unloading modules

Declaration
Property Value
TypeDescription
Boolean

modules

Declaration
Property Value
TypeDescription
List<IModule>

ModulesAreLoaded

True if modules have been loaded

Declaration
Property Value
TypeDescription
Boolean

Methods

GetCurrentPlatform()

Get the current platform for the purposes of provider selectionThs will return the value of Application.platform, except in the editor in playmode if the Override Platformin Playmode setting is enabled. Then it will use the selected override platform.

Declaration
Returns
TypeDescription
RuntimePlatform

The runtime platform which should be used in provider selection

GetModule<T>()

Get the module of the given type, if it has been loaded

Declaration
Returns
TypeDescription
T

The module, if it has been loaded, or the default value for that type

Type Parameters
NameDescription
T

The type of module

GetModuleParent()

Get or create the GameObject to which all MonoBehaviour modules are added as children

Declaration
Returns
TypeDescription
GameObject

The module parent object

GetModuleTypes(List<Type>)

ModuleLoader
Declaration
Parameters
TypeNameDescription
List<Type>moduleTypes

The list to which modules will be added

InjectFunctionalityInModules(FunctionalityIsland)

Inject functionality on all modules using the provided FunctionalityIsland

Declaration
Parameters
TypeNameDescription
FunctionalityIslandisland

The functionality island to use for functionality injection

LoadModules()

Load all modules, except those whose types are excluded by Module Loader settings

Declaration

OnBehaviorAwake()

Invoke OnBehaviorAwake callback on all behavior callback modules

Declaration

OnBehaviorDestroy()

Module Loader Java

Invoke OnBehaviorDestroy callback on all behavior callback modules

Declaration

OnBehaviorDisable()

Invoke OnBehaviorDisable callback on all behavior callback modules

Declaration

OnBehaviorEnable()

Invoke OnBehaviorEnable callback on all behavior callback modules

Declaration

OnBehaviorStart()

Invoke OnBehaviorStart callback on all behavior callback modules

Declaration

OnBehaviorUpdate()

Invoke OnBehaviorUpdate callback on all behavior callback modules

Declaration

Module Loader Java

OnLoaded()

Function called when all scriptable settings are loaded and ready for use

Declaration

Module Loader

Overrides
Unity.XRTools.Utils.Internal.ScriptableSettingsBase.OnLoaded()

ReloadModules()

Declaration

UnloadModules()

Unload all modules

Declaration

Moduleload

Events

ModulesLoaded

Invoked when modules are loaded, after all calls to LoadModule

Declaration

Module Loader Javascript

Event Type

Module Loader Jar

TypeDescription
Action