Represents the runtime behavior of MARS. One of these must be in any scene with MARS content for it to function properly
public class MARSSession : MonoBehaviour, IUsesFunctionalityInjection, IFunctionalitySubscriber<IProvidesFunctionalityInjection>, IFunctionalitySubscriber
Fields
Declaration
public const string LicensingUrl = "https://www.unity.com/mars"
Field Value
Declaration
public const string NotEntitledMessage = "No MARS subscription found for the current user. Users must purchase a subscription from the online store."
Field Value
Declaration
public const string NotEntitledMessageWithUrl = "No MARS subscription found for the current user. Users must purchase a subscription from the online store. Please go to https://www.unity.com/mars"
Field Value
Properties
Declaration
public static MARSSession Instance { get; }
Property Value
island
Declaration
public FunctionalityIsland island { get; }
Property Value
Declaration
public Capabilities requirements { get; }
Property Value
Methods
Declaration
public bool CheckCapabilities()
Returns
Ensures that a MARS Scene has all required components and configuration
Declaration
public static void EnsureRuntimeState(Transform overrideUserRef = null)
Parameters
Type |
Name |
Description |
Transform |
overrideUserRef |
|
Ensures that the active scene has a MARS Session
Declaration
public static MARSSession EnsureSessionInActiveScene()
Returns
Type |
Description |
MARSSession |
Thew newly created MARSSession, or null if a session previously exists
|
Search all loaded scenes for MARSSession objects and set the first one to the Instance property, if any exist
Declaration
public static void FindExistingInstance()
Explicit Interface Implementations
Declaration
IProvidesFunctionalityInjection IFunctionalitySubscriber<IProvidesFunctionalityInjection>.provider { get; set; }
Returns
Implements