Class MARSSceneModule
Namespace: Unity.MARS.Settings
Syntax
public class MARSSceneModule : ScriptableSettings<MARSSceneModule>, IModuleBehaviorCallbacks, IUsesCameraOffset, IFunctionalitySubscriber<IProvidesCameraOffset>, IModuleDependency<FunctionalityInjectionModule>
Properties
BlockEnsureSession
Do not automatically create a session when proxies are detected in the scene
Declaration
public bool BlockEnsureSession { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
provider
Declaration
public IProvidesCameraOffset provider { get; set; }
Property Value
Type | Description |
---|---|
IProvidesCameraOffset |
simulatedDiscoveryInPlayMode
When enabled and SimulateInPlayMode is enabled, the simulated discovery functionality island will be used.
Declaration
public static bool simulatedDiscoveryInPlayMode { get; }
Property Value
Type | Description |
---|---|
Boolean |
simulateDiscovery
When enabled and SimulateInPlayMode is enabled, the simulated discovery functionality island will be used.
Declaration
public bool simulateDiscovery { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
simulateInPlaymode
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
Type | Description |
---|---|
Boolean |
Methods
AddRuntimeSceneObjects(IEnumerable<Object>)
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
BeforeSetupDefaultProviders
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
Type | Description |
---|---|
Action<List<IFunctionalityProvider>> |