docs.unity3d.com
  • Manual
  • Scripting API
  • Changelog
  • License

    • Unity Live Systems Data
      • Installation
      • What's new
      • Upgrade guide
    • Get started
      • Take it further
    • Basic concepts
    • Configure your service
      • Add and configure user-supplied secrets
      • Associate 3D objects with source devices
      • Configure a facility device simulator
      • Configure data connectors
        • Device connectors
          • Azure IoT Hub device connector
          • Facility Simulator device connector
          • HTTP device connector
        • Telemetry connectors
          • Azure EventHub telemetry connector
    • Develop your application
      • Create environment settings
      • Create a services controller
      • Implement a telemetry history controller
    • Troubleshooting
    • Glossary
    • REST APIs

    Create environment settings

    You can use the environment settings to connect your Unity application to the Live Systems Data services consuming your external data sources.

    Create an environment settings scriptable object

    To create an EnvironmentSettings script, follow these steps:

    1. In the Project window, make sure your Assets folder is selected.
    2. Go to Project > Assets > Create > Digital Twins > Live > Environment Settings and find EnvironmentSettings in the folder you selected. Screenshot of the Create Environment Settings menu

    Populate your environment settings

    To populate your environment settings, follow these steps:

    1. In the Project window, select the EnvironmentSettings script you want to populate.
    2. In the Inspector window, populate each property with the following data:

      • Base Address: a valid URI hosting your external resources using HTTP. For the Live Systems Data SDK sample, use https://dt.unity.com.
      • Web Socket Base Address: a valid URI hosting your external resources using WebSocket protocol. For the Live Systems Data SDK sample, use wss://dt.unity.com.
      • Workspace ID: the ID of your registered Unity organization (in xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx format). For the Live Systems Data SDK sample, use 4214f8cf-ff50-4603-9c78-e623cd9c37bb.
      • Facility ID: the project ID for the active facility (in xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx format). For the Live Systems Data SDK sample, use da0bae7c-807a-4f25-b62a-fc23920231d9.

      The following is an example screenshot of the EnvironmentSettings script for the Live Systems Data SDK sample.

      Screenshot of the Environment Settings sample values

    Back to top Generated by DocFX
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023