RuntimeInworldStudio
This class is used to acquire studio access tokens, connect to the studio server, and fetch data at run-time.
API
Function | Return Type | Description | Parameters |
---|---|---|---|
Init | void | Used for acquiring studio access tokens | tokenForExchange: id token to exchange. |
Init | void | Used for acquiring studio access tokens via an Oculus account | oculusNonce: random string generated from Oculus oculusID: Oculus ID number |
CreateWorkspaces | void | Instantiating InworldWorkspaceData | workspaces: data returned from the server |
CreateScenes | void | Instantiating InworldSceneData | workspace: target InworldWorkspaceData to add scenes scenes: data returned from the server |
CreateCharacters | void | Instantiating InworldCharacterData | workspace: target InworldWorkspaceData to add characters characters: data returned from the server |
CreateIntegrations | void | Instantiating InworldKeySecret | workspace: target InworldWorkspaceData to add key/secret pairs apiKeys: data returned from the server |
OnStudioError | void | Handling error messages returning from the studio server. | studioStatus: the error message type for the studio server msg: the returning string of the message |
OnUserTokenCompleted | void | This is invoked when the studio access token has been generated | N/A |