API reference
API reference
Select your platform
No SDKs available
No versions available

StandalonePlatform Class

Standalone mode allows you to initialize the Meta Platform SDK in test and development environments It is useful for testing Matchmaking where you can run multiple apps on the same box to test your integration. See more information here: https://developer.oculus.com/documentation/unity/ps-setup/#use-the-platform-in-standalone-mode.

Methods

AsyncInitialize ( appID , accessToken )
It initializes the platform in standalone mode with the provided App ID and access token. It resets the test platform, initializes the globals, and then calls CAPI.ovr_PlatformInitializeWithAccessToken() to perform the actual initialization.
Signature
Request<Models.PlatformInitialize> Oculus.Platform.StandalonePlatform.AsyncInitialize(ulong appID, string accessToken)
Parameters
appID: ulong
accessToken: string
AsyncInitializeWithAccessTokenAndOptions ( appId , accessToken , initConfigOptions )
It initializes the platform in standalone mode with the provided App ID, access token, and initialization options.
Signature
Request<Models.PlatformInitialize> Oculus.Platform.StandalonePlatform.AsyncInitializeWithAccessTokenAndOptions(string appId, string accessToken, Dictionary< InitConfigOptions, bool > initConfigOptions)
Parameters
appId: string
accessToken: string
initConfigOptions: Dictionary< InitConfigOptions, bool >
InitializeInEditor ()
It initializes the platform in standalone mode within the Unity Editor. It checks for the presence of an App ID and access token, and throws an exception if either is missing. If the necessary credentials are present, it calls the AsyncInitialize() function to perform the actual initialization.
Signature
Request<Models.PlatformInitialize> Oculus.Platform.StandalonePlatform.InitializeInEditor()
UnityLogDelegate ( tag , msg )
This is a delegate function that allows you to receive log message from the platform.
Signature
delegate void Oculus.Platform.StandalonePlatform.UnityLogDelegate(IntPtr tag, IntPtr msg)
Parameters
tag: IntPtr
msg: IntPtr
Returns
delegate void