# The Problem of Communication with Unity using openIGTLink

**URL:** <https://discourse.slicer.org/t/the-problem-of-communication-with-unity-using-openigtlink/30345>\
**Category:** Development\
**Created:** [July 2, 2023, 6:23am UTC](https://discourse.slicer.org/t/the-problem-of-communication-with-unity-using-openigtlink/30345 "2023-07-02T06:23:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jay1987](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jay1987/32/16183_2.png) [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Post date:** [July 2, 2023, 6:23am UTC](https://discourse.slicer.org/t/the-problem-of-communication-with-unity-using-openigtlink/30345/1 "2023-07-02T06:23:20Z")

</div>

i want to using Slicer to communication Unity with OpenIGTLink  
I have read the code of ARInSlicer and learned how to transform TransformNode and 2DTexture from Slicer to Unity ,is there any way to Transform PolyData from Slicer to Unity?

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [July 2, 2023, 11:34am UTC](https://discourse.slicer.org/t/the-problem-of-communication-with-unity-using-openigtlink/30345/2 "2023-07-02T11:34:31Z")

</div>

Slicer can already send polydata via OpenIGTLink, so all you need to do is to implement receiving of this message type in Unity and building of a mesh object from the received information.

After you implement this (maybe by extending [GitHub - BSEL-UC3M/HoloLens2and3DSlicer-PedicleScrewPlacementPlanning: GitHub repository for the IJCARS paper: "Real-Time open-source integration between Microsoft HoloLens 2 and 3D Slicer"](https://github.com/BSEL-UC3M/HoloLens2and3DSlicer-PedicleScrewPlacementPlanning)), please share it with the community, as probably other groups would find it useful, too.
