Inheritance
MARSSceneModule
Inherited Members
Unity.XRTools.Utils.Internal.ScriptableSettingsBase.GetInstanceByType(System.Type)
[ModuleBehaviorCallbackOrder(1073741823)]
[ScriptableSettingsPath("Assets/MARS/Settings")]
[MovedFrom("Unity.MARS")]
public class MARSSceneModule : ScriptableSettings<MARSSceneModule>, IModuleBehaviorCallbacks, IUsesCameraOffset, IFunctionalitySubscriber<IProvidesCameraOffset>, IFunctionalitySubscriber, IModuleDependency<FunctionalityInjectionModule>, IModule
Properties
Do not automatically create a session when proxies are detected in the scene
Declaration
public bool BlockEnsureSession { get; set; }
Property Value
Declaration
public IProvidesCameraOffset provider { get; set; }
Property Value
Implements
When enabled and SimulateInPlayMode is enabled, the simulated discovery functionality island will be used.
Declaration
public static bool simulatedDiscoveryInPlayMode { get; }
Property Value
When enabled and SimulateInPlayMode is enabled, the simulated discovery functionality island will be used.
Declaration
public bool simulateDiscovery { get; set; }
Property Value
When enabled, the simulated environment will be added in play mode, and a simulation functionality island will be used.
Declaration
public bool simulateInPlaymode { get; set; }
Property Value
Methods
Add runtime objects to include when gathering functionality subscribers and providers from the MARS scene.
This also updates the scene requirements in the MARS Session.
Declaration
public void AddRuntimeSceneObjects(IEnumerable<object> sceneObjects)
Parameters
Type |
Name |
Description |
IEnumerable<Object> |
sceneObjects |
Collection of objects to include in the MARS scene
|
Events
Called right before default providers are setup.
The list should be filled out with providers that you want this module to add before it sets up default providers.
Declaration
public event Action<List<IFunctionalityProvider>> BeforeSetupDefaultProviders
Event Type
Explicit Interface Implementations
Declaration
void IModule.LoadModule()
Implements
Declaration
void IModule.UnloadModule()
Implements
Declaration
void IModuleBehaviorCallbacks.OnBehaviorAwake()
Implements
Declaration
void IModuleBehaviorCallbacks.OnBehaviorDestroy()
Implements
Declaration
void IModuleBehaviorCallbacks.OnBehaviorDisable()
Implements
Declaration
void IModuleBehaviorCallbacks.OnBehaviorEnable()
Implements
Declaration
void IModuleBehaviorCallbacks.OnBehaviorStart()
Implements
Declaration
void IModuleBehaviorCallbacks.OnBehaviorUpdate()
Implements
Declaration
void IModuleDependency<FunctionalityInjectionModule>.ConnectDependency(FunctionalityInjectionModule dependency)
Parameters
Implements