{"id":13801260,"url":"https://github.com/watson-developer-cloud/unity-sdk","last_synced_at":"2025-05-16T15:02:30.874Z","repository":{"id":43029779,"uuid":"48125477","full_name":"watson-developer-cloud/unity-sdk","owner":"watson-developer-cloud","description":":video_game: Unity SDK to use the IBM Watson services.","archived":false,"fork":false,"pushed_at":"2025-04-22T19:21:21.000Z","size":327278,"stargazers_count":568,"open_issues_count":4,"forks_count":207,"subscribers_count":80,"default_branch":"master","last_synced_at":"2025-04-22T20:31:37.998Z","etag":null,"topics":["artificial-intelligence","bluemix","cognitive","hacktoberfest","ibm-cloud","unity-sdk","unity3d","vr","watson","watson-sdk","watson-services"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/watson-developer-cloud.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-12-16T17:40:51.000Z","updated_at":"2025-04-22T19:21:23.000Z","dependencies_parsed_at":"2024-11-24T13:02:05.294Z","dependency_job_id":null,"html_url":"https://github.com/watson-developer-cloud/unity-sdk","commit_stats":null,"previous_names":[],"tags_count":73,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watson-developer-cloud%2Funity-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watson-developer-cloud%2Funity-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watson-developer-cloud%2Funity-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watson-developer-cloud%2Funity-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/watson-developer-cloud","download_url":"https://codeload.github.com/watson-developer-cloud/unity-sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254553936,"owners_count":22090415,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["artificial-intelligence","bluemix","cognitive","hacktoberfest","ibm-cloud","unity-sdk","unity3d","vr","watson","watson-sdk","watson-services"],"created_at":"2024-08-04T00:01:21.002Z","updated_at":"2025-05-16T15:02:30.861Z","avatar_url":"https://github.com/watson-developer-cloud.png","language":"C#","funding_links":[],"categories":["Data \u0026 AI"],"sub_categories":[],"readme":"# IBM Watson SDK for Unity\n[![Deploy and Publish](https://github.com/watson-developer-cloud/unity-sdk/workflows/Deploy%20and%20Publish/badge.svg?branch=master)](https://github.com/watson-developer-cloud/unity-sdk/actions?query=workflow%3A%22Deploy+and+Publish%22)\n[![wdc-community.slack.com](https://wdc-slack-inviter.mybluemix.net/badge.svg)](http://wdc-slack-inviter.mybluemix.net/)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n[![CLA assistant](https://cla-assistant.io/readme/badge/watson-developer-cloud/unity-sdk)](https://cla-assistant.io/watson-developer-cloud/unity-sdk)\n\n## Deprecation Notice\nThis repo and its associated release binaries are being deprecated. While this repo will no longer see active support from the IBM team, contributions by the community via PRs are still welcomed and will be reviewed. Keep in mind, updates will no longer be published into release binaries and changes made after this update will need to be compiled independently.\n\nUse this SDK to build Watson-powered applications in Unity.\n\n## Announcements\n### Tone Analyzer Deprecation\nAs of this major release, 6.0.0, the Tone Analyzer API has been removed in preparation for deprecation. If you wish to continue using this sdk to make calls to Tone Analyzer until its final deprecation, you will have to use a previous version.\nOn 24 February 2022, IBM announced the deprecation of the Tone Analyzer service. The service will no longer be available as of 24 February 2023. As of 24 February 2022, you will not be able to create new instances. Existing instances will be supported until 24 February 2023.\n\nAs an alternative, we encourage you to consider migrating to the Natural Language Understanding service on IBM Cloud. With Natural Language Understanding, tone analysis is done by using a pre-built classifications model, which provides an easy way to detect language tones in written text. For more information, see [Migrating from Watson Tone Analyzer Customer Engagement endpoint to Natural Language Understanding](https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-tone_analytics).\n\n### Natural Language Classifier Deprecation\nAs of this major release, 6.0.0, the NLC API has been removed in preparation for deprecation. If you wish to continue using this sdk to make calls to NLC until its final deprecation, you will have to use a previous version.\nOn 9 August 2021, IBM announced the deprecation of the Natural Language Classifier service. The service will no longer be available from 8 August 2022. As of 9 September 2021, you will not be able to create new instances. Existing instances will be supported until 8 August 2022. Any instance that still exists on that date will be deleted.\n\nAs an alternative, we encourage you to consider migrating to the Natural Language Understanding service on IBM Cloud that uses deep learning to extract data and insights from text such as keywords, categories, sentiment, emotion, and syntax, along with advanced multi-label text classification capabilities, to provide even richer insights for your business or industry. For more information, see [Migrating to Natural Language Understanding](https://cloud.ibm.com/docs/natural-language-classifier?topic=natural-language-classifier-migrating).\n\n### Updating endpoint URLs from watsonplatform.net\nWatson API endpoint URLs at watsonplatform.net are changing and will not work after 26 May 2021. Update your calls to use the newer endpoint URLs. For more information, see https://cloud.ibm.com/docs/watson?topic=watson-endpoint-change.\n\n## Before you begin\nEnsure that you have the following prerequisites:\n\n* You need an [IBM Cloud][ibm-cloud-onboarding] account.\n* [Unity][get_unity]. You can use the **free** Personal edition.\n\n## Configuring Unity\n* Change the build settings in Unity (**File \u003e Build Settings**) to any platform except for web player/Web GL. The IBM Watson SDK for Unity does not support Unity Web Player.\n* If using Unity 2018.2 or later you'll need to set **Scripting Runtime Version** and **Api Compatibility Level** in Build Settings to **.NET 4.x equivalent**. We need to access security options to enable TLS 1.2. \n\n\u003e Updating MacOS to Mojave may disable microphone for Unity. If you are running into this issue please see these [guidelines](https://support.apple.com/en-us/HT209175) to configure microphone for Mojave. \n\n\n## Getting the Watson SDK and adding it to Unity\nYou can get the latest SDK release by clicking [here][latest_release_sdk]. **You will also need to download the latest release of the IBM Unity SDK Core by clicking [here][latest_release_core].**\n\n### Installing the SDK source into your Unity project\nMove the **`unity-sdk`** and **`unity-sdk-core`** directories into the **`Assets`** directory of your Unity project. _Optional: rename the SDK directory from `unity-sdk` to `Watson` and the Core directory from `unity-sdk-core` to `IBMSdkCore`_.\n\n## Configuring your service credentials\nTo create instances of Watson services and their credentials, follow the steps below.\n\n**Note:** Service credentials are different from your IBM Cloud account username and password.\n\n1. Determine which services to configure.\n1. If you have configured the services already, complete the following steps. Otherwise, go to step 3.\n    1. Log in to IBM Cloud at https://cloud.ibm.com.\n    1. Click the service you would like to use.\n    1. Click **Service credentials**.\n    1. Click **View credentials** to access your credentials.\n1. If you need to configure the services that you want to use, complete the following steps.\n    1. Log in to IBM Cloud at https://cloud.ibm.com.\n    1. Click the **Create service** button.\n    1. Under **Watson**, select which service you would like to create an instance of and click that service.\n    1. Give the service and credential a name. Select a plan and click the **Create** button on the bottom.\n    4. Click **Service Credentials**.\n    5. Click **View credentials** to access your credentials.\n1. Your service credentials can be used to instantiate Watson Services within your application. Most services also support tokens which you can instantiate the service with as well.\n\nThe credentials for each service contain either a `username`, `password` and endpoint `url` **or** an `apikey` and endpoint `url`.\n\n**WARNING:** You are responsible for securing your own credentials. Any user with your service credentials can access your service instances!\n\n## Watson Services\nTo get started with a Watson Service in Unity, follow the link to see the code.\n* [Assistant V1](/Scripts/Services/Assistant/V1)\n* [Assistant V2](/Scripts/Services/Assistant/V2)\n* [Compare Comply V1](/Scripts/Services/CompareComply/V1)\n* [Conversation](/Scripts/Services/Conversation/V1) (deprecated - Use Assistant V1 or Assistant V2)\n* [Discovery](/Scripts/Services/Discovery/V1)\n* [Language Translator V3](/Scripts/Services/LanguageTranslator/V3)\n* [Natural Language Classifier](/Scripts/Services/NaturalLanguageClassifier/V2)\n* [Natural Language Understanding](/Scripts/Services/NaturalLanguageUnderstanding/V1)\n* [Personality Insights](/Scripts/Services/PersonalityInsights/V3)\n* [Speech to Text](/Scripts/Services/SpeechToText/V1)\n* [Text to Speech](/Scripts/Services/TextToSpeech/V1)\n* [Tone Analyzer](/Scripts/Services/ToneAnalyzer/V3)\n* [Visual Recognition](/Scripts/Services/VisualRecognition/V3)\n\n## Authentication\nWatson services are migrating to token-based Identity and Access Management (IAM) authentication.\n\n- With some service instances, you authenticate to the API by using **[IAM](#iam)**.\n- In other instances, you authenticate by providing the **[username and password](#username-and-password)** for the service instance.\n\n### Getting credentials\nTo find out which authentication to use, view the service credentials. You find the service credentials for authentication the same way for all Watson services:\n\n1.  Go to the IBM Cloud **[Dashboard][watson-dashboard]** page.\n1.  Either click an existing Watson service instance or click **Create**.\n1.  Click **Show** to view your service credentials.\n1.  Copy the `url` and either `apikey` or `username` and `password`.\n\nIn your code, you can use these values in the service constructor or with a method call after instantiating your service.\n\n### IAM\n\nSome services use token-based Identity and Access Management (IAM) authentication. IAM authentication uses a service API key to get an access token that is passed with the call. Access tokens are valid for approximately one hour and must be regenerated.\n\nYou supply either an IAM service **API key** or an **access token**:\n\n- Use the API key to have the SDK manage the lifecycle of the access token. The SDK requests an access token, ensures that the access token is valid, and refreshes it if necessary.\n- Use the access token if you want to manage the lifecycle yourself. For details, see [Authenticating with IAM tokens](https://cloud.ibm.com/docs/watson?topic=watson-iam). If you want to switch to API key, in a coroutine, override your stored IAM credentials with an IAM API key and yield until the credentials object `HasIamTokenData()` returns `true`.\n\n#### Supplying the IAM API key\n```cs\nAuthenticator authenticator;\nAssistantService assistant;\nstring versionDate = \"\u003cservice-version-date\u003e\";\n\nIEnumerator TokenExample()\n{\n    //  Create authenticator using the IAM token options\n    authenticator = new IamAuthenticator(apikey: \"\u003ciam-api-key\u003e\");\n    while (!authenticator.CanAuthenticate())\n        yield return null;\n\n    assistant = new AssistantService(versionDate, authenticator);\n    assistant.SetServiceUrl(\"\u003cservice-url\u003e\");\n    assistant.ListWorkspaces(callback: OnListWorkspaces);\n}\n\nprivate void OnListWorkspaces(DetailedResponse\u003cWorkspaceCollection\u003e response, IBMError error)\n{\n    Log.Debug(\"OnListWorkspaces()\", \"Response: {0}\", response.Response);\n}\n```\n\n#### Supplying the access token\n```cs\nAuthenticator authenticator;\nAssistantService assistant;\nstring versionDate = \"\u003cservice-version-date\u003e\";\n\nvoid TokenExample()\n{\n    //  Create authenticator using the Bearer Token\n    authenticator = new BearerTokenAuthenticator(\"\u003cbearer-token\u003e\");\n\n    assistant = new AssistantService(versionDate, authenticator);\n    assistant.SetServiceUrl(\"\u003cservice-url\u003e\");\n    assistant.ListWorkspaces(callback: OnListWorkspaces);\n}\n\nprivate void OnListWorkspaces(DetailedResponse\u003cWorkspaceCollection\u003e response, IBMError error)\n{\n    Log.Debug(\"OnListWorkspaces()\", \"Response: {0}\", response.Response);\n}\n```\n\n### Username and password\n```cs\nAuthenticator authenticator;\nAssistantService assistant;\nstring versionDate = \"\u003cservice-version-date\u003e\";\n\nvoid UsernamePasswordExample()\n{\n    Authenticator authenticator = new BasicAuthenticator(\"\u003cusername\u003e\", \"\u003cpassword\u003e\", \"\u003curl\u003e\");\n    assistant = new AssistantService(versionDate, authenticator);\n    assistant.SetServiceUrl(\"\u003cservice-url\u003e\");\n}\n```\n\n### Supplying authenticator\n\nThere are two ways to supply the authenticator you found above to the SDK for authentication.\n\n#### Credential file (easier!)\n\nWith a credential file, you just need to put the file in the right place and the SDK will do the work of parsing it and authenticating. You can get this file by clicking the **Download** button for the credentials in the **Manage** tab of your service instance.\n\nThe file downloaded will be called `ibm-credentials.env`. This is the name the SDK will search for and **must** be preserved unless you want to configure the file path (more on that later). The SDK will look for your `ibm-credentials.env` file in the following places (in order):\n\n- Your system's home directory\n- The top-level directory of the project you're using the SDK in\n\nAs long as you set that up correctly, you don't have to worry about setting any authentication options in your code. So, for example, if you created and downloaded the credential file for your Discovery instance, you just need to do the following:\n\n```cs\npublic IEnumerator ExampleAutoService()\n{\n    Assistant assistantService = new Assistant(\"2019-04-03\");\n\n    //  Wait for authorization token\n    while (!assistantService.Authenticator.CanAuthenticate())\n        yield return null;\n\n    var listWorkspacesResult = assistantService.ListWorkspaces();\n}\n```\n\nAnd that's it!\n\nIf you're using more than one service at a time in your code and get two different `ibm-credentials.env` files, just put the contents together in one `ibm-credentials.env` file and the SDK will handle assigning authenticator to their appropriate services.\n\nIf you would like to configure the location/name of your credential file, you can set an environment variable called `IBM_CREDENTIALS_FILE`. **This will take precedence over the locations specified above.** Here's how you can do that:\n\n```bash\nexport IBM_CREDENTIALS_FILE=\"\u003cpath\u003e\"\n```\n\nwhere `\u003cpath\u003e` is something like `/home/user/Downloads/\u003cfile_name\u003e.env`.\n\n#### Manually\n\nIf you'd prefer to set authentication values manually in your code, the SDK supports that as well. The way you'll do this depends on what type of authenticator your service instance gives you.\n\n## Callbacks\nA success callback is required. You can specify the return type in the callback.\n```cs\nAssistantService assistant;\nstring assistantVersionDate = \"\u003cassistant-version-date\u003e\";\nAuthenticator assistantAuthenticator;\nstring workspaceId = \"\u003cworkspaceId\u003e\";\n\nDiscoveryService discovery;\nstring discoveryVersionDate = \"\u003cdiscovery-version-date\u003e\";\nAuthenticator discoveryAuthenticator;\n\nprivate void Example()\n{\n    assistant = new AssistantService(assistantVersionDate, assistantAuthenticator);\n    assistant.SetServiceUrl(\"\u003cservice-url\u003e\");\n\n    discovery = new DiscoveryService(discoveryVersionDate, discoveryAuthenticator);\n    discovery.SetServiceUrl(\"\u003cservice-url\u003e\");\n\n    //  Call with sepcific callbacks\n    assistant.Message(\n        callback: OnMessage,\n        workspaceId: workspaceId\n    );\n\n    discovery.ListEnvironments(\n        callback: OnGetEnvironments\n    );\n}\n\nprivate void OnMessage(DetailedResponse\u003cMessageResponse\u003e response, IBMError error)\n{\n    Log.Debug(\"ExampleCallback.OnMessage()\", \"Response received: {0}\", response.Response);\n}\n\nprivate void OnGetEnvironments(DetailedResponse\u003cListEnvironmentsResponse\u003e response, IBMError error)\n{\n    Log.Debug(\"ExampleCallback.OnGetEnvironments()\", \"Response received: {0}\", response.Response);\n}\n```\n\nSince the success callback signature is generic and the failure callback always has the same signature, you can use a single set of callbacks to handle multiple calls.\n```cs\nAssistantService assistant;\nstring assistantVersionDate = \"\u003cassistant-version-date\u003e\";\nAuthenticator assistantAuthenticator;\nstring workspaceId = \"\u003cworkspaceId\u003e\";\n\nDiscoveryService discovery;\nstring discoveryVersionDate = \"\u003cdiscovery-version-date\u003e\";\nAuthenticator discoveryAuthenticator;\n\nprivate void Example()\n{\n    assistant = new AssistantService(assistantVersionDate, assistantAuthenticator);\n    assistant.SetServiceUrl(\"\u003cservice-url\u003e\");\n\n    //  Call with generic callbacks\n    JObject input = new JObject();\n    input.Add(\"text\", \"\");\n    assistant.Message(\n        callback: OnSuccess,\n        workspaceId: workspaceId,\n        input: input\n    );\n\n    discovery = new DiscoveryService(discoveryVersionDate, discoveryAuthenticator);\n    discovery.SetServiceUrl(\"\u003cservice-url\u003e\");\n\n    discovery.ListEnvironments(\n        callback: OnSuccess\n    );\n}\n\n//  Generic success callback\nprivate void OnSuccess\u003cT\u003e(DetailedResponse\u003cT\u003e resp, IBMError error)\n{\n    Log.Debug(\"ExampleCallback.OnSuccess()\", \"Response received: {0}\", resp.Response);\n}\n```\n\nYou can also use an anonymous callback\n```cs\nAssistantService assistant;\nstring assistantVersionDate = \"\u003cassistant-version-date\u003e\";\nAuthenticator assistantAuthenticator;\nstring workspaceId = \"\u003cworkspaceId\u003e\";\n\nprivate void Example()\n{\n    assistant = new AssistantService(assistantVersionDate, assistantAuthenticator);\n\n    assistant.ListWorkspaces(\n        callback: (DetailedResponse\u003cWorkspaceCollection\u003e response, IBMError error) =\u003e\n        {\n            Log.Debug(\"ExampleCallback.OnSuccess()\", \"ListWorkspaces result: {0}\", response.Response);\n        },\n        pageLimit: 1,\n        includeCount: true,\n        sort: \"-name\",\n        includeAudit: true\n    );\n    assistant.SetServiceUrl(\"\u003cservice-url\u003e\");\n}\n```\n\nYou can check the `error` response to see if there was an error in the call.\n```cs\nAssistantService assistant;\nstring assistantVersionDate = \"\u003cassistant-version-date\u003e\";\nAuthenticator assistantAuthenticator;\nstring workspaceId = \"\u003cworkspaceId\u003e\";\n\nprivate void Example()\n{\n    assistant = new AssistantService(versionDate, authenticator);\n\n    assistant.Message(OnMessage, workspaceId);\n}\n\nprivate void OnMessage(DetailedResponse\u003cMessageResponse\u003e response, IBMError error)\n{\n    if (error == null)\n    {\n        Log.Debug(\"ExampleCallback.OnMessage()\", \"Response received: {0}\", response.Response);\n    }\n    else\n    {\n        Log.Debug(\"ExampleCallback.OnMessage()\", \"Error received: {0}, {1}, {3}\", error.StatusCode, error.ErrorMessage, error.Response);\n    }\n}\n```\n\n## Custom Request Headers\nYou can send custom request headers by adding them to the service.\n\n```cs\nAssistantService assistant;\nstring assistantVersionDate = \"\u003cassistant-version-date\u003e\";\nAuthenticator assistantAuthenticator;\nstring workspaceId = \"\u003cworkspaceId\u003e\";\n\nvoid Example()\n{\n    assistant = new AssistantService(assistantVersionDate, assistantAuthenticator);\n\n    //  Add custom header to the REST call\n    assistant.WithHeader(\"X-Watson-Metadata\", \"customer_id=some-assistant-customer-id\");\n    assistant.Message(OnSuccess, \"\u003cworkspace-id\u003e\");\n}\n\nprivate void OnSuccess(DetailedResponse\u003cMessageResponse\u003e response, IBMError error)\n{\n    Log.Debug(\"ExampleCallback.OnMessage()\", \"Response received: {0}\", response.Response);\n}\n```\n\n## Response Headers\nYou can get response headers in the `headers` object in the DetailedResponse.\n\n```cs\nAssistantService assistant;\nstring assistantVersionDate = \"\u003cassistant-version-date\u003e\";\nAuthenticator assistantAuthenticator;\nstring workspaceId = \"\u003cworkspaceId\u003e\";\n\nvoid Example()\n{\n    assistant = new AssistantService(assistantVersionDate, assistantAuthenticator);\n\n    assistant.Message(OnMessage, \"\u003cworkspace-id\u003e\");\n}\n\nprivate void OnMessage(DetailedResponse\u003cMessageResponse\u003e response, IBMError error)\n{\n    //  List all headers in the response headers object\n    foreach (KeyValuePair\u003cstring, object\u003e kvp in response.Headers)\n    {\n        Log.Debug(\"ExampleCustomHeader.OnMessage()\", \"{0}: {1}\", kvp.Key, kvp.Value);\n    }\n}\n```\n\n## Transaction IDs\nEvery SDK call returns a response with a transaction ID in the `X-Global-Transaction-Id` header. Together the service instance region, this ID helps support teams troubleshoot issues from relevant logs.\n\n```cs\npublic void ExampleGetTransactionId()\n{\n    AssistantService service = new AssistantService(\"{version-date}\");\n    service.ListWorkspaces(\n        callback: (DetailedResponse\u003cWorkspace\u003e response, IBMError error) =\u003e\n        {\n            if(error != null)\n            {\n                Log.Debug(\"AssistantServiceV1\", \"Transaction Id: {0}\", error.ResponseHeaders[\"X-Global-Transaction-Id\"]);\n            }\n            else\n            {\n                Log.Debug(\"AssistantServiceV1\", \"Transaction Id: {0}\", response.Headers[\"X-Global-Transaction-Id\"]);\n            }\n        }\n    );\n}\n```\n\nHowever, the transaction ID isn't available when the API doesn't return a response for some reason. In that case, you can set your own transaction ID in the request. For example, replace `\u003cmy-unique-transaction-id\u003e` in the following example with a unique transaction ID.\n\n```cs\npublic void ExampleSetTransactionId()\n{\n    AssistantService service = new AssistantService(\"{version-date}\");\n    service.WithHeader(\"X-Global-Transaction-Id\", \"\u003cmy-unique-transaction-id\u003e\");\n    service.ListWorkspaces(\n        callback: (DetailedResponse\u003cWorkspace\u003e response, IBMError error) =\u003e\n        {\n            if(error != null)\n            {\n                Log.Debug(\"AssistantServiceV1\", \"Transaction Id: {0}\", error.ResponseHeaders[\"X-Global-Transaction-Id\"]);\n            }\n            else\n            {\n                Log.Debug(\"AssistantServiceV1\", \"Transaction Id: {0}\", response.Headers[\"X-Global-Transaction-Id\"]);\n            }\n        }\n    );\n}\n```\n\n## TLS 1.0 support\nWatson services have upgraded their hosts to TLS 1.2. The Dallas location has a TLS 1.0 endpoint that works for streaming. To stream in other regions, use Unity 2018.2 and set **Scripting Runtime Version** in Build Settings to `.NET 4.x equivalent`. To support Speech to Text in earlier versions of Unity, create the instance in the Dallas location.\n\n## Disabling SSL verification\nYou can disable SSL verifciation when making a service call.\n```cs\nAssistantService assistant;\nstring assistantVersionDate = \"\u003cassistant-version-date\u003e\";\nAuthenticator assistantAuthenticator;\nstring workspaceId = \"\u003cworkspaceId\u003e\";\n\nvoid Example()\n{\n    authenticator.DisableSslVerification = true;\n    assistant = new AssistantService(assistantVersionDate, assistantAuthenticator);\n\n    //  disable ssl verification\n    assistant.DisableSslVerification = true;\n}\n```\n\n## IBM Cloud Pak for Data(ICP4D)\nIf your service instance is of ICP4D, below are two ways of initializing the assistant service.\n\n#### 1) Supplying the `username`, `password`, `icp4d_url` and `authentication_type`\n\nThe SDK will manage the token for the user\n\n```cs\n    CloudPakForDataAuthenticator authenticator = new CloudPakForDataAuthenticator(\"\u003curl\u003e\", \"\u003cusername\u003e\", \"\u003cpassword\u003e\");\n    while(!authenticator.CanAuthenticate())\n    {\n        yield return null;\n    }\n    service = new AssistantService(versionDate, authenticator);\n```\n\n#### 2) Supplying the access token\n\n```cs\n    BearerTokenAuthenticator = new BearerTokenAuthenticator(\"\u003caccessToken\u003e\");\n    while(!authenticator.CanAuthenticate())\n    {\n        yield return null;\n    }\n    service = new AssistantService(versionDate, authenticator);\n```\n\n## IBM Cloud Private\nThe Watson Unity SDK does not support IBM Cloud Private because connection via proxy is not supported in UnityWebRequest. \n\n## Documentation\nDocumentation can be found [here][documentation]. You can also access the documentation by selecting API Reference the Watson menu (**Watson -\u003e API Reference**).\n\n## Getting started videos\nYou can view Getting Started videos for the IBM Watson SDK for Unity on [YouTube](https://www.youtube.com/watch?v=sNPsdUWSi34\u0026list=PLZDyxLlNKRY9b2vurEhkSoNWZN5c5l4Nr).\n\n## Questions\n\nIf you have issues with the APIs or have a question about the Watson services, see [Stack Overflow](https://stackoverflow.com/questions/tagged/ibm-watson+unity).\n\n## Open Source @ IBM\nFind more open source projects on the [IBM Github Page](http://ibm.github.io/).\n\n## License\nThis library is licensed under Apache 2.0. Full license text is available in [LICENSE](LICENSE).\n\n## Contributing\nSee [CONTRIBUTING.md](.github/CONTRIBUTING.md).\n\n## Featured projects\nWe'd love to highlight cool open-source projects that use this SDK! If you'd like to get your project added to the list, feel free to make an issue linking us to it.\n\n[wdc]: https://www.ibm.com/watson/developer/\n[wdc_unity_sdk]: https://github.com/watson-developer-cloud/unity-sdk\n[latest_release_sdk]: https://github.com/watson-developer-cloud/unity-sdk/releases/latest\n[latest_release_core]: https://github.com/IBM/unity-sdk-core/releases/latest\n[get_unity]: https://unity3d.com/get-unity\n[documentation]: https://watson-developer-cloud.github.io/unity-sdk/\n[ibm-cloud-onboarding]: https://cloud.ibm.com/registration?target=/developer/watson\u0026cm_sp=WatsonPlatform-WatsonServices-_-OnPageNavLink-IBMWatson_SDKs-_-Unity\n[watson-dashboard]: https://cloud.ibm.com/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwatson-developer-cloud%2Funity-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwatson-developer-cloud%2Funity-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwatson-developer-cloud%2Funity-sdk/lists"}