Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
229 views
in Technique[技术] by (71.8m points)

c# - 如何在Unity中创建Winform并显示它?(How to create a Winform in Unity and display it?)

I am having a released unity game with its Assembly-CSharp.dll already decompeiled by DnSpy.I want to add something that can display information.

(我正在发布一个统一游戏,它的Assembly-CSharp.dll已经由DnSpy反编译。我想添加一些可以显示信息的东西。)

Due to difficulty to edit UI without the visual editor of Unity, I decided to make a winform by Visual Studio then copy the UI layout code to DnSpy.

(由于没有Unity的可视化编辑器很难编辑UI,所以我决定用Visual Studio创建Winform,然后将UI布局代码复制到DnSpy。)

I know how to add reference, and using those namespaces, then create an instance of Form.

(我知道如何添加引用并使用这些名称空间,然后创建Form的实例。)

But I can't get it displayed.

(但是我无法显示它。)

Can any one help me to solve this?

(谁能帮我解决这个问题?)

  ask by display name translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...