Create a custom Maya viewport

Hi everyone!

I would like to start a project of a custom Maya viewport but I don’t know where to start. I watched these videos :

  1. MIRROR: making Maya REAL TIME rendering - YouTube
  2. 17 MIRROR node - YouTube

and that’s something I would like to do but with Unity. I guess there is some UDP connection between Maya and the game engine to send data but I don’t know how to draw the game engine view inside Maya as a custom viewport. If anyone has tips about it I would love to hear about it!