Does Xamerin have something like WindowsFormsHost? Need Unity3D inside Xamerin.Forms RRS feed

  • Question

  • User396259 posted

    I want to run separate process inside a frame in Xamerin.Forms app. Something like this can be done with WPF using WindowsFormsHost or HwndHost.

    Again I am talking about a separate process, I understand that the 2 processes would have to interact with some cross process way etc. My only question is can I run a separate process inside a frame inside a Xamerin.Forms app

    Sunday, August 16, 2020 7:22 PM

All replies

  • User369979 posted

    Does Xamerin have something like WindowsFormsHost? No. Xamarin can only use its standard controls. Need Unity3D inside Xamerin.Forms There is a 3D engine for Xamarin called UrhoSharp. Refer to this documentation for specific information: https://docs.microsoft.com/en-us/xamarin/graphics-games/urhosharp/introduction

    Monday, August 17, 2020 9:24 AM
  • User396259 posted

    Thanks LandLu, this is an interesting project, but I will need the full power of Unity, so I would have to think of some other solution...

    Monday, August 17, 2020 11:55 AM
  • User369979 posted

    Unfortunately, they can't work together as Unity's Mono runtime is not compatible with Xamarin.

    Tuesday, August 18, 2020 7:58 AM
  • User396259 posted

    For what I ask they don't have to be compatible, it's like loading browser window inside app. It is a separate process, just rendered within a frame. I am surprised that Xamerin creators have not envisioned something like that, but I guess it is what it is.

    Tuesday, August 18, 2020 3:43 PM
  • User369979 posted

    There are no such controls to present the Unity frame in Xamarin. We could only use UrhoSharp for now.

    Thursday, August 20, 2020 2:00 AM