Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Discussion Is it possible to access connected devices data in your own custom window?

Discussion in 'Editor & General Support' started by PineTreeDev, Nov 11, 2022.

  1. PineTreeDev

    PineTreeDev

    Joined:
    Apr 22, 2019
    Posts:
    31
    I am not very familiar with this side of Unity editors and available data as a developer, but is it exposed/possible to get the connected device running your build on a custom editor window like profiler or the console does?

    What should I take into account in doing such an implementation in terms of editor/build performance?
    This would be a great solution for a webrest api layer we have for production and debugging our calls in our api calls window, and I've been looking for a way to implement this connection to the device on the editor side

    What other possible solutions, if any, would this feature use?

    Thanks!
     
  2. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    2,236
    You can use the PlayerConnection to send & receive data on the player side, EditorConnection to send & receive data on the editor side and PlayerConnectionGUI to have a editor UI to choose the device to connect with.

    That would utilize the same connection as the profiler and console window use.
     
  3. PineTreeDev

    PineTreeDev

    Joined:
    Apr 22, 2019
    Posts:
    31
    Woah those are really useful, thank you!
     
    MartinTilo likes this.