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. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

Anybody knows how to embed UWP/WPF in Unity?

Discussion in 'UGUI & TextMesh Pro' started by denisatglaza, Jun 18, 2018.

  1. denisatglaza

    denisatglaza

    Joined:
    May 14, 2018
    Posts:
    18
    I am building a disability service in Unity that will let paralyzed people move mouse cursor with their head movement only. Whatever is in Unity is just a function so im wondering if its possible to embed it in a Windows software.


    So someone would launch Windows software, click on "Start Unity" button and then the software would wrap itself into unity and function is now accessible (embedded software is clickable). There are a few examples of embedding browsers in Unity (example below), but can this be done with a software. Assuming I have access to software's code. Example below.

    Screenshot (17).png
     
  2. Hosnkobf

    Hosnkobf

    Joined:
    Aug 23, 2016
    Posts:
    1,076
    You cannot embed something like WPF in Unity (unless you make a custom implementation of it for unity which is a very hard and big task).
    But you can embed Unity (or an application built with unity) in WPF.
    I found this thread for you, hope it helps :)

    Edit: seems like there is a problem with Unity 2018 and embeded players (see here). So, I guess you should start your trials with Unity 2017.
     
    denisatglaza likes this.
  3. denisatglaza

    denisatglaza

    Joined:
    May 14, 2018
    Posts:
    18
    Thank you! I will look into that :)