如何在WPF WinForm中获取Unity3D视图 [英] How get the Unity3D View In wpf winform

查看:147
本文介绍了如何在WPF WinForm中获取Unity3D视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在韩国软件办公室工作,正在开发android& Unity3D ...

Hi, I'm working in Korean software office and developing android & Unity3D...

我想在Viewing Unity3D Project中获得WPF winform的示例代码.

I'm want sample code for WPF winform in Viewing Unity3D Project.

http://forum.unity3d.com/threads/10855-Unity-in-a-Window/page3 ,这是参考站点.和参考资料.

http://forum.unity3d.com/threads/10855-Unity-in-a-Window/page3, this is reference site. and reference materials.

例如:如果单击按钮"(在WPF中),则在wpf查看器中创建对象unity3d.

For example: If click Button(In WPF), Create object unity3d in wpf viewer.

请帮助我...我想要完美的代码.不是抽象的...

Please help me... I'm want perfect code. Not abstract...

推荐答案

您可以将Unity Standalone应用程序嵌入到WPF应用程序中.

You can embed your Unity Standalone Application into your WPF application.

  1. 将您的统一项目构建到Unity独立(PC)中.

  1. Build your unity project into Unity standalone (PC).

在XAML中插入WindowsFormsHost作为容器来加载Unity应用.

Insert WindowsFormsHost in your XAML as a container to load your Unity App.

<WindowsFormsHost Name="windowsFormsHost" Height="700" Width="1000"/>

  • 在XAML中创建按钮.

  • Create Button in your XAML.

    使用ProcessStartInfo显示您的Unity应用程序.

    Use ProcessStartInfo to show your Unity Application.

    这篇关于如何在WPF WinForm中获取Unity3D视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆